Thread Rating:
  • 15 Vote(s) - 4.27 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Forum Icons ~ A Unique icon for Each Forum
#11
(05-04-2011, 04:43 AM)kadhafi Wrote: Awesome yaldaram, finally found thist tut..By the way what if i will remove the original icon? I mean the on,off,offlock? And replace with the custom icon just like yaldaram.com

From forumbit_depth2_forum and forumbit_depth2_cat find and remove:

<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>
Reply
#12
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.





Reply
#13
Can you please paste your template codes here ? So I could find what needs to be edited ?
Reply
#14
(05-08-2011, 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.
(05-08-2011, 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.






Reply
#15
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
Reply
#16
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
Reply
#17
This user has been denied support. This user has been denied support.
How to exclude Sub Forums?
Thanks!
Heart

[Image: logo2.png]
Reply
#18
Did you take that from labrocca's plugin?
Reply
#19
This user has been denied support. This user has been denied support.
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?
Heart

[Image: logo2.png]
Reply
#20
This user has been denied support. This user has been denied support.
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)