#21
|
|||
|
|||
RE: Cash System
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. |
#22
|
|||
|
|||
RE: Cash System
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...
|
#23
|
||||
|
||||
RE: Cash System
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. :)
|
#24
|
|||
|
|||
RE: Cash System
This mod is excellent, thank you very much for posting it :)
It installed and works perfectly. |
#25
|
|||
|
|||
RE: Cash System
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 ?
|
#26
|
||||
|
||||
RE: Cash System
That doesn't happen on my site - are you sure that you've pasted the code into the right place?
|
#27
|
|||
|
|||
RE: Cash System
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.
|
#28
|
|||
|
|||
RE: Cash System
Yes, i defiantly added it correctly :s , i will just have to try and figure it out as Haylzee did :)
|
#29
|
|||
|
|||
RE: Cash System
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 | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
secondary cash.. | maximillion | Questions and Supports | 2 | 07-04-2011 09:42 PM |
Games With the Cash System | redheadturkey | Suggestions and Feature Requests | 8 | 08-27-2010 03:37 AM |
Cash System | Ashje | Questions and Supports | 10 | 12-21-2009 03:55 PM |
About the cash system | Ben | Suggestions and Feature Requests | 10 | 10-07-2009 08:34 PM |
Buying 'cash' with cash? | Quillink | Questions and Supports | 4 | 07-20-2009 03:21 AM |
What's New? |
What's Hot? |
What's Popular? |