View Single Post
  #11  
Old 12-03-2009, 08:21 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,870
gjac1
Default RE: Item Shop - 100% Done (For Now)

I tried it but now i do see any of my regular adoptables on the adopt page and i dont see the 1 shop item i added in shop.php :s[hr]
It took me about 3 hours to set this up and get it working, but its def worth it, thanks for this mod :)

Here is what i had to do to get it working.

You have to change the "INSERT" code to this in nadopt.php

PHP Code:
mysql_query("INSERT INTO ".$prefix."adoptables VALUES ('', '$name', '$description','$eggimage','$cba','$promocode', '$freqcond', 

'
$number','$datecond','$date','$adoptscond','$maxnumcond','$morethannum','$usergroupcond','$usergroups','$alternates','$altoutlevel','$altchance','$shop','$price')"); 
And then the next problem was caused by a small typo, this is also a part you add to nadopt.php but i have corrected it, in your original guide you told it to change the value of shop2 to 1 and it should be the value of shop

PHP Code:
//If we are using money to buy this, we should have a amount in the box...
if($cba == "pricenum" and $price == ""){
$error "You selected that this adoptable is available for adoption only with money, but you did not enter in a money amount.  Please go back and either change this setting or type in a valid amount.";
} if(
$shop == "enabled"$shop "1"
Reply With Quote