How to order adoptables?

Forum
Last Post
Threads / Messages

Lonin

Member
Member
Joined
Jan 10, 2012
Messages
17
Points
0
Age
33
Location
England
Mysidian Dollar
8,836
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?
 
Last edited:
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:
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top