MyBB Community Forums

Full Version: add custom forum icons ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

i want to add custom forum icons in 1.8 but the templates changed is there anyway to add it 
but without the on off and offlock icons

you can replace the one used now, (default mybb icons) just make shore to make em the same size.
All found in /images
nope i want each forum own icon
goto ACP >> Templates >> Forumbit templates >> forumbit_depth2_forum

and find....

<td class="{$bgcolor}" align="center" valign="top" width="1"><div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></div></td>

replace it with....

<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="images/ficons/{$forum['fid']}.png" /></td>

Now goto,  Cpanel >> File Manager >> Your Forum Path >> images >> create a folder named "ficons" and upload the icon images inside it named after the forum id

so for a forum whose id is 4, you need to upload a file named 4.png inside /images/ficons folder...
thanks !

Do I need a "Template Conditionals" plugin installed? Is there any way to create on/off icons as well? I'm planning to use gif images for on/off icons. Thanks.

Is this code correct?

<img src="{$theme['imgdir']}/ficon/icon_{$forum['fid']}_{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
I apologize for bumping.

write my essay today on PHP coding and technology
^ Template Conditionals plugin is not required for using above given code.
And the code should work.