SMF For Free Support Forum
Signup For Free Forum
April 23, 2014, 10:15:54 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register Chat  

Pages: [1] 2 3
  Print  
Author Topic: [Code] Money Code  (Read 13189 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 833


Do not PM me for Code Support or Request


View Profile
Total Badges: 20
Badges: (View All)
Apple User Windows User Topic Starter Combination Level 4
« 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:
<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 » Logged

Check out Revolution X's Brand new Code Index!
deathwilldie
Style Designer
*
Offline Offline

Posts: 768


Give me an idea for a Stylesheet


View Profile WWW
Total Badges: 22
Badges: (View All)
Poll Voter Level 5 Webmaster Windows User Topic Starter
« Reply #1 on: June 05, 2007, 08:37:38 pm »

Is it possible to donate money to people on it?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 833


Do not PM me for Code Support or Request


View Profile
Total Badges: 20
Badges: (View All)
Apple User Windows User Topic Starter Combination Level 4
« Reply #2 on: June 05, 2007, 09:09:44 pm »

Nope, I wish I knew how to do that.
Logged

Check out Revolution X's Brand new Code Index!
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
Total Badges: 19
Badges: (View All)
Topic Starter Combination Level 4 Level 3 Level 2
« 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) Smiley


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

Agent Moose
Moderator
*****
Offline Offline

Posts: 833


Do not PM me for Code Support or Request


View Profile
Total Badges: 20
Badges: (View All)
Apple User Windows User Topic Starter Combination Level 4
« Reply #4 on: June 07, 2007, 08:46:28 pm »

Nice, never even though of useing an image for it.  Good job.
Logged

Check out Revolution X's Brand new Code Index!
LaundryLady
Helpers
*
Offline Offline

Posts: 3251


Internet Challenged


View Profile
Total Badges: 25
Badges: (View All)
Sixth year Anniversary Search Poll Voter Level 5 Windows User
« 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 » Logged



And I Play:  Mafia-Mandemz
BadgeHo
SMF For Free Newbie
*
Offline Offline

Posts: 3


View Profile
Total Badges: 9
Badges: (View All)
Topic Starter Combination Level 2 Level 1 First Post
« 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
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 833


Do not PM me for Code Support or Request


View Profile
Total Badges: 20
Badges: (View All)
Apple User Windows User Topic Starter Combination Level 4
« Reply #7 on: June 12, 2007, 03:13:32 pm »

Nope, sorry There is not a bank.  I am not that good at coding Smiley
Logged

Check out Revolution X's Brand new Code Index!
Knightcastle
SMF For Free Member
*
Offline Offline

Posts: 75



View Profile WWW
Total Badges: 14
Badges: (View All)
Topic Starter Combination Level 3 Level 2 Level 1
« 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.
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 833


Do not PM me for Code Support or Request


View Profile
Total Badges: 20
Badges: (View All)
Apple User Windows User Topic Starter Combination Level 4
« Reply #9 on: August 09, 2007, 11:40:50 am »

Why would you need other currencies.
Logged

Check out Revolution X's Brand new Code Index!
Laugh-nd-kid
SMF For Free Master
*
Offline Offline

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
« 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?
Logged

Hermione47
SMF For Free Member
*
Offline Offline

Posts: 97


I am THE ~Hermione Fan~


View Profile WWW
Total Badges: 16
Badges: (View All)
Windows User Topic Starter Combination Level 3 Level 2
« 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!
Logged

Wanna be a wizard? Come to SnakeToothes
Hermione47
SMF For Free Member
*
Offline Offline

Posts: 97


I am THE ~Hermione Fan~


View Profile WWW
Total Badges: 16
Badges: (View All)
Windows User Topic Starter Combination Level 3 Level 2
« 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*
Logged

Wanna be a wizard? Come to SnakeToothes
hatred
SMF For Free Full Member
*
Offline Offline

Posts: 112


View Profile
Total Badges: 13
Badges: (View All)
Topic Starter Combination Level 3 Level 2 Level 1
« 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.
Logged
Omikron 9861
SMF For Free Full Member
*
Offline Offline

Posts: 229


High School Science.........


View Profile
Total Badges: 16
Badges: (View All)
Topic Starter Combination Level 3 Level 2 Level 1
« 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.
Logged


You have no idea what you are missing out on. The best place to discuss Eragon, Eldest and Book 3
 is just a single click away. So click!

Want a spoiler tag on your forum? Click here!


Pages: [1] 2 3
  Print  
 
Jump to:  



Powered by SMF 1.1.19 | SMF © 2013, Simple Machines