Log in

View Full Version : Single specific category icon


theFAILURE
07-22-2007, 02:02 AM
I have seen a few mods / hacks that add category icons to all the forums, but that is not quite what I am looking for.

Here is what my forum looks like now:

https://vborg.vbsupport.ru/external/2007/07/12.jpg

I modified this with Adobe Photoshop, this is what I want to add:

https://vborg.vbsupport.ru/external/2007/07/13.jpg

Any ideas?

Kirk Y
07-22-2007, 02:30 AM
Give this a try.

Find in your "forumhome_forumbit_level1_nopost" template:
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">

Add above:
<td class="tcat"><img src="/path/to/your/image.gif" /></td>

theFAILURE
07-22-2007, 02:37 AM
Hmm, I have about 6 different categories I want different icons for though.

Sorry Kirk, I should have mentioned that.

Kirk Y
07-22-2007, 02:40 AM
Okay, use this code instead:
<td class="tcat"><img src="/path/to/your/image_$forum[forumid].gif" /></td>Then, when you're naming the images you'd like to display, add a suffix to each one with the Forum ID that you'd like it displayed for.

Ex: image.gif for Forum ID 2 becomes - image_2.gif

Edit: If you don't want to display an image for all your forums, you can wrap the above code with the following, which will only display it for specific forums:
<if condition="in_array($forum[forumid], array(X,Y,Z))">
Code Supplied Above
</if>Replace X,Y,Z with the Forum IDs of the forums you're displaying images next to.

theFAILURE
07-22-2007, 02:44 AM
Thanks, I really appreciate your time, and quick response.

I'll let you know how I make out :D