Public Profile Mod
The following is a mod that extends the functionality of levelup.php to create a profile for each pet, viewable by other users.
http://orig02.deviantart.net/cfcd/f/...ec-db8xoon.png This mod is heavily based on code provided by Kyttias To get started, open levelup.php and change PHP Code:
PHP Code:
at the bottom paste the following: PHP Code:
again, scroll down to the bottom and paste: PHP Code:
PHP Code:
add PHP Code:
Now you can view your pets' profiles. But what about other people? If you want them to see the pet's info, go back to levelup.php and replace PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Just noticed I forgot something: Go into classes/class_ownedadoptable and change all of the protected variables to public.
|
Oh so this is a pet profile mod? It looks interesting, adoptables profile is among the next few things I will add for Mysidia's next release. Your mod will be especially helpful for those who cannot upgrade to newer script due to heavily customized scripts, I am sure a lot of users will appreciate this. ^^
|
It's especially helpful for sites that want a nonstandard experience/level system, as it doesn't depend on exceptions to operate. Hopefully, folks get some good use out of it.
|
you can also create a new page well 2 pages, the petprofile.php and the petprofilelview.php, that's how i made the profile for my site =), but i think this can also be added to the profile.php and profileview.php instead of the levelup pages.
Still thanks for sharing how you manage to make it work in the levelup page ^^... i must say that i tried to do that but never manage to make it work, that's why i ended making a new page. |
I'm having an issue with this code I believe. All pets at level 2 (final level at this point) don't show their tradestatus or gender.
Any ideas why? |
Quote:
|
PHP Code:
|
Quote:
Where it says PHP Code:
Then go down to where it says: PHP Code:
That should fix your problem. |
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) |
All times are GMT -5. The time now is 11:16 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.