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
Simple Money Hack
Topic Started: Oct 22 2009, 11:15 AM (2,544 Views)
slayer766-ZNR
Member
[ *  *  *  * ]
Code:
 
<script type="text/javascript">
/*
|| ZB Simple Money Hack
|| By Slayer766 of TCZ (http://thecodingzone.com)
*/
function Money(name,sign,post){
$(".user_info").each(function(){
$(this).append("<dt>" + name + ":</dt><dd>" + sign + $(this).find("dd:eq(0)").text().split(",").join("") * post + "</dd>");
});
}

Money("MONEY_NAME","MONEY_SIGN","MONEY_PER_POST");
</script>


Thanks to HolySavior for helping me with the jQuery, and Eureka for making it work for EACH member. ;)

Board Template -> Below the board.
Edited by slayer766-ZNR, Jan 23 2010, 10:39 PM.
Offline Profile Quote Post Goto Top
 
StormyWolf
Member Avatar
Member
[ * ]
I'm sorry, but what do you edit in this code?
Offline Profile Quote Post Goto Top
 
DK21U
Member Avatar
Member
[ * ]
("MONEY_NAME","MONEY_SIGN","MONEY_PER_POST")

Just edit those to whatever you want them to be. :)
Offline Profile Quote Post Goto Top
 
Suupaa Gohan 2
Member
[ * ]
This is great, a lot nicer than the money codes that you have to specify your users for because I want a money system that works for every user. My problem with this is that on my board we have a LOT of posts (when we moved from Invisionfree I manually copied over everyone's previous post count...from the previous 5 years :P), and when displayed for members that have a really high post count, it says NaN as the coin amount. It works fine for newer members who have smaller post counts just fine, though. Is there a way to fix this?
Offline Profile Quote Post Goto Top
 
slayer766-ZNR
Member
[ *  *  *  * ]
It probably has something to do with the comma for post count. :D Try this fix:

Code:
 
<script type="text/javascript">
/*
|| ZB Simple Money Hack
|| By Slayer766 of TCZ (http://thecodingzone.com)
*/
function Money(name,sign,post){
$(".user_info").each(function(){
$(this).append("<dt>" + name + ":</dt><dd>" + sign + $(this).find("dd:eq(0)").text().split(",").join("") * post + "</dd>");
});
}

Money("MONEY_NAME","MONEY_SIGN","MONEY_PER_POST");
</script>
Offline Profile Quote Post Goto Top
 
Suupaa Gohan 2
Member
[ * ]
That did the trick. Thanks!!
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

What can I do with it though?
Quote Post Goto Top
 
Deleted User
Deleted User

Can you edit the amounts?
Quote Post Goto Top
 
slayer766-ZNR
Member
[ *  *  *  * ]
Amounts are based on post count in this code.
Offline Profile Quote Post Goto Top
 
gamer3
Member Avatar
Member
[ *  * ]
Is there anychance you could edit peoples money through this code? As in if a certain members win more money through contests ect can you add more to there profile or take some off?
Offline Profile Quote Post Goto Top
 
slayer766-ZNR
Member
[ *  *  *  * ]
You would want this: http://resources.zetaboards.com/topic/5079120

Though that doesn't increase money per post.
Offline Profile Quote Post Goto Top
 
iLLoNyX
Member Avatar
<3Rachel Weisz<3
[ *  *  *  * ]
You should make this so the money sign can be an image.
Offline Profile Quote Post Goto Top
 
slayer766-ZNR
Member
[ *  *  *  * ]
You can. When you go to edit the function:

Code:
 
Money("MONEY_NAME","<img src='IMAGE_URL_HERE'>","MONEY_PER_POST");
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Im sorry, i am an idiot. But what does this even do?
Quote Post Goto Top
 
Arly
Member Avatar
Member
[ *  *  * ]
How does someone spend the money? Surely there is a way to deduct/add to what members have earned without messing around with their post count?
Edited by Arly, Apr 18 2010, 06:44 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