Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Adopt Center (http://www.mysidiaadoptables.com/forum/showthread.php?t=3411)

Alaric 12-25-2011 02:06 AM

Adopt Center
 
My Adopt Center Doesn't Seem To Be Working Just After I Updated This Script http://www.mysidiaadoptables.com/for...ead.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

Quote:

Originally Posted by Xhanthuine (Post 20843)
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

Adopt Center
 
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/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?

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'";


All times are GMT -5. The time now is 06:25 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.