Advertise Here

Author Topic: [Code] Money Code  (Read 18755 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Money Code
« on: May 30, 2007, 12:06:10 pm »
Finnally, a code that eveyone wants.  The Money Code!!!  It took me forever to finish, but I got it done.  It isn't the the place I want it, but it works for now.  It showes up under the AIM and MSN icons...

This part goes in the Footer:

Code: [Select]
<script>
function smc_money_code(name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
c = document.getElementsByTagName("div");
for(v=0;v<c.length;v++){
if(c[v].className=="smalltext" && c[v].innerHTML.match(/Posts: (\d+)/)){
var total = amount * RegExp.$1;
c[v].innerHTML+="<br />" + name+": " + sign + total;
};};}
smc_money_code("MONEY NAME","SIGN","AMOUNT PER POST")
</script>

This is simple
MONEY NAME is the name of the money...(eg: Money)
SIGN is the sign of the money(eg: $)
AMOUNT PER POST is how much you get per post(eg: 5[The number you put will be multiplied the posts.])

EDIT:  I forgot to tell you people something.  If you want to decrease someones money, decrese there post count by going to there profile.
« Last Edit: July 17, 2008, 05:32:19 pm by simply sibyl »
Check out Revolution X's Brand new Code Index!

Offline deathwilldie

  • Style Designer
  • *
  • Posts: 770
  • Give me an idea for a Stylesheet
    • View Profile
    • Revolution X

  • Total Badges: 28
    Badges: (View All)
    Tenth year Anniversary Nineth year Anniversary Search Eighth year Anniversary Seventh year Anniversary
Re: Money Code
« Reply #1 on: June 05, 2007, 08:37:38 pm »
Is it possible to donate money to people on it?

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code
« Reply #2 on: June 05, 2007, 09:09:44 pm »
Nope, I wish I knew how to do that.
Check out Revolution X's Brand new Code Index!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Money Code
« Reply #3 on: June 07, 2007, 07:10:10 pm »
I found this image and thought some of you might want to use it with your code: . If you would like the color to be something else let me know. (if you have the HTML color code for the color you want to use, that would be great) :)


Heres blue as an example:
« Last Edit: June 07, 2007, 07:18:02 pm by Kimmie »

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code
« Reply #4 on: June 07, 2007, 08:46:28 pm »
Nice, never even though of useing an image for it.  Good job.
Check out Revolution X's Brand new Code Index!

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Money Code
« Reply #5 on: June 09, 2007, 11:23:16 am »


Personally, I like this one.  Now if you could be persuaded to part with the info on how to put it in, LOL.  Do I use the <img src one?


**That's Ok, I fiddled around with it til the brain cells kicked in.  I really like this code.  Now I need to figure out what to use them for.
« Last Edit: June 09, 2007, 12:54:11 pm by LaundryLady »


And I Play:  Mafia-Mandemz

Offline BadgeHo

  • SMF For Free Newbie
  • *
  • Posts: 3
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: Money Code
« Reply #6 on: June 12, 2007, 01:19:59 am »
My question has to do with an extension of the Money.  Is there a code (maybe I haven't looked in the correct place) for a Bank on the forums?  I/We appreciate the Money code, but would like the bank to go with it.  Thanks for any help you all can give. :smitten:

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code
« Reply #7 on: June 12, 2007, 03:13:32 pm »
Nope, sorry There is not a bank.  I am not that good at coding :)
Check out Revolution X's Brand new Code Index!

Offline Knightcastle

  • SMF For Free Member
  • *
  • Posts: 75
    • View Profile
    • Fuedal Zone

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Money Code
« Reply #8 on: August 08, 2007, 07:21:59 pm »
Is it possible to make multiple amounts of currencies for different forums. This is a request if u could make it.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code
« Reply #9 on: August 09, 2007, 11:40:50 am »
Why would you need other currencies.
Check out Revolution X's Brand new Code Index!

Offline Laugh-nd-kid

  • SMF For Free Master
  • *
  • Posts: 1409
  • Thankyou for this great software SMF For Free!
    • View Profile

  • Total Badges: 21
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Money Code
« Reply #10 on: August 09, 2007, 12:37:10 pm »
Why don't you just have one currency per forum?

Why have $24 and then £42?

Offline Hermione47

  • SMF For Free Member
  • *
  • Posts: 97
  • I am THE ~Hermione Fan~
    • View Profile
    • SnakeToothes School For Wizards And Witches

  • Total Badges: 16
    Badges: (View All)
    Windows User Topic Starter Combination Level 3 Level 2
Re: Money Code
« Reply #11 on: August 12, 2007, 05:17:21 pm »
Hey um.....Well I have sort of like a Harry Potter site, and I want the money name to be Galleons. How do I put the "MONEY NAME" or whatever to be "GALLEONS" or something like that?(Galleons are wizard money). Please Agent Moose!
Wanna be a wizard? Come to SnakeToothes

Offline Hermione47

  • SMF For Free Member
  • *
  • Posts: 97
  • I am THE ~Hermione Fan~
    • View Profile
    • SnakeToothes School For Wizards And Witches

  • Total Badges: 16
    Badges: (View All)
    Windows User Topic Starter Combination Level 3 Level 2
Re: Money Code
« Reply #12 on: August 12, 2007, 05:26:35 pm »
Um.....................HELPPPPPPPPPPPPPPPPPPPPPP!!!!!!!!!!!!!!!!!!!!!!!!!!!! I put money code....erm I mean I put the HEADERS code in the Headers:]<script language="JavaScript" type="text/javascript" src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>[/co and then I put the money code in like this: <script>
function smc_money_code(name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
c = $("div")
for (v=0;v<c.length;v++)
if((c[v].className=="smalltext")&&(c[v].innerHTML.match(/Posts: (\d+)/))){
total = amount*RegExp.$1
c[v].innerHTML+="<br />"+name+": "+sign+total+""
};});}
smc_money_code("MONEY NAME","SIGN","AMOUNT PER POST")
</script>
What'd I do wrong NOW? I looked at my members profile and it didnt have the money ammount ANYWHERE! Why not?! *Sometimes I just think Im SOOOOOOO stubid, you know? But sometimes I am!LOL*
Wanna be a wizard? Come to SnakeToothes

Offline hatred

  • SMF For Free Full Member
  • *
  • Posts: 112
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Money Code
« Reply #13 on: August 12, 2007, 06:12:39 pm »
smc_money_code("MONEY NAME","SIGN","AMOUNT PER POST")
</script>
Change the glowing part to what you want it to be named.

guest1608

  • Guest
Re: Money Code
« Reply #14 on: August 12, 2007, 09:30:59 pm »
It doesn't show your member's money anywhere but their posts. But hey Moose, you could have it show up in their profiles as it shows the post count there.

 

Related Topics

  Subject / Started by Replies Last post
34 Replies
11965 Views
Last post June 08, 2009, 12:04:16 pm
by Remixed
money code help

Started by guest2694 « 1 2 3 » SMF For Free Codes and Support

31 Replies
5686 Views
Last post March 17, 2008, 07:21:15 pm
by simply sibyl