Icon For Every Forum

outlaw

New Member
What is the way to put an icon beside every forum title like that

71911702js8.jpg
 
Well i think it is a coding thing but if anyone has a how to it will be shorten my way to fix this 2.
 
catagory icons mod does this it replaces the status icons
ie: new post, old post, locked post,

if you want exactly how it looks in pic then you just add an img tag
PHP:
<img src="/your_image.gif" />
before the you write out the description
 
Catagory Icons
Tested on 3.6.x - 3.7.x
By Adrian at Development chat.com

Current Version: 1.0.1
1.0.1 Status: Working Fine.

Hey,

I noticed a few people around the 'net wanted a modification like this, It wasn't too hard so i thought i would give it ago.

You can specify a image path/url to use for your catagory icon, if none is specified, the forum will use vBulletins default image.
See bottom of post for screenshots

Installation
Import product-catagoryicons.xml (It should make the needed Mysql tables too)
Go to Options > Catagory Icons to enable the mod'.

Template Edits
Open Forum Home Templates > forumhome_forumbit_level1_post
Find:
HTML Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />

or

HTML Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"

id="forum_statusicon_$forum[forumid]" />

Replace with:
HTML Code:

<if condition="$vboptions[customimg_enabled] == 1">
<if condition="$forum[customimg] == ''">
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"

id="forum_statusicon_$forum[forumid]" />

<else />
<img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
</if>

<else />
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"

id="forum_statusicon_$forum[forumid]" />
</if>

Save.
Open up Forum Home Templates > forumhome_forumbit_level2_post
Find:
HTML Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />

or

HTML Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"

id="forum_statusicon_$forum[forumid]" />

Replace with:
HTML Code:

<if condition="$vboptions[customimg_enabled] == 1">
<if condition="$forum[customimg] == ''">
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"

id="forum_statusicon_$forum[forumid]" />

<else />
<img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
</if>

<else />
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"

id="forum_statusicon_$forum[forumid]" />
</if>

Done.

That should be it.

To set catagory icons, just edit a forum, the image field is at the bottom.
If you have any problems, just ask.
 
Back
Top