How to order adoptables (gold/item reward for reaching a level)?
Alrighty so I was wondering how/if I could order the adoptables at the adopt.php page.
Like by price or something. >: I can't do PHPsorry. :cfrown: Also. Could I give someone money or an item reward for getting an adoptable to a certain level (or number of clicks) instead of/as well as a promo code? |
umm you can find the sql select() method in adopt.php and add the 'ORDER by price' in the where clause. The where clause should be easy to identify as it is passed as the third argument in the select() method as a string.
If you want AJAX sorting feature then its beyond what I can help, send PMs to Fadillzzz and he will tell you what to do. I believe its possible, add the reward PHP code right after the line that defines adoptables new level. I recall it is line 85. |
:) Thanks for the help. I got the order by part working.
But I have no clue how to do the reward thing. D: |
All times are GMT -5. The time now is 08:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.