Advertise Here

Author Topic: [Forum Icons]  (Read 10157 times)

0 Members and 1 Guest are viewing this topic.

Offline Nutz

  • Style Designer
  • *
  • Posts: 442
  • Location: Maui
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Apple User Mobile User Poll Starter Poll Voter Level 4
[Forum Icons]
« on: March 10, 2010, 02:07:58 am »
Figured this would not get lost in translation in the stylesheet section.

Icons in forums and posts will change to these using code below. Feel free to use my url's. These are png images and will show crisply on any color background.



Put this in header if you don't already have it.

Code: [Select]
<script src="/jquery.js"></script>
Put this in your footer
Image swap code courtesy of iFusion

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/Themes2/default/images/im_on.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/Google-Talk-icon-2.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/im_off.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/Google-Talk-icon-2.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/normal_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/folder.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/hot_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/folder_accept.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/icons/quick_lock.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/lock.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/veryhot_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/folder_add.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/my_normal_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/favorite.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/normal_poll.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/chart.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/buttons/modify.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/page_edit2.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/buttons/delete.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/page_remove.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/buttons/quote.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/page_process.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/buttons/split.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/page-swap-icon.png"]

img_b[img_b.length++] = ["http://www.smfboards.com/Themes2/default/images/www_sm.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/myspace-icon2.png"]

img_b[img_b.length++] = ["http://www.smfboards.com/Themes2/default/images/msntalk.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/MSN-exporer-icon.png"]

img_b[img_b.length++] = ["http://www.smfboards.com/Themes2/default/images/aim.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/aol-icon.png"]

img_b[img_b.length++] = ["http://opi.yahoo.com/online?u=aa&m=g&t=0" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/yahoo-icon.png"]

img_b[img_b.length++] = ["http://www.smfboards.com/Themes2/default/images/icons/modify_inline.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/notes_edit-1.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/post/xx.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/page.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/icons/last_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/page_next.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/my_veryhot_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/favorite.png"]

img_b[img_b.length++] = ["http://images.smfboards.com/Themes2/default/images/topic/my_hot_post.gif" , "http://i30.photobucket.com/albums/c328/nutz4benz/forum/favorite.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: March 10, 2010, 02:41:58 am by Nutz »

Offline Nutz

  • Style Designer
  • *
  • Posts: 442
  • Location: Maui
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Apple User Mobile User Poll Starter Poll Voter Level 4
Re: [Forum Icons]
« Reply #1 on: March 10, 2010, 11:58:37 am »


Folders



Posts (new and no new)






Offline Nutz

  • Style Designer
  • *
  • Posts: 442
  • Location: Maui
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Apple User Mobile User Poll Starter Poll Voter Level 4
Re: [Forum Icons]
« Reply #2 on: March 10, 2010, 12:05:08 pm »
Input box ( will need to use image swap code ) to appear.


Offline Nutz

  • Style Designer
  • *
  • Posts: 442
  • Location: Maui
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Apple User Mobile User Poll Starter Poll Voter Level 4
Re: [Forum Icons]
« Reply #3 on: March 10, 2010, 12:10:17 pm »
Profile ( below avatars and post count)


Offline forums4reptiles

  • SMF For Free Sr. Member
  • *
  • Posts: 352
    • View Profile
    • http://forums4reptiles.smfforfree.com

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: [Forum Icons]
« Reply #4 on: April 21, 2010, 01:09:59 pm »
very good code
« Last Edit: April 21, 2010, 01:15:01 pm by petworld »
are you looking for a free forum to join where you will get all the help you need on your reptiles.  join www.forums4reptiles.smfforfree.com it is free to join and there is so much for you to doon there with friendly and helpful members to chat to.

you can put your forum on there (ask me before)

Offline jam tangan online

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

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Signature Avatar
Re: [Forum Icons]
« Reply #5 on: February 19, 2012, 11:12:31 pm »
nice code mate

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1794 Views
Last post June 14, 2006, 01:49:04 pm
by Crasy
2 Replies
1508 Views
Last post April 25, 2008, 04:50:59 pm
by Mavrien
2 Replies
1859 Views
Last post July 23, 2008, 03:02:24 pm
by Brenzscape
8 Replies
1903 Views
Last post July 31, 2008, 03:08:50 pm
by Suki The Saluki
1 Replies
1090 Views
Last post November 10, 2008, 11:36:34 pm
by simply sibyl