| 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: |
| Currency Code Help; Thanks | |
|---|---|
| Tweet Topic Started: Mar 11 2014, 07:49 PM (259 Views) | |
| flying cat | Mar 11 2014, 07:49 PM Post #1 |
|
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
|
![]() |
|
| DaPizzaMan | Mar 11 2014, 07:58 PM Post #2 |
![]()
#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). |
![]() |
|
| flying cat | Mar 11 2014, 10:19 PM Post #3 |
|
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 |
![]() |
|
| DaPizzaMan | Mar 12 2014, 06:59 PM Post #4 |
![]()
#TeamSupport
![]()
|
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. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards Support · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)





4:43 AM Jul 11