Back to vBulletin 3.6 Add-ons

Catagory Icons
Mod Version: 1.0.1, by Adrian.

This modification is in the archives.
vB Version: 3.6.1 Rating: (33 votes - 4.70 average) Installs: 673
Released: 24 Sep 2006 Last Update: 24 Sep 2006 Downloads: 2232
Not Supported DB Changes Uses Plugins Template Edits  

Catagory Icons
Tested on 3.6.1
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.

If you use it, please click .

Thanks.

Adrian

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-catagoryicons.xml (2.3 KB, 2883 downloads)

Screenshots

Click image for larger version
Name:	forum.jpg
Views:	10996
Size:	150.0 KB
ID:	53860   Click image for larger version
Name:	forumoption.jpg
Views:	4934
Size:	171.2 KB
ID:	53861   Click image for larger version
Name:	options.jpg
Views:	3464
Size:	84.7 KB
ID:	53862   Click image for larger version
Name:	subforum.jpg
Views:	7406
Size:	58.8 KB
ID:	53863  

Similar Mods

Forum Home Enhancements Automated Simple Catagory Icons vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024