MyBB Community Forums

Full Version: Changing Icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I went to Admin CP > Edit Template > forumbit_depth2_forum

and changed the icon too <img src="http://i46.tinypic.com/jpy2hw.png" alt="" /

But that makes it the same for On/off/locked.

How do I make them all different (add the other two)

Also, how do I change them in the legend at the bottom of the page.
don't upload at tinypic. upload in your image folder.
There supposed to be a variable {$lightbulb['folder']}.gif which gets changed as on.gif, off.gif or offlock.gif as per the status of the forums depending on the users.

If you want those to be png files instead of .gif, just change {$lightbulb['folder']}.gif to {$lightbulb['folder']}.png and it will go fine. In that case your file names should be on.png, off.png and offlock.png. You can change the extension but not the file names in any case. You can also change the location path but all 3 icons have to be in a same directory.

For legend, find the following code in your 'index' template and change the file names accordingly.

<dl class="forum_legend smalltext">
<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->new_posts}</dd>

<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
<dd>{$lang->forum_locked}</dd>
</dl>
Thank you!