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
  • 3
Simple Money/Points Script with Per-Post, Admit Edit
Topic Started: Nov 25 2010, 09:37 PM (11,066 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
 
CodyOL
Member Avatar
Member
[ *  * ]
Nice code, Joe. :D
Offline Profile Quote Post Goto Top
 
Xero
Member Avatar
Member
[ *  *  *  * ]
Very cool code, RyJoe.
Offline Profile Quote Post Goto Top
 
Joe
Member Avatar


Thanks Xero. ;D
Offline Profile Quote Post Goto Top
 
Nimor
Member Avatar
Fireman
[ *  *  *  * ]
Nice code. :D
Offline Profile Quote Post Goto Top
 
.awd (R)
Member Avatar
Member
[ *  *  * ]
Interesting. I like it
Offline Profile Quote Post Goto Top
 
Joe
Member Avatar


Haha thanks guys. (:
Offline Profile Quote Post Goto Top
 
keshavkd
Member
[ * ]
TOOOOOOOOOOOO GOOD!!! <3 :wub:
Offline Profile Quote Post Goto Top
 
Joe
Member Avatar


Hahaha glad you like it Kesha. :P
Offline Profile Quote Post Goto Top
 
keshavkd
Member
[ * ]
But i din understand Hw to increase points or Decrease them... :(

See.... u think this is my Profile ID --> http://s4.zetaboards.com/Keshavkd/profile/3120691/

How do i increase more 150 Pts... n how do I decrase 150 Pts... ?? Plz show an Example.. :( Plz..... :puppyeyes:

and Yes... :) My name is Keshav. :salute:
Edited by keshavkd, Dec 5 2010, 07:40 AM.
Offline Profile Quote Post Goto Top
 
ssaa911
Member Avatar
Member
[ * ]
Is there some way to add this to the user control panel to add points? And is there someway to have a text field as to why you added the points?
Offline Profile Quote Post Goto Top
 
ssaa911
Member Avatar
Member
[ * ]
This is the code I'm using, can someone tell me what's wrong? Thanks. :)

Code:
 
<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++] = ["3185792", "10"];

zeta_options = {
startingamount: 0,
systemname: 'Practice Points',
perpost: 0,
sign: 'Practice Points'
};
</script>
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Did you add that Above the Board?

Also, you needed to add this Below the Board:
Code: HTML
 
<script type='text/javascript' src='http://z3.ifrm.com/53/36/0/p377168/money.js'></script>
Offline Profile Quote Post Goto Top
 
Joe
Member Avatar


keshavkd
Dec 5 2010, 07:21 AM
But i din understand Hw to increase points or Decrease them... :(

See.... u think this is my Profile ID --> http://s4.zetaboards.com/Keshavkd/profile/3120691/

How do i increase more 150 Pts... n how do I decrase 150 Pts... ?? Plz show an Example.. :( Plz..... :puppyeyes:

and Yes... :) My name is Keshav. :salute:
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
http: //s4.zetaboards.com/Keshavkd/profile/3120691/+150 = ["349609", "500000"];
zeta_id[i++] = ["349609", "-250000"];
zeta_id[i++] = ["325131", "50000"];
zeta_id[i++] = ["3120691", "150"];
zeta_id[i++] = ["3120691", "-150"];

zeta_options = {
startingamount: 200,
systemname: 'Points',
perpost: 5,
sign: 'Pk$ - '
};
</script>

@ssaa911- I'm working on yet another version which will include +/- functions (no ACP editing like it is now), and maybe even logs like you said! It will not require PHP or MySQL (hosting), so it's actually turning out rather sweet. ;D
@ssaa911 again- Try as Pandorasaurus said. (:
Offline Profile Quote Post Goto Top
 
ssaa911
Member Avatar
Member
[ * ]
If/When you do that, that will be absolutely phenomenal and exactly what I need. I'm leaving an old clan and starting a new one with some people from the old clan and I want it to be a worry free change. :)

Something that would have the ability to add it on the UCP and with a text field for the reason why you're giving the points. :)
Edited by ssaa911, Dec 8 2010, 09:34 PM.
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
  • 3