Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 12-03-2009, 08:21 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,347
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
  #12  
Old 12-03-2009, 09:33 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,347
gjac1
Default 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 "
Reply With Quote
  #13  
Old 12-03-2009, 11:56 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,347
gjac1
Default 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
Reply With Quote
  #14  
Old 12-03-2009, 02:07 PM
Fireballchad Fireballchad is offline
Member
 
Join Date: Aug 2009
Posts: 49
Credits: 8,082
Fireballchad
Default 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!
Reply With Quote
  #15  
Old 12-08-2009, 04:29 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 25,171
PTGigi
Default 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...
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #16  
Old 12-09-2009, 12:38 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,053
Arianna will become famous soon enough
Default 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. :/
Reply With Quote
  #17  
Old 12-09-2009, 04:10 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,347
gjac1
Default RE: Item Shop - 100% Done (For Now)

Its a mod for adopting pets via a shop system using the cash mod by Sea.
Reply With Quote
  #18  
Old 12-09-2009, 08:52 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,053
Arianna will become famous soon enough
Default RE: Item Shop - 100% Done (For Now)

However, I wrote something just like this on Sea's thread. :)
Reply With Quote
  #19  
Old 12-09-2009, 10:32 AM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 25,171
PTGigi
Default 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.
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #20  
Old 12-09-2009, 11:49 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,347
gjac1
Default 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 :)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
images on adoptables not working. Mortain Questions and Supports 7 11-14-2015 09:39 AM
Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY] Ashje Addons/Mods Graveyard 2 05-24-2009 03:17 AM
Help adoptables site isn't working!!! GamingMotion Questions and Supports 7 05-17-2009 05:02 AM
Shop and... 12345 Questions and Supports 1 03-05-2009 07:59 AM
Shop? trollis76 Questions and Supports 6 02-20-2009 12:46 AM


All times are GMT -5. The time now is 03:09 AM.

Currently Active Users: 719 (0 members and 719 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636