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:
Add Reply
Can't find apropriate money code; that doesn't subtract from posts
Topic Started: May 28 2008, 08:34 PM (942 Views)
Vrikk
Member Avatar
Member
 *   *  
I've tried and tested nearly every single money code or hack in the code index, but it seems that all of them add or subtract from the post count as well as the amount of money. What I need, is a simple money code (no preset shop system, items, or lottery) which is seperate from the post count.

On my boards post counts are a symbol of seniority, and I don't want to take that away from members who decide to spend their earnings... :-/

ANY money code suggestions where post counts are not tied into the money would be amazing. :D Thanks.
Offline Profile Quote Post Goto Top
 
x.Miranda.x
Member
 *  
http://index.ifcode.com/advert_redirect.php?un=http://z9.invisionfree.com/iFusion/index.php?showtopic=11026

In red, it says 900 - change that to 0. This is seperate from your posts, so hopefully it will work for you ^_^
Offline Profile Quote Post Goto Top
 
Vrikk
Member Avatar
Member
 *   *  
lol, I'm sorry. :lol: I didn't exactly mean having the money separate from the posts. I want members to get money per post, only I don't want to have to add and subtract their post counts to add or subtract their money. It's a little hard to explain. Here:

Example: Member Vrikk has 10 posts, and with 10 dollars per post, he now has 100 dollars. However, Vrikk then buys a master sword for 50 dollars. Vrikk now has only 50 dollars, though still possesses 10 posts.

Is that possible? :-/ If not please tell me.

I again apologize for the initial confusion. ^_^ That was my fault. Thank you though.
Edited by Vrikk, May 31 2008, 05:42 PM.
Offline Profile Quote Post Goto Top
 
x.Miranda.x
Member
 *  
I don't *think* you can have that on IF, although I could be wrong... you could manually subtract money, but that would also subtract posts. Sorry I'm not more help >.<
Offline Profile Quote Post Goto Top
 
Justin186
Member Avatar
IF / ZB coder
 *   *   *  
Use Crazy J's or Trinigangsta's i know that they dont take away from post count when u edit :)
Offline Profile Quote Post Goto Top
 
Garath531
Member Avatar
Look, up in the sky! It's a bird! It's a plane! It's Superman!
 *   *   *   *  
Try using this:
Quote:
 

<script type="text/javascript">
/*
Money code by Garath531 of the ZBTZ and IF Support and ZB Support. Do not edit, or repost with my permission. Do not delete this copyright.
*/
var mSign = "$";
var pPost = 300;
var mName = "Money";
var change = []
change[change.length++] = ["Garath531", "+", 501]
if(location.href.match(/showtopic=/gi)) {
var getTd = document.getElementsByTagName("td");
for(k=0;k<getTd.length;k++) {
if((getTd[k].className == "post1" || getTd[k].className == "post2") && getTd[k].getElementsByTagName("span")[0] && getTd[k].getElementsByTagName("span")[0].className == "postdetails") {
var uPosts = parseInt(getTd[k].getElementsByTagName("span")[0].innerHTML.split("Posts: ")[1].split("<br />"));
var uTotal = uPosts*pPost;
var uName =
getTd[k].parentNode.parentNode.getElementsByTagName("tr")[0].getElementsByTagName("td")[0].getElementsByTagName("span")[0].lastChild.innerHTML;
if(uName.split(">")[1]) {
uName = uName.split(">")[1].split("<")[0];
}
for(z=0;z<change.length;z++) {
if(change[z][0] == uName) {
switch(change[z][1]) {
case "+":
uTotal = uTotal + change[z][2];
break;
case "-":
uTotal = uTotal - change[z][2];
break;
}
}
}
getTd[k].getElementsByTagName("span")[0].innerHTML = getTd[k].getElementsByTagName("span")[0].innerHTML.replace("Joined:", mName + ": " + mSign + uTotal + "<br />Joined");
}
}
}
</script>

Change the following:
Green: ($) The sign for your money (e.g. $)
Red: (300) The amount to multiply each post by NO QUOTES (if a user has 1 post and this is set to 2 the user will have 2 money)
Orange: (Money) The name for your money
Pink: (Garath531) The name of the user whose amount you would like to change.
Purple: (+) Add or subtract money. Values are "+" or "-"
Blue: (501) The amount to add or subtract

To alter the money of more users:
Code:
 

change[change.length++] = ["user", "+ or -", Amount]
Edited by Garath531, Jun 5 2008, 01:48 PM.
Offline Profile Quote Post Goto Top
 
Justin186
Member Avatar
IF / ZB coder
 *   *   *  
Nice money code Garath ^_^ well done, How long have you been coding for? Its a bit different than how i would have made it but your way is probably easier for people to understand. Well done :)
Edited by Justin186, Jun 4 2008, 05:23 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply