SMF For Free Support Forum
Signup For Free Forum
October 30, 2014, 07:10:03 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register Chat  

Pages: 1 ... 8 9 10 [11] 12
  Print  
Author Topic: [Guide] How to Use Your Own Rank Images  (Read 70247 times)
0 Members and 1 Guest are viewing this topic.
Seldom Fail
Helpers
*
Offline Offline

Posts: 2082


Helping for 3 years! :)


View Profile WWW
Total Badges: 26
Badges: (View All)
Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
« Reply #150 on: August 05, 2010, 10: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 Wink

Logged

<--- Donate to SMF For Free! Cheesy
godsword
SMF For Free Newbie
*
Offline Offline

Posts: 3


View Profile
Total Badges: 4
Badges: (View All)
Topic Starter Level 1 First Post One year Anniversary
« Reply #151 on: August 29, 2010, 07:35:44 pm »

where do u find the codes for yellow,red,green partyhats and santa hat Sad
Logged
Seldom Fail
Helpers
*
Offline Offline

Posts: 2082


Helping for 3 years! :)


View Profile WWW
Total Badges: 26
Badges: (View All)
Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
« Reply #152 on: August 29, 2010, 09:16:19 pm »

uhh. google images.
Logged

<--- Donate to SMF For Free! Cheesy
Dustin
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
Total Badges: 9
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« Reply #153 on: September 28, 2010, 05:45:15 pm »

Code don't work:


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


Code:
<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>
Logged
simply sibyl
Helpers
*
Offline Offline

Posts: 14347


On hiatus


View Profile WWW
Total Badges: 31
Badges: (View All)
Level 6 Poll Voter Webmaster Arcade Highscore Windows User
« Reply #154 on: September 28, 2010, 05: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.


Logged
Dustin
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
Total Badges: 9
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« Reply #155 on: September 28, 2010, 05:51:07 pm »

So it should be:


http://images.smfboards.com/ranks/christmas_stockings_ranks/rank_banned.gif


?
Logged
simply sibyl
Helpers
*
Offline Offline

Posts: 14347


On hiatus


View Profile WWW
Total Badges: 31
Badges: (View All)
Level 6 Poll Voter Webmaster Arcade Highscore Windows User
« Reply #156 on: September 28, 2010, 05:52:22 pm »

Yes, that should be correct.
Logged
Dustin
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
Total Badges: 9
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« Reply #157 on: September 28, 2010, 05:53:28 pm »

W00t, it works, thank you simply!
Logged
simply sibyl
Helpers
*
Offline Offline

Posts: 14347


On hiatus


View Profile WWW
Total Badges: 31
Badges: (View All)
Level 6 Poll Voter Webmaster Arcade Highscore Windows User
« Reply #158 on: September 28, 2010, 05:54:33 pm »

You are welcome  :0)
Logged
ut shady
SMF For Free Full Member
*
Offline Offline

Posts: 172


View Profile
Total Badges: 10
Badges: (View All)
Topic Starter Combination Level 2 Level 1 100 Posts
« Reply #159 on: April 19, 2011, 02:19:47 am »

Forum, click here!
Code:
<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, 02:24:10 am by ut shady » Logged

Role Play Nut
SMF For Free Newbie
*
Offline Offline

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
« Reply #160 on: June 04, 2011, 11:26:21 pm »

The link to the Swap images generator doesn't work.
Logged
ut shady
SMF For Free Full Member
*
Offline Offline

Posts: 172


View Profile
Total Badges: 10
Badges: (View All)
Topic Starter Combination Level 2 Level 1 100 Posts
« Reply #161 on: June 05, 2011, 09:00:24 am »

http://www.smfsupport.com/support/smf-for-free-codes-and-support/(code)-swap-images-on-page-2017/
Logged

simply sibyl
Helpers
*
Offline Offline

Posts: 14347


On hiatus


View Profile WWW
Total Badges: 31
Badges: (View All)
Level 6 Poll Voter Webmaster Arcade Highscore Windows User
« Reply #162 on: June 05, 2011, 09: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:
<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, 09:44:58 am by simply sibyl » Logged
simplyaura
SMF For Free Member
*
Offline Offline

Posts: 46



View Profile WWW
Total Badges: 16
Badges: (View All)
Level 4 Third year Anniversary Search Level 3 Webmaster
« 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 » Logged

ibneaiyan
SMF For Free Newbie
*
Offline Offline

Posts: 1


View Profile
Total Badges: 3
Badges: (View All)
Level 1 First Post Windows User
« Reply #164 on: August 31, 2013, 11: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
Logged


Pages: 1 ... 8 9 10 [11] 12
  Print  
 
Jump to:  



Powered by SMF 1.1.20 | SMF © 2013, Simple Machines