Yep, that is right, I am back to from my break of coding, and I decided to give y'all a suprise
Here is the Very first shop on SMF For Free
The Shop comes with a new Money Code that you can now Subtract money from people, without you lowering there Post count
Preview:
http://shoppreview.smfforfree4.com/index.phpBefore you accually add the shop, you need to create a new Profile Feild. So,
1. Go to: Admin >> Features and Options >> Custom Profile Fields.
2. Press Add Field.
3. Now Click on the [Settings] Link.
4. Now Put this information as the Settings:
Name: Subtract
Field Description: The Ammount of money that will be subtracted from this user.
Show in profile?: Check
Show in posts?: Under Post Count
Parse BBC?: UnCheck
Text to display before field (BBC is ok if enabled above): Leave Blank
Text to display After field (BBC is ok if enabled above): Leave Blank
Field ID: SubtractMoney
Add a horizontal rule before field?: Don't Show
Show field on registration?: Don't Show
Only allow admins to edit field?: Check
Only allow admins to view field?: UnCheck
5. Press Save.
Now that's done, you can add the following code to your Footers:
<script>
var Name = "NAME";
var Sign = "SIGN";
var PerPost = "PERPOST";
var UserID = "ID";
var Item = new Array();
Item[Item.length] = ["ITEM","DESCRIPTION","COST"];
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");
</script>
NAME = The Name of the Money. (Ex: Money)
SIGN = The Sign for the Money (Ex: $)
PERPOST = The Amount the user will be getting Per Post. (Ex: If 2, and you have 10 Posts, you will have $20)
ID = The ID of the Admin. (This is because they will get a PM with what the User will want.)
Now for the Item Part:
ITEM = The Item Name
DESCRIPTION - The description of that item.
COST = How much the Item will cost.
To add more items, add more of these lines:
Item[Item.length] = ["ITEM","DESCRIPTION","COST"];
Just save your Headers and Footers. Now, one more step.
How do I subtract money?All you have to do it go to the profile of a user that had bought something, then go to "Forum Profile Information" and find the Subtract Feild. You will now have to add the price of the item they bought, and Save there profile
That easy.
Enjoy
Remember, this is only V1 of the Shop, there will be greater things added