News:

Create A Forum Installed

Author Topic: I have code problems...  (Read 3037 times)

0 Members and 2 Guests are viewing this topic.

Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile

Badges: (View All)
Level 3 10 Posts Karma Good
Re: I have code problems...
« on: January 04, 2015, 01:13:24 am »
Flyzer, this is what you want:

Code: [Select]
<script type="text/javascript">
var Name = "AwesomeCoins";
var Sign = "$";
var Amount = 1;

var Aug_02_2010 = document.getElementsByTagName("li");
//Created by Agent Moose
for(x=0;x<Aug_02_2010.length;x++){
if(Aug_02_2010[x].className === "postcount" && Aug_02_2010[x].innerHTML.match(/posts: (.*)/i)){
var li = document.createElement("li");
li.className = "money";
li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
Aug_02_2010[x].parentNode.insertBefore(li, Aug_02_2010[x].nextSibling);
};
};
</script>

The only thing you might want to change is: "var Amount = 1;"
Where the 1 is replaced with the amount you want per post.

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
4478 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
12 Replies
1481 Views
Last post October 20, 2012, 02:01:41 pm
by Unrealiistiic
4 Replies
989 Views
Last post February 15, 2013, 08:52:21 pm
by aIURbliS
1 Replies
618 Views
Last post October 04, 2014, 01:46:13 am
by CreateAForum
0 Replies
224 Views
Last post November 23, 2016, 01:50:47 am
by Laina