URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Create A Forum - Support Forums
  HTML https://support.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Create a Forum Codes and Support
       *****************************************************
       #Post#: 14954--------------------------------------------------
       I have code problems...
       By: SomeHandsomeGuy Date: December 15, 2014, 1:36 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.
       #Post#: 14955--------------------------------------------------
       Re: I have code problems...
       By: CreateAForum Date: December 15, 2014, 1:52 pm
       ---------------------------------------------------------
       What code?
       #Post#: 14958--------------------------------------------------
       Re: I have code problems...
       By: SomeHandsomeGuy Date: December 16, 2014, 3:50 pm
       ---------------------------------------------------------
       This
  HTML http://support.createaforum.com/5/(code)-money-code-(simple)/
       And a new smiley set code.
       #Post#: 14975--------------------------------------------------
       Re: I have code problems...
       By: SomeHandsomeGuy Date: December 22, 2014, 3:19 am
       ---------------------------------------------------------
       Please help.
       #Post#: 14977--------------------------------------------------
       Re: I have code problems...
       By: xboi209 Date: December 22, 2014, 9:36 pm
       ---------------------------------------------------------
       You modified the code which caused it to stop working. Change
       [code]li.innerHTML = RegExp.$1;[/code] to [code]li.innerHTML =
       Name + ": " + Sign + (RegExp.$1 * Amount);[/code]
       #Post#: 14979--------------------------------------------------
       Re: I have code problems...
       By: SomeHandsomeGuy Date: December 23, 2014, 8:14 am
       ---------------------------------------------------------
       [quote author=aIURbliS link=topic=4068.msg14977#msg14977
       date=1419305788]
       You modified the code which caused it to stop working. Change
       [code]li.innerHTML = RegExp.$1;[/code] to [code]li.innerHTML =
       Name + ": " + Sign + (RegExp.$1 * Amount);[/code]
       [/quote]Got it, thanks. Will do now.
       #Post#: 14980--------------------------------------------------
       Re: I have code problems...
       By: SomeHandsomeGuy Date: December 23, 2014, 8:22 am
       ---------------------------------------------------------
       Tried. Doesn't w.ork
       #Post#: 14987--------------------------------------------------
       Re: I have code problems...
       By: xboi209 Date: December 24, 2014, 12:01 pm
       ---------------------------------------------------------
       You've changed it once again.....
       Change
       [code]li.innerHTML = AwesomeCoins + ": " + $ + (RegExp.$1 *
       Amount); [/code]
       to
       [code]li.innerHTML = Name + ": " + Sign + (RegExp.$1 *
       Amount);[/code]
       #Post#: 15038--------------------------------------------------
       Re: I have code problems...
       By: CyanProductions Date: January 3, 2015, 7:13 pm
       ---------------------------------------------------------
       Flyzer, this is what you want:
       [code]
       <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>
       [/code]
       The only thing you might want to change is: "var Amount = 1;"
       Where the 1 is replaced with the amount you want per post.
       #Post#: 15292--------------------------------------------------
       Re: I have code problems...
       By: SomeHandsomeGuy Date: February 19, 2015, 12:49 pm
       ---------------------------------------------------------
       [quote author=CyanProductions link=topic=4068.msg15038#msg15038
       date=1420334004]
       Flyzer, this is what you want:
       [code]
       <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>
       [/code]
       The only thing you might want to change is: "var Amount = 1;"
       Where the 1 is replaced with the amount you want per post.
       [/quote]Thanks.
       *****************************************************
   DIR Next Page