SMF For Free Support Forum
Signup For Free Forum
August 30, 2008, 11:46:45 am *
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  

Pages: [1]
  Print  
Author Topic: My money code won't work  (Read 190 times)
0 Members and 1 Guest are viewing this topic.
Mayhem Maker
SMF For Free Full Member
*
Offline Offline

Posts: 199



View Profile WWW
« on: July 17, 2008, 05:16:32 pm »

Forum Url: http://extr3m3gaming.smfforfree4.com
I have the right code in my header:
Code:
<script src="/jquery.js"></script>


And this is the money code(Also in my header):
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("Credits","$","4")
</script>


I followed the tutorial at this link:
http://smcodes.smfforfree3.com/index.php/topic,31.0.html
Logged


Click the Banner above to go to the Best Forums in the world!
simply sibyl
Global Moderator
*
Online Online

Posts: 7946


I am not a dude!


View Profile WWW
« Reply #1 on: July 17, 2008, 05:26:26 pm »

Stick this part in your footer instead:

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("Credits","$","4")
</script>

Logged

Mayhem Maker
SMF For Free Full Member
*
Offline Offline

Posts: 199



View Profile WWW
« Reply #2 on: July 17, 2008, 05:29:13 pm »

Thank you,It worked.
It didnt tell you where to put it so i assumed headers
Logged


Click the Banner above to go to the Best Forums in the world!
simply sibyl
Global Moderator
*
Online Online

Posts: 7946


I am not a dude!


View Profile WWW
« Reply #3 on: July 17, 2008, 05:30:45 pm »

"most" of mooses codes go in the footer..   yeah I noticed he didnt mention it with this one. 
I tested it for ya and it worked.

Logged

Mayhem Maker
SMF For Free Full Member
*
Offline Offline

Posts: 199



View Profile WWW
« Reply #4 on: July 17, 2008, 05:32:51 pm »

"most" of mooses codes go in the footer..   yeah I noticed he didnt mention it with this one. 
I tested it for ya and it worked.


Yeah,Thanks Cheesy
And BTW Grats on 7000 Posts.....Man that is a lot.
Logged


Click the Banner above to go to the Best Forums in the world!
simply sibyl
Global Moderator
*
Online Online

Posts: 7946


I am not a dude!


View Profile WWW
« Reply #5 on: July 17, 2008, 05:34:32 pm »

ack!   uglystupid2  good grief where is that duct tape
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.19 seconds with 17 queries.