Custom Forum Icons with CSS, to Mybb 1.4x and 1.2x
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 image tags to each Forum there will be lower http requests.
(I) New Style Sheet
Create this CSS in ACP > Themes > Edit Theme > Add Stylesheet:
*See CSS Example stylesheet in Tutorial files in the end of this post
[II] Template changes
Go to ACP > Templates > Style > Templates > Expand your Theme Templates
Expand “Forum Bit Templates”:
forumbit_depth2_forum
Find:
<img class="ajax_mark_read" src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" />
Replace with:
<!–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
Remember to change *yourtheme* folder name in CSS background property.
[download id=”4″]
Ultimos comentarios