Create A Forum - Support Forums
Support => Create a Forum Codes and Support => Topic started by: SomeHandsomeGuy on December 15, 2014, 07:36:27 pm
-
The codes don't work on my forum, I tried several of them. My friend on some forum even told me how to put the code, but nothing happened, and yet, those codes work on his forum.
-
What code?
-
This (http://support.createaforum.com/5/(code)-money-code-(simple)/)
And a new smiley set code.
-
Please help.
-
You modified the code which caused it to stop working. Change
li.innerHTML = RegExp.$1;
to li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
-
You modified the code which caused it to stop working. Change li.innerHTML = RegExp.$1;
to li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
Got it, thanks. Will do now.
-
Tried. Doesn't w.ork
-
You've changed it once again.....
Change
li.innerHTML = AwesomeCoins + ": " + $ + (RegExp.$1 * Amount);
to
li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
-
Flyzer, this is what you want:
<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.
-
Flyzer, this is what you want:
<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.
Thanks.
-
]Thanks.
np :)