Cash System

Forum
Last Post
Threads / Messages
I made a shop system awhile ago when the currency system was posted here, but it's a little different from yours Arianna. I checked out the cash/shop system someone made for the older version of the script and used that to make one for my site. I made a copy of the adopt.php page and called it shop.php, which shows the prices of the adoptables, and and a copy of the doadopt.php page and called it buy.php, when you buy an adoptable it leads to that instead of doadopt, and that page determines whether you have enough of the currency to buy the adoptable before it inserts into the database, and it removes the cost of the adoptable from the user's currency total. It works perfectly as far as I can see so far. I'm totally a php novice so I just really had to play around.

I never even bothered editing the admin.php page to be able to set prices or anything like that, I've just been doing it through phpmyadmin. lol actually it didn't even occur to me to try it, now I should go play around with that.
 
Nice, Well it works well just lots of editing involved which may turn some off. I might try to do separate pages also but I got it installed on mine... although I need to code it so it put free ones in a different group then pay ones...
 
I think that I'll just go and check with 'if', and I can say that it won't insert, if they don't have enough money. I think I'll have that done in a few days. :)
 
This mod is excellent, thank you very much for posting it :)

It installed and works perfectly.
 
I noticed that people still get a cash increase even if they have already levelled that adoptable that day, is there anyway to change it so members cant just keep re clicking on the same adoptable over and over to get credits ?
 
That doesn't happen on my site - are you sure that you've pasted the code into the right place?
 
That doesn't happen on mine either, but I do remember I had to add an if statement to make the whole cash code work only when the adoptable isn't frozen, because it was originally letting you get the currency for continuously clicking the same frozen adoptable over and over.
 
Yes, i defiantly added it correctly :s , i will just have to try and figure it out as Haylzee did :)
 
That was a glitch before posting but has been corrected long before this was posted. If you are having that issue you dont have it embedded correctly.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,267
Messages
33,049
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top