PDA

View Full Version : How to order adoptables?


Lonin
05-09-2012, 01:28 PM
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?

Hall of Famer
05-10-2012, 07:16 AM
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.

Lonin
05-10-2012, 01:58 PM
:) Thanks for the help. I got the order by part working.
But I have no clue how to do the reward thing. D: