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

0 Members and 0 Guests are viewing this topic.

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!
I have code problems...
« 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.

Share on Facebook Share on Twitter


Offline CreateAForum

  • Administrator
  • *****
  • Posts: 5840
  • Karma: 279
    • View Profile
Re: I have code problems...
« Reply #1 on: December 15, 2014, 07:52:40 pm »
What code?
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!
Re: I have code problems...
« Reply #2 on: December 16, 2014, 09:50:04 pm »
This


And a new smiley set code.

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!
Re: I have code problems...
« Reply #3 on: December 22, 2014, 09:19:59 am »
Please help.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: I have code problems...
« Reply #4 on: December 23, 2014, 03:36:28 am »
You modified the code which caused it to stop working. Change
Code: [Select]
li.innerHTML = RegExp.$1; to
Code: [Select]
li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!
Re: I have code problems...
« Reply #5 on: December 23, 2014, 02:14:46 pm »
You modified the code which caused it to stop working. Change
Code: [Select]
li.innerHTML = RegExp.$1; to
Code: [Select]
li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
Got it, thanks. Will do now.

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!
Re: I have code problems...
« Reply #6 on: December 23, 2014, 02:22:06 pm »
Tried. Doesn't w.ork

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: I have code problems...
« Reply #7 on: December 24, 2014, 06:01:37 pm »
You've changed it once again.....
Change
Code: [Select]
li.innerHTML = AwesomeCoins + ": " + $ + (RegExp.$1 * Amount); to
Code: [Select]
li.innerHTML = Name + ": " + Sign + (RegExp.$1 * Amount);
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile
Re: I have code problems...
« Reply #8 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.

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!
Re: I have code problems...
« Reply #9 on: February 19, 2015, 06:49:04 pm »
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.
Thanks.

Offline CyanProductions

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

 

Related Topics

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