Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.3.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=42)
-   -   Mys v1.3.4 Public Profile Mod (http://www.mysidiaadoptables.com/forum/showthread.php?t=5448)

aquapyrofan 05-25-2017 06:15 PM

Quote:

Originally Posted by Fox (Post 36376)
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).

Dinocanid 06-19-2017 07:27 PM

After installing this, I ran into a "call to member function" error because it couldn't get the image of the pet. I found that using:
Quote:

<img src='{$adopt->getImage()}'><br>"));
Works just fine rather than using the unique id variable, since $adopt is already defined and the image can be retrieved from there. Just putting this out there for others that might run into it.

NobodysHero 03-30-2018 10:36 AM

Thanks for the mod and Dino, thanks for the alternative code for the image. I couldn't get it work before. LOVE YOU BOTH!

Micolai 06-11-2020 10:24 PM

I'm running into this error, how do I fix it?

Quote:

Fatal error: Call to a member function get() on null in /home/wildhors/public_html/classes/class_view.php on line 166


All times are GMT -5. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.