The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Catagory Icons Details »» | |||||||||||||||||||||||||
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" />
HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"
id="forum_statusicon_$forum[forumid]" />
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> Open up Forum Home Templates > forumhome_forumbit_level2_post Find: HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"
id="forum_statusicon_$forum[forumid]" />
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> 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 install. Thanks. Adrian Show Your Support
|
Comments |
#72
|
||||
|
||||
I think Jelsoft must include this mod by default. It's really usefull.
Thanks for it Adrian.. |
#73
|
||||
|
||||
Where exactly is this: "Go to Options > Catagory Icons to enable the mod"
I've gone through the entire admincp -> vBulletin options and can't find it. I have added my icons using <img src="http:example.com/cat-icons/test.gif"> to my forums, but no images display. NM, The import of the product must not have fully worked the first time. Reinstalled and the option shows up. Thanks... |
#74
|
|||
|
|||
im getting the following error when import the plug-in. what should i do?
Database error in vBulletin 3.5.5: Invalid SQL: ### INSERT QUERY GENERATED BY fetch_query_sql() ### INSERT INTO plugin (`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`) VALUES ('1', '5', 'Catagory Icons', 'forumadmin_edit_form', 'print_input_row($vbphrase[\'customimgtext\'], \'forum[customimg]\', $forum[\'customimg\']);', 'catagoryicons'); MySQL Error : Unknown column 'executionorder' in 'field list' Error Number : 1054 Date : Thursday, November 23rd 2006 @ 05:09:46 AM Classname : vb_database |
#75
|
|||
|
|||
ium getting this when trying to add an image
Database error in vBulletin 3.6.4: Invalid SQL: UPDATE forum SET title_clean = 'The Girl Next Door', title = 'The Girl Next Door', description_clean = 'Post your girl next door videos and images here (NO NUDITY)', description = 'Post your girl next door videos and images here (NO NUDITY)', link = '', displayorder = 1, parentid = 8, daysprune = -1, defaultsortfield = 'title', defaultsortorder = 'asc', showprivate = 0, newpostemail = '', newthreademail = '', ### Bitfield: forum.options ### options = IF(options & 8, options - 8, options), options = IF(options & 16, options - 16, options), options = IF(options & 32, options - 32, options), options = IF(options & 32768, options - 32768, options), options = IF(options & 8192, options, options + 8192), options = IF(options & 4, options, options + 4), options = IF(options & 1, options, options + 1), options = IF(options & 2, options, options + 2), options = IF(options & 16384, options, options + 16384), options = IF(options & 256, options - 256, options), options = IF(options & 64, options, options + 64), options = IF(options & 128, options, options + 128), options = IF(options & 512, options, options + 512), options = IF(options & 1024, options, options + 1024), options = IF(options & 2048, options, options + 2048), options = IF(options & 4096, options, options + 4096), options = IF(options & 65536, options, options + 65536), styleid = 0, password = '', customimg = 'http://manauthority.com/images/icons/next-door-icon.gif' WHERE forumid = 9; MySQL Error : Unknown column 'defaultsortfield' in 'field list' Error Number : 1054 Date : Saturday, November 25th 2006 @ 04:45:57 PM Script : http://www.manauthority.com/admincp/forum.php?do=update Referrer : http://www.manauthority.com/admincp/...do=edit&f=9&s= IP Address : Username : Chris Classname : vb_database |
#76
|
|||
|
|||
works like a charm. thanks
|
#77
|
|||
|
|||
This mod is realy great!
I have added it recently to our forum -> http://forum.team-mediaportal.com Would it be possible to expand this modification, to define custom category icons for "forum_old" and "forum_new"? which means, haveing the same functionality with the custom category images, as with the main vbulletin feature, to see if a forum contains new posts or not. |
#78
|
|||
|
|||
Hi Adrian,
I used to have something like this installed for version 3.5.4 which looked like the attached image I have. The image here was to the right of the status icon, thus allowing the users to know of new posts. After I upgraded to version 3.6.4, I found your hack, which works very nicely btw, but instead of being to the right of the status icons, it replaces the status icons. Is there a way to make it so it's to the right, like I had before? Many thanks, ~ Domokun - Image below was the older one I used to have for 3.5.4 - |
#79
|
|||
|
|||
hi domokun, i'm interested to do my forum like your thumb ... what's the hack that you use?
|
#80
|
|||
|
|||
What I had was an older version for vB 3.5.4. I'm also stuck on trying to figure out how to get it to look like this since I just upgraded to vB 3.6.4
~ Domokun p.s. I was kinda hoping Adrian would have our answer |
#81
|
|||
|
|||
This looks great, but the one problem I have with these types of modifications is you lose the new/old icon to show which forums have new posts and which ones don't. IMO that's important and it's the only reason I don't use this.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|