MyBB Community Forums

Full Version: Image in category navigation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've found that you can insert images instead of having a category title, this is pretty cool IMO but I've noticed within the category navigation it shows the code used.

mybb community forums/ mybb resources/{html link code}

Would anyone be able to help me mod this so I'd be able to make it up? (show the image instead of the code)

Kind regards,
~Kerrang!
You mean like the theme I designed for FireForums: http://colourtechni.com/portfolio/fireforums/ ?
Yeah buddy.

~Kerrang
I followed the second post by Tomm M at: http://community.mybboard.net/thread-40986.html
Zom, Does the image show within the category navigation?

From the code I could see why it would show, the image loads fine with the index and forum but not inside the category navigation.

Appreciate your help,
(2009-11-19, 04:53 PM)Kerrang! Wrote: [ -> ]Zom, Does the image show within the category navigation?

From the code I could see why it would show, the image loads fine with the index and forum but not inside the category navigation.

Appreciate your help,
You will have to apply the same method the forumbit_depth1_cat I believe.

Edit:

So Change:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
to
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}"><img src="{$theme['imgdir']}/forum_icons/{$forum['fid']}.gif" alt="" /> {$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
In the change I have just added "<img src="{$theme['imgdir']}/forum_icons/{$forum['fid']}.gif" alt="" />" in front of "{$forum['name']}".

Hopefully that helps Wink.