Thread: Mys 1.3.4 Public Profile Mod
View Single Post
  #9  
Old 05-25-2017, 01:48 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 7,793
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