Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom favicon per forum Details »»
Custom favicon per forum
Version: 1.00, by ForumDog ForumDog is offline
Developer Last Online: Feb 2007 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 10-10-2006 Last Update: 10-10-2006 Installs: 11
Template Edits
 
No support by the author.

Quite simply it adds a custom favicon for each individual forum section in your forum. When you visit that section or a thread within that section, the appropriate icon will display in your browser address bar and browser tab and when you bookmark a section the bookmark will use that section's icon.

Rather frivolous but it's particularly handy for tabbing.

Demo: http://doghouse.forumdog.com/forumdisplay.php?f=25
Pick a forum, any forum.


Installation couldn't be simpler.

Open templates FORUMDISPLAY, SHOWTHREAD, NEWTHREAD, NEWREPLY:
FIND

Code:
</head>
ADD ABOVE:
Code:
<link rel="icon" href="images/$foruminfo[forumid]_favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="images/$foruminfo[forumid]_favicon.ico" type="image/x-icon" />
Then you just need to save a 16x16, 256-colour image as a .ico file using the forumid of the section you want the icon to apply to. You can find the forumid by looking at the URL for the section. For instance, for this section on vbulletin.org the URL is https://vborg.vbsupport.ru/forumdisplay.php?f=192 and so the forumid is 192. The favicon for this section would be 192_favicon.ico. Just copy the image to the image directory of your forum.


A note on compatibility
I'm told as of right now no version of IE still will not display any image type other than .ico files for favicons. Non-IE browsers can make use of at least .gif and .png files if not other types as well, the advantage to this being a) They may well look better and b) On my site at least a .gif favicon is 1/10th the filesize of a .ico favicon. If you want to do that instead then just change the .ico extension to your own image extension in the code above. Or if you're very determined and want to do both(!) then you can use this code instead.

Code:
<if condition="is_browser('ie')">
<link rel="icon" href="images/$foruminfo[forumid]_favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="images/$foruminfo[forumid]_favicon.ico" type="image/x-icon" /> 
<else />
<link rel="icon" href="images/$foruminfo[forumid]_favicon.gif" type="image/x-icon" />
<link rel="shortcut icon" href="images/$foruminfo[forumid]_favicon.gif" type="image/x-icon" />
</if>
IE is especially poor at making use of favicons, don't be surprised if it doesn't find one at all despite the above. Other browsers are considerably more reliable but still occasionally erratic.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-11-2006, 12:56 PM
s0b s0b is offline
 
Join Date: Oct 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! installing...
Reply With Quote
  #3  
Old 10-11-2006, 10:14 PM
Minha Minha is offline
 
Join Date: Mar 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ummmmm don?t works on FF, IE and 3.6.1

Thanks at all.
Reply With Quote
  #4  
Old 10-12-2006, 08:35 AM
ForumDog ForumDog is offline
 
Join Date: Jul 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Minha
ummmmm don?t works on FF, IE and 3.6.1
Can you give me a few more details? What's the problem, got a link? There's not really anything that can go wrong with this template edit.
Reply With Quote
  #5  
Old 10-12-2006, 12:18 PM
cunder's Avatar
cunder cunder is offline
 
Join Date: May 2005
Location: NL
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where I must place exactly the favicon.ico to which image directory:ermm:
Reply With Quote
  #6  
Old 10-12-2006, 12:58 PM
Minha Minha is offline
 
Join Date: Mar 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForumDog
Can you give me a few more details? What's the problem, got a link? There's not really anything that can go wrong with this template edit.
Only that i did it all of instructions and nothing happens. No images were shown.

I installed other hacks and works. Thanks at all for share
Reply With Quote
  #7  
Old 10-12-2006, 04:13 PM
ForumDog ForumDog is offline
 
Join Date: Jul 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cunder
where I must place exactly the favicon.ico to which image directory:ermm:
To wherever the favicon link points. If you copied the code exactly from the instructions they must go in the images directory of your forum.

Quote:
Originally Posted by Minha
Only that i did it all of instructions and nothing happens. No images were shown.

I installed other hacks and works. Thanks at all for share
Yes, if you give me a link to your forum I might be able to help you.
Reply With Quote
  #8  
Old 10-12-2006, 07:47 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Minha
ummmmm don?t works on FF, IE and 3.6.1

Thanks at all.
Works fine in FF and IE7.
Reply With Quote
  #9  
Old 10-14-2006, 10:30 AM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it will work in mostly all browsers, but some browsers take longer to update the fav than others
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06645 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete