Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Catagory Icons Details »»
Catagory Icons
Version: 1.0.1, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.1 Rating:
Released: 09-23-2006 Last Update: 09-23-2006 Installs: 673
DB Changes Uses Plugins Template Edits
 
No support by the author.

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 install.

Thanks.

Adrian

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 04-18-2008, 05:48 PM
Endurer Endurer is offline
 
Join Date: Sep 2006
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone tried this on vb 3.7?
Reply With Quote
  #203  
Old 04-20-2008, 11:22 AM
Inferno Dragon's Avatar
Inferno Dragon Inferno Dragon is offline
 
Join Date: Sep 2005
Location: United Kingdom
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to install it on my local machine running vb 3.7 RC3, but I think this mod is not compatible with the 3.7 version of VB, even I unable the mod from the vbulletin options menu, but the image fields didn't appear in the Edit Forum page (I think the author need to update the hook locations?)
Reply With Quote
  #204  
Old 04-23-2008, 07:43 AM
carubmun carubmun is offline
 
Join Date: Jan 2007
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pxd View Post
In 3.7 you can set up a custom Prefix for Forum Status Images which basically a native way to choose individual forum category icons.
I cant figure out how ?
Reply With Quote
  #205  
Old 04-23-2008, 09:40 PM
soundbarrierpro soundbarrierpro is offline
 
Join Date: Nov 2007
Posts: 767
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't use this. I installed it and tried running it. Didn't want it and tried to remove. Now I get sql error trying to removed. So I just disabled it.
Reply With Quote
  #206  
Old 04-24-2008, 12:09 PM
KanmaiseR KanmaiseR is offline
 
Join Date: Jan 2008
Location: Turkey
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, installed
Reply With Quote
  #207  
Old 04-25-2008, 01:00 AM
Ronak's Avatar
Ronak Ronak is offline
 
Join Date: Sep 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work on vB 3.7 ?
Reply With Quote
  #208  
Old 04-26-2008, 05:55 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,
I installed this but any time I go to add any icons I get this error:

Quote:
Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE forum SET
title_clean = 'Rugby League',
title = 'Rugby League',
description_clean = 'All NRL discussion here, From your favourite teams to the teams you most hate. Discuss all teams, results, injuries, why your teams the best, what makes your club what it is and in general debating about rugby league.',
description = 'All NRL discussion here, From your favourite teams to the teams you most hate. Discuss all teams, results, injuries, why your teams the best, what makes your club what it is and in general debating about rugby league.',
link = '',
displayorder = 1,
parentid = 5,
daysprune = -1,
defaultsortfield = 'lastpost',
defaultsortorder = 'desc',
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, options + 256),
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),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 262144, options - 262144, options),
options = IF(options & 524288, options - 524288, options),
options = IF(options & 1048576, options - 1048576, options),
styleid = 0,
password = '',
customimg = 'http://sports-force.net.au/images/domestic.png'
WHERE forumid = 11;

MySQL Error : Unknown column 'customimg' in 'field list'
Error Number : 1054
Date : Saturday, April 26th 2008 @ 04:54:39 PM
Script : http://forums.sports-force.net.au/ad....php?do=update
Referrer : http://forums.sports-force.net.au/ad...o=edit&f=11&s=
IP Address : 211.27.1.169
Username : Merk
Classname : vB_Database
This was brought up on about page 3 or something but the author has not replied as to how to fix it
Reply With Quote
  #209  
Old 05-03-2008, 11:32 PM
kp^ kp^ is offline
 
Join Date: Mar 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm able to replace (Enter the URL to the image you wish to use for this catagory icon) but not able to get (New Posts: Replacement Image for 'forum_new') changed some something else, as well with (No New Posts: Replacement Image for 'forum_old').

I'm using v3.7

Thanks
Reply With Quote
  #210  
Old 05-04-2008, 12:05 AM
Danoxth Danoxth is offline
 
Join Date: Jul 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works fine, cheers!
Reply With Quote
  #211  
Old 05-04-2008, 04:54 AM
AmbitiousOne AmbitiousOne is offline
 
Join Date: May 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for 3.7?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04762 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete