DIR Return Create A Forum - Home
---------------------------------------------------------
Create a Forum Coding
HTML https://cfcoding.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create A Forum Codes
*****************************************************
#Post#: 20--------------------------------------------------
[CODE] Money Code (Simple)-- Agent Moose
DIR By: Nick
Date: August 3, 2010, 1:27 pm
---------------------------------------------------------
100% of the credit to making this code goes to Agent Moose.
Put this in your footers
--- Code ---
<!---
HTML http://cfcoding.createaforum.com
--->
<script type="text/javascript">
var Name = "NAME";
var Sign = "SIGN";
var Amount = AMOUNT PER POST;
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>
<!---
HTML http://cfcoding.createaforum.com
--->
--- End Code ---
NAME = The Name of the currency (EX: Money)
SIGN = The Sign of the currency (EX: $)
AMOUNT PER POST = How much the user will get for each post they
make (EX: 2. Whatever number you set, will be multiplied by
their post number)
NOTE: This code is subject to be edited in the future by it's
original creator!!
100% of the credit to making this code goes to Agent Moose.
*****************************************************
Page 1 of 1