Custom Forum Icons ~ A Unique icon for Each Forum
#11
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
#12
Can you please paste your template codes here ? So I could find what needs to be edited ?
Reply
#13
(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.






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

[Image: logo2.png]
Reply
#17
Did you take that from labrocca's plugin?
Reply
#18
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
#19
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
#20
(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 ?
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)