PDA

View Full Version : Adopt Center


Alaric
12-25-2011, 02:06 AM
My Adopt Center Doesn't Seem To Be Working Just After I Updated This Script http://www.mysidiaadoptables.com/forum/showthread.php?t=1987
What Should I Do ? No Adoptables Shows Up Nor It Let's Us Set A New Adoptable!

Regards,
Alaric
Mysidiaadoptables Member.

Xhanthuine
12-25-2011, 06:13 AM
Well, it's because that mod is only compatible with the Mys V1.2.x script. And since your site is using the Mys V1.3.x script, the mod won't work on your site.

Hall of Famer
12-25-2011, 05:34 PM
Well, it's because that mod is only compatible with the Mys V1.2.x script. And since your site is using the Mys V1.3.x script, the mod won't work on your site.

Well Mys v1.3.0 has yet to be released, you cant possibly using Mys v1.3.x script.

Kaeliah
12-25-2011, 08:06 PM
The difference may have been from 1.2.2 to 1.2.3 though. =/ Code changes are tricky when updates change the codes as well. It would seem this modification is out of date.

Alaric
12-26-2011, 02:05 AM
Can Someone Helpfully Help Me With This Script Then? Or Should I Remove It!

Kaeliah
12-26-2011, 02:07 AM
Unless you have significant PHP knowledge, I would suggest removing it and contacting the person who made it to see if they'll update it. You could also try re-installing it incase you just didn't install it properly the first time.

Hall of Famer
12-26-2011, 02:35 AM
Well I believe Fadillzzz was the one who designed this script? Send him a message and he will reply to you when he visits again(could be soon, or a few days later if hes on Christmas Vacation).

Alaric
12-26-2011, 03:03 AM
As You See Here http://www.mysidiaadoptables.com/forum/showthread.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?

Kaeliah
12-26-2011, 02:49 PM
Try:

$query = "SELECT * FROM {$prefix}adoptables WHERE id={$id} AND whenisavail='promo'";

Kaeliah
12-26-2011, 02:49 PM
Try:

$query = "SELECT * FROM {$prefix}adoptables WHERE id={$id} AND whenisavail='promo'";

Alaric
12-26-2011, 02:59 PM
Thanx's For The Help Kaeliah , But I Have Already Fixed That Up Hours go!

Kaeliah
12-26-2011, 10:18 PM
... then why did you ask?

Alaric
12-27-2011, 05:07 AM
I Forgot To Post A New Reply That I Fixed It! :(