Advertise Here

Author Topic: [Guide] How to Use Your Own Rank Images  (Read 157293 times)

0 Members and 1 Guest are viewing this topic.

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: [Guide] How to Use Your Own Rank Images
« Reply #120 on: December 05, 2009, 01:08:30 pm »
i dunno why but i cannot use it btw i have got a lots OF HEADER /FOOTERS
and also i dunno if is a problem that;)
anyway ty for helping me;)

its weird...


It could be if the code got mixed up when you put it in.   If you post your forum url as Andrew asked, he'll take a look and see if he can find out what is going on with it.    I did check back to find your url earlier and you had a different image set up for your admin rank but I dont know if its the same forum or not so please post it ok?

Offline Uninvited

  • SMF For Free Member
  • *
  • Posts: 29
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #121 on: December 05, 2009, 01:10:49 pm »

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: [Guide] How to Use Your Own Rank Images
« Reply #122 on: December 05, 2009, 01:12:29 pm »
You have a different image set up for your Admin Membergroup then what you put in the code; that is why it is not working.   Hold on a moment and Ill fix the code for you.   (that and the codes in both your header and footer)

 
« Last Edit: December 05, 2009, 01:17:19 pm by simply sibyl »

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Guide] How to Use Your Own Rank Images
« Reply #123 on: December 05, 2009, 01:13:43 pm »
I see this is in your headers, it should be in your footers:
Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/LED/alt_rankadmin.gif" , "http://img41.imageshack.us/img41/7281/57817597.png" ]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>

I think that's really the only error I see now.

EDIT:
Sorry! It's in both your headers AND footers, remove it from your headers.
« Last Edit: December 05, 2009, 01:15:54 pm by Andrew »

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: [Guide] How to Use Your Own Rank Images
« Reply #124 on: December 05, 2009, 01:14:46 pm »
Andrew thanks  -  actually he has the wrong image url there too - read my note above.


Uninvited - delete that from your header and your footer.
Put THIS one in your footer.   This one will work.

Here you go:

Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/steel/white4.jpg" , "http://img41.imageshack.us/img41/7281/57817597.png" ]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>
« Last Edit: December 05, 2009, 01:23:29 pm by simply sibyl »

Offline Uninvited

  • SMF For Free Member
  • *
  • Posts: 29
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #125 on: December 05, 2009, 01:43:47 pm »
ty a lot it works:)

Offline KrazY

  • SMF For Free Newbie
  • *
  • Posts: 10
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #126 on: December 11, 2009, 07:03:21 am »
Perfect!
Its a really useful guide you've gave us!

Regards,
KrazY.

Offline xx_pwn3d_xx

  • SMF For Free Newbie
  • *
  • Posts: 8
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Second year Anniversary One year Anniversary
Re: [Guide] How to Use Your Own Rank Images
« Reply #127 on: December 11, 2009, 11:16:27 pm »
Thanks sibyl! Was confusing at start but got it.

Offline rebelman2

  • SMF For Free Member
  • *
  • Posts: 21
  • Im cool like dat
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #128 on: December 29, 2009, 11:43:42 am »
didn't work
Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = [ "http://www.smfboards.com/ranks/starmod.gif" , "http://i213.photobucket.com/albums/cc248/ownagepker/donator.gif" ]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>


517 (new) runescape private server: http://m4g3dscape.tk

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Guide] How to Use Your Own Rank Images
« Reply #129 on: December 29, 2009, 12:11:52 pm »
didn't work
Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = [ "http://www.smfboards.com/ranks/starmod.gif" , "http://i213.photobucket.com/albums/cc248/ownagepker/donator.gif" ]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>

Are you using this image for the membergroup?:

Offline brad1571

  • SMF For Free Newbie
  • *
  • Posts: 15
  • Since the box is blank let's leave it that way.
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #130 on: February 10, 2010, 11:31:04 am »
Help! Nothing happens!

I've added to the footer and everything. It just shows up as the original picture. :S

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: [Guide] How to Use Your Own Rank Images
« Reply #131 on: February 10, 2010, 11:57:35 am »
We need more information.

1.  Your forum url (with the code in place)

2.  Post your code so we can look at it.


Offline brad1571

  • SMF For Free Newbie
  • *
  • Posts: 15
  • Since the box is blank let's leave it that way.
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #132 on: February 12, 2010, 02:23:21 pm »
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = [ "http://www.smfboards.com/ranks/AppleBlue/rangsp.gif" , "http://img163.imageshack.us/img163/5383/eqqowm.gif" ]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images.src == img_b[j][0]){
     all_images.src = img_b[j][1];
}}}
</script>

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Guide] How to Use Your Own Rank Images
« Reply #133 on: February 12, 2010, 02:29:42 pm »
We still need your forum URL. ;)

The code appears to be correct. Make sure that the image in the first sport () is the one that is current rank image for that membergroup.

Offline brad1571

  • SMF For Free Newbie
  • *
  • Posts: 15
  • Since the box is blank let's leave it that way.
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #134 on: February 13, 2010, 02:36:02 am »
We still need your forum URL. ;)

The code appears to be correct. Make sure that the image in the first sport () is the one that is current rank image for that membergroup.

FORUM:  http://ruinedscapethemassiveonli.smfforfree.com/
LINK WHERE USER POSTED: http://ruinedscapethemassiveonli.smfforfree.com/index.php/topic,42.msg156.html#new
« Last Edit: February 13, 2010, 02:38:06 am by brad1571 »