Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 04-25-2017, 09:28 PM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 7,920
KatFennec is on a distinguished road
Default

Final version of the module. As per aquapyrofan's suggestion, moved the OwnedAdoptable line below the else statement, and I have verified that it works.

PHP Code:
$profile $mysidia->user->getprofile();


if(
$profile->getFavpetID() == 0){
$texta = new Paragraph;
$texta->add(new Comment(
<br>
Unfortunately, you don't seem to have a favourite pet set.
<br>
Would you like to <a href='
{$mysidia->path->getAbsolute()}account/profile'> set one</a>? 
"
));
}
else {
$owned = new OwnedAdoptable($profile->getFavpetID());
$Name $owned->getName();
$Type $owned->getType();
$texta = new Paragraph;
$texta->add(new Comment(

<br> 
<img src='
{$owned->getImage()}'> 
<br> 
{$Name} the {$Type} 
<br> 
<a href='
{$mysidia->path->getAbsolute()}myadopts/manage/{$owned->getAdoptID()}'>View</a> | <a href='{$mysidia->path->getAbsolute()}account/profile'>Change</a> 
"
)); 
}
$moduleContainer->add($texta); 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:05 PM.

Currently Active Users: 9850 (0 members and 9850 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636