Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Shop? (http://www.mysidiaadoptables.com/forum/showthread.php?t=412)

trollis76 02-19-2009 08:36 AM

Shop?
 
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!

BMR777 02-19-2009 11:55 AM

RE: Shop?
 
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. :)

trollis76 02-19-2009 12:33 PM

RE: Shop?
 
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.[hr]
Yes, I want to edit the site, but can you use PHP in the editor? Or just plain text?

BMR777 02-19-2009 12:36 PM

RE: Shop?
 
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. :)

trollis76 02-19-2009 12:46 PM

RE: Shop?
 
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

BMR777 02-19-2009 12:50 PM

RE: Shop?
 
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. :)

trollis76 02-20-2009 12:46 AM

RE: Shop?
 
OK, sure I'll post it here when I start some new weird project... :D


All times are GMT -5. The time now is 03:57 PM.

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