Advertise Here

Author Topic: Code Help? READ PLEASE  (Read 3678 times)

0 Members and 1 Guest are viewing this topic.

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Code Help? READ PLEASE
« on: March 02, 2009, 11:52:49 am »
Forum Url: http://swapitshop.smfforfree.com
Its For Runescape crowns

my code

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["[JMC]Matrixs","[JMC]Matrixs","red","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/admin.gif'  />"];
for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

Any ideas why it wont work?
Signiture



Affliriate Button
When somebody makes me one

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Code Help? READ PLEASE!
« Reply #1 on: March 02, 2009, 11:56:03 am »
Forum Url: http://swapitshop.smfforfree.com
Anyone??? HELP!
Signiture



Affliriate Button
When somebody makes me one

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Code Help? READ PLEASE
« Reply #2 on: March 02, 2009, 12:35:58 pm »
make sure the jquery include is at the top of your header

Make sure the name you have in there as the OLD name is the exact same as the username.. not the display name.. and its case sensitive.

I grabbed your code, replaced only the two names with mine and stuck it on my test site.. it worked.. so its either the jquery or how you have the names in there.

I think we need to move the runescape guide over to the Codes Section and these threads to the Code Support section as it really IS a code.

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #3 on: March 02, 2009, 12:40:41 pm »
I have fixed this for him on his site, it didn't work because of the "[" and "]" around his name ;).

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #4 on: March 02, 2009, 12:41:16 pm »
Can you give me the code for js? and the code u used?
Signiture



Affliriate Button
When somebody makes me one

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Code Help? READ PLEASE
« Reply #5 on: March 02, 2009, 12:44:01 pm »
put this at the top of your header:

Code: [Select]
<script src="/jquery.js"></script>
I used this.. replace "sibyl" with your username  NOT your display name

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["sibyl","sibyl","red","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/admin.gif'  />"];
for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #6 on: March 02, 2009, 12:45:20 pm »
Can you give me the code for js? and the code u used?
It works for you now, you cannot have any brackets in your username ;).

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #7 on: March 02, 2009, 12:47:29 pm »
For some reason it wont load the crowns??

does it take time?
Signiture



Affliriate Button
When somebody makes me one

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #8 on: March 02, 2009, 12:49:16 pm »
For some reason it wont load the crowns??

does it take time?
It takes a few seconds to load, but should work ;).

Just have a look again, and check, because they appear for me.

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #9 on: March 02, 2009, 12:50:35 pm »
Fixed*

i had to edit a code what hid it

Thank you
Signiture



Affliriate Button
When somebody makes me one

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #10 on: March 02, 2009, 12:52:34 pm »
Code: [Select]
vfour[vfour.length] = ["jmcmatrixs","jmcmatrixs","red","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/admin.gif'  />"];

do i add another like that ^?
Signiture



Affliriate Button
When somebody makes me one

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #11 on: March 02, 2009, 12:56:28 pm »
If you want to add more crowns to different users then you will need to add in more of those below the orginal one. Editing the names, etc to fit that user.

Offline jmcmatrixs

  • SMF For Free Member
  • *
  • Posts: 82
  • www.swapitshop.smfforfree.com
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Code Help? READ PLEASE
« Reply #12 on: March 02, 2009, 01:02:16 pm »
Yea , Thanks
Signiture



Affliriate Button
When somebody makes me one

 

Related Topics

  Subject / Started by Replies Last post
13 Replies
7257 Views
Last post April 11, 2007, 06:17:55 pm
by Kimmie
0 Replies
1655 Views
Last post July 13, 2008, 09:11:41 am
by Qub1
22 Replies
6147 Views
Last post January 02, 2009, 02:01:22 am
by [JeReMy]
0 Replies
564 Views
Last post March 02, 2009, 12:40:13 pm
by simply sibyl
0 Replies
19507 Views
Last post May 29, 2009, 08:14:01 am
by Agent Moose