MyBB Community Forums
Custom Forum Icons ~ A Unique icon for Each 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: Custom Forum Icons ~ A Unique icon for Each Forum (/thread-92128.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: Custom Forum Icons ~ A Unique icon for Each Forum - LeeUk - 2011-05-08

Great TUT I am slightly screwed Sad I have a custom theme, so I am missing some of the code which is needed to change, e.g "<td class="tcat" colspan="2"><span class="smalltext"><strong {$lang->forumbit_forum}</strong></span></td>" mine is different to this.


RE: Custom Forum Icons ~ A Unique icon for Each Forum - Yaldaram - 2011-05-08

Can you please paste your template codes here ? So I could find what needs to be edited ?


RE: Custom Forum Icons ~ A Unique icon for Each Forum - LeeUk - 2011-05-08

(2011-05-08, 05:35 PM)Yaldaram Wrote: Can you please paste your template codes here ? So I could find what needs to be edited ?

Yeah sure bud, that would be great. Perhaps you can let me know where I am going wrong.
(2011-05-08, 05:35 PM)Yaldaram Wrote: Can you please paste your template codes here ? So I could find what needs to be edited ?

Hi I have managed to locate the code, it was correct but after saving them the Ficions are not there, below are the different codes so you can see that I have followed them correctly.

Step 1
Quote:<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="6">
<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>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="3"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />


Step 2
Quote:<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="uploads/ficons/{$forum['ficon']}" alt="{$forum['name']}" /></td><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>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td><td&nbsp;class="{$bgcolor}"&nbsp;align="center"&nbsp;valign="top"&nbsp;width="1"><img&nbsp;src="images/ficons/{$forum['fid']}.png"&nbsp;alt=""&nbsp;title=""&nbsp;class=""&nbsp;id=""&nbsp;/></td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>



Step 3 and 4
Quote:<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="6" align="center"><strong>{$lang->sub_forums_in}</strong></td>
</tr>
<tr>
<td class="tcat" width="2%">&nbsp;</td><td class="tcat" width="2%">&nbsp;</td> <td class="tcat" width="2%">&nbsp;</td><td&nbsp;class="tcat"&nbsp;width="2%">&nbsp;</td>
<td class="tcat" width="59%"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$forums}
</table>
<br />


I have then created a folder and called it ficons, and also located the section here which is 83
[Image: section.png]

I have added the image into the folder, which I have our into images, but when I check the Forum the image is not on there.




RE: Custom Forum Icons ~ A Unique icon for Each Forum - jerielm - 2011-05-22

doesn't work on my custom template.. already done all changes

it turns to black when i put "3"

<td class="tcat" colspan="3"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>



update: got it working


RE: Custom Forum Icons ~ A Unique icon for Each Forum - Yaldaram - 2011-05-22

This guide is best for default templates. Anyway I've edited many user's forums to use this tutorial. So if you wish then PM me ACP details and I'll edit it for you Wink


RE: Custom Forum Icons ~ A Unique icon for Each Forum - nadlerz - 2011-06-15

How to exclude Sub Forums?
Thanks!


RE: Custom Forum Icons ~ A Unique icon for Each Forum - lifesteal0r - 2011-06-15

Did you take that from labrocca's plugin?


RE: Custom Forum Icons ~ A Unique icon for Each Forum - nadlerz - 2011-06-16

I don't use any plugin for my custom icon, i just manually embed them
using this tutorial.
Is there any way to exclude sub forum?


RE: Custom Forum Icons ~ A Unique icon for Each Forum - hari555 - 2011-06-30

In ACP > Templates > Your theme's templates > Forumbit templates > forumbit_depth1_cat >

I can find
<td class="thead" colspan="5">
instead this my theme has
<td class="thead" colspan="3">

And in ACP > Templates > Your theme's templates > Forumbit templates > forumbit_depth2_forum
I cant find this
<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>


Plz help


RE: Custom Forum Icons ~ A Unique icon for Each Forum - Yaldaram - 2011-06-30

(2011-06-16, 01:29 AM)nadlerz Wrote: Is there any way to exclude sub forum?
Nope.

(2011-06-30, 11:31 AM)hari555 Wrote: In ACP > Templates > Your theme's templates > Forumbit templates > forumbit_depth1_cat >

I can find
<td class="thead" colspan="5">
instead this my theme has
<td class="thead" colspan="3">

And in ACP > Templates > Your theme's templates > Forumbit templates > forumbit_depth2_forum
I cant find this
<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>


Plz help

Can you please paste your forumbit_depth2_forum code here ?