Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
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.
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:
Last edited by KatFennec; 05-12-2017 at 03:14 AM. |
#2
|
||||
|
||||
Just noticed I forgot something: Go into classes/class_ownedadoptable and change all of the protected variables to public.
|
#3
|
||||
|
||||
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. ^^
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
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? |
#7
|
||||
|
||||
Can you post a copy of your levelupview.php?
|
#8
|
|||
|
|||
PHP Code:
|
#9
|
||||
|
||||
Quote:
Where it says PHP Code:
Then go down to where it says: PHP Code:
That should fix your problem. |
#10
|
|||
|
|||
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) |
Tags |
profile |
|
|
What's New? |
What's Hot? |
What's Popular? |