MyBB Community Forums
[Tutorial] How to remove on/off icons from your forum - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [Tutorial] How to remove on/off icons from your forum (/thread-126866.html)



[Tutorial] How to remove on/off icons from your forum - koz - 09-29-2012

I'm going to show you how to completely remove on/off iconss from your forum.

We're going to being using the default mybb for the example, but if you're using an already made theme the steps should be the same unless they already modified the forumbit in same way.

How to remove on/off iconss

Step 1) Go into Admin CP > Templates & Style > Templates > Your Template Set > Forum Bit Templates > forumbit_depth1_cat.

You want to find the following code;
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>

Change it to the following;
<td class="tcat" colspan="1"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>

Step 2) Go into Admin CP > Templates & Style > Templates > Your Template Set > Forum Bit Templates > forumbit_depth2_cat.

You want to find and remove the following code;
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>

Step 3) Go into Admin CP > Templates & Style > Templates > Your Template Set > Forum Bit Templates > forumbit_depth2_forum.

Find and remove the following code;
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>

Step 4) Go into Admin CP > Templates & Style > Templates > Your Template Set > Forum Display Templates > forumdisplay_subforums.

Find and remove the following code;
<td class="tcat" width="2%">&nbsp;</td>

Step 5) Go into Admin CP > Templates & Style > Templates > Your Template Set > Index Page Templates > index.

Find and remove your forum legend code that shows the on/off iconss information;
<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>

That's all you have to do!

Credits: Tindris


RE: [Tutorial] How to remove ficons from your forum - Solstice - 09-29-2012

the icos are called "on/off icons", the ficons are the extra icons


RE: [Tutorial] How to remove ficons from your forum - koz - 09-29-2012

Woops lol, I'll fix that.

[edit]

All fixed.


RE: [Tutorial] How to remove on/off icons from your forum - 7uyk - 09-30-2012

And is this the same for adding them back?
(Doing it backwards)


RE: [Tutorial] How to remove on/off icons from your forum - koz - 09-30-2012

If you want to add them back then just revert the templates back to default. You could always do a backward process but that's only if you made other customizations to the forumbit itself.