Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Currency Code Help; Thanks
Topic Started: Mar 11 2014, 07:49 PM (259 Views)
flying cat
Member Avatar
Member
[ *  * ]
OK, so on my forum I have a currency system that I used from someones CSS currency code but I am dreadful at coding and adjusting codes and a lot of my members are wondering what are we doing with the money. At the moment a member gets one "money" for every post they do but I do not know how to take away or add money to a member. Below is the coding that I am using. Could you please tell me how to subtract and give money to my members. Thanks a lot for your help
Flying Cat

Spoiler: click to toggle
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

The line myusers[x]=["USER ID", AMOUNT]; can be adjusted to have a negative amount (or if the user has a positive amount, just subtract from that amount).
Offline Profile Quote Post Goto Top
 
flying cat
Member Avatar
Member
[ *  * ]
Thanks. I have tried a few things and it still hasn't worked. Where should I put the member and the money he/she should get or lose? Thanks again
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

flying cat
Mar 11 2014, 10:19 PM
Thanks. I have tried a few things and it still hasn't worked. Where should I put the member and the money he/she should get or lose? Thanks again
You would have to get the member's user ID. For example, my user ID is 2070823 (from http://if.invisionfree.com/profile/2070823/ ). That would go between the first set of quotation marks, then after the comma and before the closing bracket goes the value (a negative value to deduct currency). Also, x of myusers[x] would be replaced with the number after the last. So if you have 0, 1, 2, this one would be 3.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply