Shop?

Forum
Last Post
Threads / Messages

trollis76

Member
Member
Joined
Feb 5, 2009
Messages
160
Points
0
Mysidian Dollar
8,381
My plan is to make a simple "Get points - Spend points" system. This is what I need support with:
*How do I make it so that the variable "$money" raises with 10 everytime a player levels up another pet? Do I write it like this: First:
$money = 0
And then: $money = +10 ?
*How do I edit the script for the "Terms of Service" page?

Please give me some support!
 
Well, for question 1 you would have to not only increase the variable but you would also have to store the user's money in the database. Do you have PHP knowledge? This is more advanced so you should know some PHP code to do this if you want to do this on your own.

For the second question, do you mean edit the Terms of Service content? This can be done in the Admin CP of the script on the page editor. Otherwise please be more specific as to what you meant. :)
 
Hm, well I don't have any PHP knowledge... I am only 12 years old, and just started with different scripts. Could you pretty please tell me how to store something in the database? It would help me this [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||] much.

Yes, I want to edit the site, but can you use PHP in the editor? Or just plain text?
 
Well, I wouldn't recommend making any changes now as a new release is only a week or two away, which will add a lot more features. Johnathon is working on it. :)

For the editor you can use plain text or HTML only. If you need to do PHP in that page then you can edit the tos.php file to add your PHP code. :)
 
OK, thanks for the help. I just wanted to see if anyone where kind enough to help me, so I would at least know how to do it in the future... :D
Ah, never mind... :D
 
Well, it's not just a simple thing to do. I recommend that you take a look at the code inside of the PHP files for the script and see how the script connects with the database and inserts and deletes info and how it works. That will get you started. :)

If you have some actual code you are working on feel free to post it here and I can take a look. :)
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top