vB Category Icons

Rated_R

New Member
vB Category Icons


his will allow you to setup a icon to display by the title of each forum you have. The look of the icon depends on how you want to set it up in the templates. This will work for all levels of sub-forums.

Note:
This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 (Working in vB 3.7.X As well )

To do list...

* Time to install: 3 minutes
* Queries to run: 1
* File Mods: 0
* Templates to edit: 2
* Templates to add: 0
* New Phrases: 1
* New Plugins: 2


Template Edit


Replace Template: forumhome_forumbit_level1_post With The Folllowing:

Code:
<tbody>
        <tr align="center">
                <td class="alt1Active" colspan="2" align="$stylevar[align=left]" id="f$forum[forumid]">

                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
                        <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td>

                                <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                        <td>$forum[forumhomeicon]</td>
                                        <td>
                                                <div>
                                                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                                                </div>

                                                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                                                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                                                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                                        </td>
                                </tr>
                                </table>
                        </td>
                </tr>
                </table>

                </td>
                <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
                <td class="alt1">$forum[threadcount]</td>
                <td class="alt2">$forum[replycount]</td>
                <if condition="$vboptions['showmoderatorcolumn']">
                <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
                </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody>
        $childforumbits
</tbody>
</if>
Replace Template: forumhome_forumbit_level2_post With The Folllowing:
Code:
<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
        <td class="alt1Active" align="$stylevar[align=left]" id="f$forum[forumid]">
                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td>$forum[forumhomeicon]</td>
                        <td>
                                <div>
                                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                                </div>

                                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                        </td>
                </tr>
                </table>
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits
 

Blagger

New Member
Gravedigger said:
Where i can find those .php files, a?

AdminCP>Styles & Templates>Style Manager

{YOUR STYLE} double click >Forum Home Templates>forumhome_forumbit_level1_post and forumhome_forumbit_level2_post
 

Shadows

New Member
Sorry I should have asked my question a bit more clearly..

// - Open Template 'forumhome_forumbit_level1_post' -

Insert $forum[forumhomeicon] where you would like your icon to appear

// - Open Template 'forumhome_forumbit_level2_post' -

Insert $forum[forumhomeicon] where you would like your icon to appear

So where in the template do i put $forum[forumhomeicon], so it would appear like ..
49876599on2.jpg
 

Rated_R

New Member
Shadows said:
Sorry I should have asked my question a bit more clearly..



So where in the template do i put $forum[forumhomeicon], so it would appear like ..
49876599on2.jpg

Goto Your forum manager

edit any forum u want scrool down the page at bottom u will seee
 

Filez

New Member
try this not 100% sure but I think this is the area:

HTML:
<tbody>
	<tr align="center">
		<td class="alt1Active" colspan="2" align="$stylevar[align=left]" id="f$forum[forumid]">  [b][color=Red]maybe here[/color][/b]

		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td> [b][color=red]maybe here[/color][/b]
			<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
			<td>
			<div>
 

Shadows

New Member
filez said:
try this not 100% sure but I think this is the area:

HTML:
<tbody>
	<tr align="center">
		<td class="alt1Active" colspan="2" align="$stylevar[align=left]" id="f$forum[forumid]">  [b][color=Red]maybe here[/color][/b]

		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td> [b][color=red]maybe here[/color][/b]
			<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
			<td>
			<div>
Thank you my friend, im gona try it :D
 
Top