Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Adoptables Shop - Working Again! (http://www.mysidiaadoptables.com/forum/showthread.php?t=1195)

gjac1 12-03-2009 08:21 AM

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"


gjac1 12-03-2009 09:33 AM

RE: Item Shop - 100% Done (For Now)
 
I cant seem to figure this part out.

One the shop adopt page, it doesnt tell you exactly how many credits you have, it just always says "You have -1000 Credits "

gjac1 12-03-2009 11:56 AM

RE: Item Shop - 100% Done (For Now)
 
After spending most of today on this, i have finally figured it out.

After fixing the first few problems i found out that mod wasnt subtracting the cost of the shop item from the current balance, instead it was leaving the user with minus whatever the shop item cost, for example if i had 2000 credits and i bought an adoptable for 500 , it would say my balance was -500 :s , this was due to several things.

Basically all you have to do now is edit the shop.php file and tell it to use doadopt2.php for the actual adoption (search for doadopt.php in shop.php and change it to doadopt2.php) , i have attached my doadopt2.php for you to use with everything fixed.

Thanks again for this original mod, i would never have known where to start making something like this :)

EDIT : oops, it seems i cant attach the file, so i uploaded it here :)

http://www.speedyshare.com/files/19603746/doadopt2.rar

Fireballchad 12-03-2009 02:07 PM

RE: Item Shop - 100% Done (For Now)
 
Quote:

Originally Posted by gjac1
After spending most of today on this, i have finally figured it out.

After fixing the first few problems i found out that mod wasnt subtracting the cost of the shop item from the current balance, instead it was leaving the user with minus whatever the shop item cost, for example if i had 2000 credits and i bought an adoptable for 500 , it would say my balance was -500 :s , this was due to several things.

Basically all you have to do now is edit the shop.php file and tell it to use doadopt2.php for the actual adoption (search for doadopt.php in shop.php and change it to doadopt2.php) , i have attached my doadopt2.php for you to use with everything fixed.

Thanks again for this original mod, i would never have known where to start making something like this :)

EDIT : oops, it seems i cant attach the file, so i uploaded it here :)

http://www.speedyshare.com/files/19603746/doadopt2.rar

Sorry for the typos I will fix them. And I am glad you got it working!

PTGigi 12-08-2009 04:29 PM

RE: Item Shop - 100% Done (For Now)
 
Sorry if I sound stupid but I've read through this topic a few times and it sounds like this mod is for adopting pets but the title says its an item shop mod. So which is it? I'm getting kinda confused or I'm missing something really obvious...

Arianna 12-09-2009 12:38 AM

RE: Item Shop - 100% Done (For Now)
 
I really don't get it either - I wrote something totally like this on Sea's thread, and I don't know why he couldn't just expand on that. :/

gjac1 12-09-2009 04:10 AM

RE: Item Shop - 100% Done (For Now)
 
Its a mod for adopting pets via a shop system using the cash mod by Sea.

Arianna 12-09-2009 08:52 AM

RE: Item Shop - 100% Done (For Now)
 
However, I wrote something just like this on Sea's thread. :)

PTGigi 12-09-2009 10:32 AM

RE: Item Shop - 100% Done (For Now)
 
Quote:

Originally Posted by gjac1
Its a mod for adopting pets via a shop system using the cash mod by Sea.

Alright so its not an item mod? Because then I think he should change the title. That's what was confusing me.

gjac1 12-09-2009 11:49 AM

RE: Item Shop - 100% Done (For Now)
 
Nope its not an item mod, its to place "items" (adoptables) into a shop page so they can be purchased with credits earned using the cash system created by Sea :)


All times are GMT -5. The time now is 05:53 PM.

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