#1
|
||||
|
||||
Pet Sorting
Pet Sorting mod (Mys 1.3.4)
Description: A non-invasive and minimal mod that allows users to sort their pets according to total clicks, gender, level, and name; without the use of javascript or ajax. This can easily be extended on to allow more sorting options as well (like species). -Step 1- Go into phpMyAdmin and add a new column in users_options: -Step 2- Open up myadopts.php and replace the entire public function index with this: PHP Code:
Finally, open myadoptsview.php and place this wherever you want the dropdown to be (I placed it above the table for adopts) PHP Code:
(Also if anyone knows how to safely place the button next to the dropdown box that would be great!)
__________________
Last edited by Dinocanid; 06-13-2017 at 10:31 AM. |
#2
|
||||
|
||||
Yay mod XD I also added a new option to mine at the top that says 'Select an option...' and instead of making it throw an error I made it set the users sort to the default (clicks). That way it's like a reset button and is basically a blank option XD Purely for aesthetic reasons lol If it resets what they had before then they were probably trying to change it anyway, so.. XD
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#3
|
||||
|
||||
This is splendid, easy to edit, and simple to set up!!
Thank you very much for sharing, it is definitely a feature users appreciate!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
||||
|
||||
Ah.. this is GREAT !! thank you Dinocanid !
|
#5
|
||||
|
||||
Late to the game but very nice Mod, have it installed and working, thank you!!
|
|
|
What's New? |
What's Hot? |
What's Popular? |