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

0 Members and 1 Guest are viewing this topic.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Guide] How to Use Your Own Rank Images
« Reply #150 on: August 05, 2010, 09:20:48 am »
Epic,

You have 2 backslashes in some of the image links.

http://images.smfboards.com/ranks//dl_ranks2/rank_3.gif

should be this

http://images.smfboards.com/ranks/dl_ranks2/rank_3.gif


with NO SPACE between the image link and the last quotation mark.

Right now you're links look like this....

"http://images.smfboards.com/ranks//dl_ranks2/rank_3.gif "

elminate the space and the double backslash to get this

"http://images.smfboards.com/ranks/dl_ranks2/rank_3.gif"


If this doesn't help, please let us know ;)

<--- Donate to SMF For Free! :D

Offline godsword

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

  • Total Badges: 4
    Badges: (View All)
    Topic Starter Level 1 First Post One year Anniversary
Re: [Guide] How to Use Your Own Rank Images
« Reply #151 on: August 29, 2010, 06:35:44 pm »
where do u find the codes for yellow,red,green partyhats and santa hat :(

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Guide] How to Use Your Own Rank Images
« Reply #152 on: August 29, 2010, 08:16:19 pm »
uhh. google images.
<--- Donate to SMF For Free! :D

Offline Dustin

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

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #153 on: September 28, 2010, 04:45:15 pm »
Code don't work:


(yeah, it's on my footer)
But the original ban image shows up...


Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "christmas_stockings_ranks/rank_banned.gif " , "http://forum.sa-mp.com/images/ranks/pinkdead.gif" ]

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

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 #154 on: September 28, 2010, 04:48:16 pm »
Quote
img_b[img_b.length++] = [ "christmas_stockings_ranks/rank_banned.gif " , "http://forum.sa-mp.com/images/ranks/pinkdead.gif" ]

Please go back to the instructions and read where to get the url for the "old" image - Step 2
The url you put isnt complete/correct.   The code has to have the correct image url for that image.



Offline Dustin

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

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts

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 #156 on: September 28, 2010, 04:52:22 pm »
Yes, that should be correct.

Offline Dustin

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

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #157 on: September 28, 2010, 04:53:28 pm »
W00t, it works, thank you simply!

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 #158 on: September 28, 2010, 04:54:33 pm »
You are welcome  :0)

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: [Guide] How to Use Your Own Rank Images
« Reply #159 on: April 19, 2011, 01:19:47 am »
Forum, click here!
Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "http://http://images.smfboards.com/ranks/1staraqua.gif" , "http://http://i55.tinypic.com/35ktqnt.gif" ]

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


The problem is, it still has the old image...

EDIT: Figured it out, put 2 http:// in front of old/new images. Sorry for this post.
« Last Edit: April 19, 2011, 01:24:10 am by ut shady »

Offline Role Play Nut

  • SMF For Free Newbie
  • *
  • Posts: 14
  • R0le Pl@Y n^T
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 10 Posts First Post One year Anniversary
Re: [Guide] How to Use Your Own Rank Images
« Reply #160 on: June 04, 2011, 10:26:21 pm »
The link to the Swap images generator doesn't work.


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 #162 on: June 05, 2011, 08:41:09 am »
Appears the generator made by webworldx is offline again.  Until/if its put back up again this is the code the generator created.  Since this has happened before Im going to add the following to the setup directions.


You can do this manually:


(The code goes in the Footer)

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

img_b[img_b.length++] = ["OLD IMAGE URL" , "NEW IMAGE URL"]

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>


Replace OLD IMAGE URL with the url of the image you want to replace
Replace NEW IMAGE URL with the url of the new image you want to use

Add more of these lines if you have several images to swap:

img_b[img_b.length++] = ["OLD IMAGE URL" , "NEW IMAGE URL"]
« Last Edit: June 05, 2011, 08:44:58 am by simply sibyl »

Offline simplyaura

  • SMF For Free Member
  • *
  • Posts: 46
    • View Profile
    • Owned with my Master- The Village - A BDSM Community

  • Total Badges: 16
    Badges: (View All)
    Level 4 Third year Anniversary Search Level 3 Webmaster
Re: [Guide] How to Use Your Own Rank Images
« Reply #163 on: January 26, 2013, 11:05:51 pm »
i think i put this in the wrong section sorry
aura
« Last Edit: January 28, 2013, 12:15:32 am by simplyaura »

Offline ibneaiyan

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

  • Total Badges: 3
    Badges: (View All)
    Level 1 First Post Windows User
Re: [Guide] How to Use Your Own Rank Images
« Reply #164 on: August 31, 2013, 10:04:27 am »
These Dreamweaver 8 tutorials will help you quickly get up to speed on using this powerful web development tool to create and manage your website.

you can make your trip safe by motorhome hire
please have look at our motorhomes for hire
get your own luxury motorhome hire