Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2017, 01:48 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 11,398
KatFennec is on a distinguished road
Default

Quote:
Originally Posted by Fox View Post

Here it is. I'm also trying to figure out how to put a button in on the lvl up page (you've fed blah blah and earned this much cash) that links to the public profile as well as it's only available if you've already fed them.
OK, I found the problem, and it looks like it was a mistake I made in the original.

Where it says
PHP Code:
if($adopt->hasNextLevel()){ 
            
$nextLevel $adopt->getNextLevel(); 
Add a new line after it, and put };
Then go down to where it says:
PHP Code:
$document->add(new Comment("<a class='btn btn-sm btn-info' href='../../levelup/click/{$adopt->getAdoptID()}'><i class='fa fa-paw'></i> Feed</a>")); 
}; 

And remove the last }
That should fix your problem.
__________________
Reply With Quote
  #2  
Old 05-25-2017, 05:52 AM
Fox Fox is offline
Member
 
Join Date: Oct 2016
Location: Australia
Posts: 34
Gender: Female
Credits: 8,506
Fox is on a distinguished road
Default

awesome, thanks :) That works!

Any ideas on a link back to the public profile when they're clicking the pet rather than if they've clicked? (both would be nice)
Reply With Quote
  #3  
Old 05-25-2017, 06:15 PM
aquapyrofan aquapyrofan is offline
Member
 
Join Date: Apr 2017
Posts: 48
Gender: Unknown/Other
Credits: 11,183
aquapyrofan is on a distinguished road
Default

Quote:
Originally Posted by Fox View Post
awesome, thanks :) That works!

Any ideas on a link back to the public profile when they're clicking the pet rather than if they've clicked? (both would be nice)
Put
PHP Code:
<class='btn btn-sm btn-info' href='../../levelup/publicprofile/{$adopt->getAdoptID()}'><class='fa fa-chevron-left'></iBack to Profile</a
in the click function, wherever you want it (Kat and my site has it under the display of what you've obtained).
Reply With Quote
Reply

Tags
profile

Thread Tools
Display Modes

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 06:41 AM.

Currently Active Users: 3502 (0 members and 3502 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