2008-08-08, 03:42 PM
This is a nice feature if you want to use custom icons and don't want to kill your CPU usage (if is a Shared Host) - Without <img> tags to each Forum there will be lower http requests.
Updated in Feb/09
(I) New Style Sheet
Create this CSS in ACP => Themes => Edit Theme => Add Stylesheet:
custom_forum_icons.css
This new style must be conected only to forumdisplay.php and index.php
[II] Template Edit
Go to ACP => Templates & Style => Templates => Expand your Template
Expand "Forum Bit Templates":
forumbit_depth2_forum
Find:
Replace with:
[III] Background Image
Put "custom_forum_icons.png" in "\images\yourtheme\" folder
..
Thanks Labrocca for Custom Forum Icons for 1.2x and texasli for the code in mybb 1.4
other ways to do it:
http://community.mybboard.net/thread-34606.html
http://www.mybbcentral.com/thread-1663.html
..
Updated in Feb/09
(I) New Style Sheet
Create this CSS in ACP => Themes => Edit Theme => Add Stylesheet:
custom_forum_icons.css
Quote:CSS Example is attached to download with the complete tutorial
This new style must be conected only to forumdisplay.php and index.php
[II] Template Edit
Go to ACP => Templates & Style => Templates => Expand your Template
Expand "Forum Bit Templates":
forumbit_depth2_forum
Find:
Quote:
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
Replace with:
Quote:
<!--Start - CSS Custom Forum Icons-->
<h2 id="{$lightbulb['folder']}_{$forum['fid']}"><a href="forumdisplay.php?fid={$forum['fid']}" rel="nofollow"><span>status</span></a></h2>
<!--End CSS Custom Forum Icons -->
[III] Background Image
Put "custom_forum_icons.png" in "\images\yourtheme\" folder
..
Thanks Labrocca for Custom Forum Icons for 1.2x and texasli for the code in mybb 1.4
other ways to do it:
http://community.mybboard.net/thread-34606.html
http://www.mybbcentral.com/thread-1663.html
..