![]() |
#8
|
|||
|
|||
![]()
As You See Here http://www.mysidiaadoptables.com/for...ead.php?t=1987 see step 6 below:
6. Now, to prevent some users from cheating. Open your doadopt.php, we'll just do a slight query modification. Find this query PHP Code: $query = "SELECT * FROM ".$prefix."adoptables WHERE id='$id'"; replace that query with this one PHP Code: $query = "SELECT * FROM ".$prefix."adoptables WHERE id='$id' AND whenisavail = 'promo'"; We just restricted the doadopt.php file to only work with adoptables with promo code. The code is different in MYS V.1.2.4 which i use see below: PHP Code: $query = "SELECT * FROM {$prefix}adoptables WHERE id={$id}"; So Now What Should I Do Here To This Script? Last edited by Alaric; 12-26-2011 at 04:50 AM. |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adoptables not in Adopt Center? | AlexC | Questions and Supports | 6 | 04-09-2012 10:05 AM |
Adopt pages, and general adopt/index page :L | blondbananamix | Questions and Supports | 26 | 07-22-2011 12:12 PM |
Newcomer Center Rules | alonaria | Newcomer Center | 0 | 04-02-2011 03:58 PM |
Is it possible not to display the species name of the adoptable in adopt center? | Hall of Famer | Questions and Supports | 3 | 03-07-2010 06:54 PM |
2 - column on Adopt page and my Adopt page? | SieghartZeke | Questions and Supports | 2 | 10-12-2009 02:58 PM |
What's New? |
What's Hot? |
What's Popular? |