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:
Add Reply
  • Pages:
  • 1
  • 2
Simple Money/Points Script with Per-Post, Admit Edit
Topic Started: Nov 25 2010, 09:37 PM (11,069 Views)
Joe
Member Avatar


Code name: Simple Money Script [rewritten]
Date created: 5/6/2015
Author(s): Joe
Description: Admin-editable money system. You can define a currency name, starting amount, and a per-post amount. Money is displayed underneath the post count area.
Preview: Fiddle around on this board.

To get a members id, check their profile link like so:
[bbc_code]http://support.zathyus.com/profile/349609/[/bbc_code]`Board Template → Below the Board`
Code: HTML
 
<script type='text/javascript'>
/* Simple money script for Zetaboards (admin-edit)
Joe of http://outlineforum.com/ and http://support.zathyus.com/ */

// Options for currency, use "" for no currency sign
currencyName = "Money";
currencyPerPost = 1;
currencyStartAmt = 500;
currencySign = "$";

// Do not edit this line
currencyEdits = []; currencyID = 0;

// This where can add or subtract money using the member's id: [MEMBERID, AMOUNT]
currencyEdits[currencyID++] = [349609, 500];
currencyEdits[currencyID++] = [349609, -500];
</script>
<script type='text/javascript' src='http://z3.ifrm.com/53/36/0/p513624/simplemoneyscript.min.js'></script>
If anyone new to jQuery is interested how this script works (which is quite basic), a non-minified, commented version can be viewed here.

Older Version
Edited by Joe, May 6 2015, 01:15 PM.
Offline Profile Quote Post Goto Top
 
Replies:
Joe
Member Avatar


I'm surprised how well it's going. I'll try to add a 'reason' slot. (:
Offline Profile Quote Post Goto Top
 
.Ash. (PM)
Member
[ * ]
Isn't there anyway to reduce and donate money to people?
Like i have a promotion forum this would be handy for me..

Thanks!
Offline Profile Quote Post Goto Top
 
ssaa911
Member Avatar
Member
[ * ]
When the estimated time that the UCP addition will be completed?
Offline Profile Quote Post Goto Top
 
Joe
Member Avatar


ssaa911
Dec 11 2010, 12:32 AM
When the estimated time that the UCP addition will be completed?
Not sure, still have numerous things to work around. :P
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Where do you add the first box at?
Quote Post Goto Top
 
Joe
Member Avatar


This one belongs in Below the board:
Code: HTML
 
<script type='text/javascript' src='http://z3.ifrm.com/53/36/0/p377168/money.js'></script>
...and this one (the one below this line of text) goes in Above the board:
Code: HTML
 
<script type='text/javascript'>
// Simple money script by Joe of Outlineforum.com

var zeta_id = [], i = 0; // add user id's below for additional points/money
zeta_id[i++] = ["IDNUMBER", "AMOUNT"];

zeta_options = {
startingamount: 200,
systemname: 'Points',
perpost: 5,
sign: '$'
};
</script>
:)
Edited by Joe, Dec 11 2010, 03:49 AM.
Offline Profile Quote Post Goto Top
 
badtzmaru-ZNR
Member Avatar
Member
[ *  * ]
Thanks! :)

I think I'll use this to keep track of everyone's earnings until a good shop system is made. :D
Offline Profile Quote Post Goto Top
 
Hologram-ZNR
Member
[ * ]
Is possible to have certain point for every new thread, and a certain point for each new reply?
Offline Profile Quote Post Goto Top
 
firegun
Member Avatar
Member
[ * ]
wow.. that cool.... ^_^
Offline Profile Quote Post Goto Top
 
Narwhal108
Member Avatar
Member
[ * ]
I am looking at this and I am very confused as to how I give/take points from users. Could you please PM me explaining it?
Offline Profile Quote Post Goto Top
 
mossman1996
Member
[ * ]
I am really confused on how to add points to people or take points away from them. Can someone explain it in depth for me?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
var zeta_id = [], i = 0; // add user id's below for additional points/money
zeta_id[i++] = ["349609", "500000"];
zeta_id[i++] = ["349609", "-250000"];
zeta_id[i++] = ["325131", "50000"];
That's what you want to edit. The first number in each line is the users ID that can be grabbed from their profile URL. The second number in each line is how much money you want to add or subtract from that user. Say a user had zero posts, they would have $200, if you made the input 100 they should then have $300, if you made the input -100 they would then have $100.
Code:
 
zeta_id[i++] = ["325131", "50000"];
Just keep repeating that below what is above to affect more users.
Offline Profile Quote Post Goto Top
 
part207
Member
[ * ]
Is there a way i can add a seccond counter for this?

such as adding xp under the money code?
Offline Profile Quote Post Goto Top
 
Canimia
Member Avatar
Parachute? This is obviously a Hot Air Balloon!
[ *  *  * ]
Hate to bump an old topic, but this is my favorite money code and I'd like to know if there's a way to get money for new topics, as well? Like, I've got my code set to give 5 points per post, I want to give 10 points per new topic. Can this be done?
Offline Profile Quote Post Goto Top
 
Akhil-10
Member Avatar
Imagination Is The Beginning Of Creation
[ *  * ]
Nice code for easy money giveing
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2