Posts Tagged ‘custom icons

02
fev
09

Custom Forum Icons in mybb 1.4 with CSS and less http-requests

custom-forum-icons-mybb-144

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:

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″]

Anúncios



outubro 2018
S T Q Q S S D
« maio    
1234567
891011121314
15161718192021
22232425262728
293031  

Twitter

Erro: o Twitter não respondeu. Por favor, aguarde alguns minutos e atualize esta página.

Blog Stats

  • 40.833 hits
Anúncios