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
  #1  
Old 04-24-2017, 10:30 PM
aquapyrofan aquapyrofan is offline
Member
 
Join Date: Apr 2017
Posts: 48
Gender: Unknown/Other
Credits: 10,985
aquapyrofan is on a distinguished road
Default

Quote:
Originally Posted by Kyttias View Post
I tested this exact version of the file on my own site and it works just fine? Are you sure you created the module in the Admin CP exactly how the image shows?
I just checked, it's exactly the same. I have no idea.
Reply With Quote
  #2  
Old 04-25-2017, 02:24 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 11,041
KatFennec is on a distinguished road
Default

Aquapyrofan and I are working together on this, so I've got a couple questions, since I'm having trouble getting this working as well. We've tried to set it exactly as you said, but it's still not working. As such, I was wondering whether the alchemy or item drop mods, or the fact that it was not installed at the domain's root, would be issues?

EDIT: tested on a clean install under WAMP, it still doesn't work

Last edited by KatFennec; 04-25-2017 at 03:51 AM.
Reply With Quote
  #3  
Old 04-25-2017, 04:10 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 11,041
KatFennec is on a distinguished road
Default

Ok, so I got it working. Cludged a little of the code from here together with some of Kyttias' code.

PHP Code:
$profile $mysidia->user->getprofile();
$owned = new OwnedAdoptable($profile->getFavpetID());
$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/activepet'>Change</a> 
"
)); 
$moduleContainer->add($texta); 
Reply With Quote
  #4  
Old 04-25-2017, 04:52 PM
aquapyrofan aquapyrofan is offline
Member
 
Join Date: Apr 2017
Posts: 48
Gender: Unknown/Other
Credits: 10,985
aquapyrofan is on a distinguished road
Default

The reason the above code works is because we could get it working as a module in the ACP, which won't accept if else statements. Don't know if that's the case with coding it in the file, but it's likely.
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 08:15 AM.

Currently Active Users: 3473 (0 members and 3473 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636