Custom favicon per forum
This modification is in the archives.
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> 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" /> 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> Download
This modification is archived, downloads are still allowed. |