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
  #152  
Old 06-23-2007, 08:52 PM
Crys Crys is offline
 
Join Date: Jun 2006
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by compact123 View Post
Sorry dude, I not speak english

Do yu speak turkish?
Your mod code ?
Reply With Quote
  #153  
Old 06-25-2007, 01:56 AM
ABeautifulBrown's Avatar
ABeautifulBrown ABeautifulBrown is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

n/m I figured something out www.sofreshforums.com
Reply With Quote
  #154  
Old 06-25-2007, 02:53 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ABeautifulBrown View Post
n/m I figured something out www.sofreshforums.com
looks good, but I would remove the default category icons as well
Reply With Quote
  #155  
Old 06-29-2007, 04:44 AM
mrpaint's Avatar
mrpaint mrpaint is offline
 
Join Date: Sep 2004
Location: Hanoi Capital
Posts: 630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Louis Phong View Post
please help me, i wanna icon category will be display same as:
http://www.handheldvn.com/forum/index.php

I tried to edit (forumhome_forumbit_level1_nopost) but... i can't

Demo



Please help me do it!
Apply below template edits and you are done:

TEMPLATE: forumhome_forumbit_level1_post
Find:
HTML Code:
</tbody>
<if condition="$childforumbits">
<tbody>
	$childforumbits
</tbody>
</if>
Replace:
HTML Code:
<if condition="$childforumbits">
	<if condition="$vboptions[customimg_enabled] == 1">
		<tr>
			<td class="alt1Active" rowspan="8" colspan="1" valign="middle">
				<if condition="$forum[customimg] != ''">
					<img src="$forum[customimg]" alt="level1_post" border="0" id="forum_statusicon_$forum[forumid]" />
				</if>
			</td>
		</tr>
	</if>
	$childforumbits
</if>
</tbody>
TEMPLATE: forumhome_forumbit_level1_nopost
Find:
HTML Code:
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
Replace:
HTML Code:
<if condition="$childforumbits">
<div id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
	<if condition="$vboptions[customimg_enabled] == 1">
		<tr>
			<td class="alt1Active" rowspan="8" colspan="1" valign="middle">
				<if condition="$forum[customimg] != ''">
					<img src="$forum[customimg]" alt="level1_post" border="0" id="forum_statusicon_$forum[forumid]" />
				</if>
			</td>
		</tr>
	</if>
	$childforumbits
</div>
</if>
</tbody>
Find:
HTML Code:
		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
Replace:
HTML Code:
		<td class="tcat" colspan="<if condition="$vboptions[customimg_enabled] == 1"><if condition="$vboptions[showmoderatorcolumn]">7<else />6</if><else /><if condition="$vboptions[showmoderatorcolumn]">6<else />5</if></if>">
TEMPLATE: FORUMHOME
Find:
HTML Code:
	<tr align="center">
	  <td class="thead">&nbsp;</td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>
Replace:
HTML Code:
	<tr align="center">
	  <if condition="$vboptions[customimg_enabled] == 1"><td class="thead">&nbsp;</td></if>
	  <td class="thead">&nbsp;</td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>
Find:
HTML Code:
		<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
Replace:
HTML Code:
		<td class="tcat" colspan="<if condition="$vboptions[customimg_enabled] == 1"><if condition="$vboptions[showmoderatorcolumn]">7<else />6</if><else /><if condition="$vboptions[showmoderatorcolumn]">6<else />5</if></if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
Find:
HTML Code:
		<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
Replace:
HTML Code:
		<td class="alt1" colspan="<if condition="$vboptions[customimg_enabled] == 1"><if condition="$vboptions[showmoderatorcolumn]">7<else />6</if><else /><if condition="$vboptions[showmoderatorcolumn]">6<else />5</if></if>">
Find:
HTML Code:
		<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
Replace:
HTML Code:
		<td class="tfoot" align="center" colspan="<if condition="$vboptions[customimg_enabled] == 1"><if condition="$vboptions[showmoderatorcolumn]">7<else />6</if><else /><if condition="$vboptions[showmoderatorcolumn]">6<else />5</if></if>"><div class="smallfont"><strong>
Reply With Quote
  #156  
Old 07-14-2007, 05:22 PM
CrashPush's Avatar
CrashPush CrashPush is offline
 
Join Date: Feb 2007
Location: New York
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone tell me how to get the icons next to the forum title and not on the status icons?
Reply With Quote
  #157  
Old 07-25-2007, 03:47 PM
Ultima07 Ultima07 is offline
 
Join Date: Jul 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks this is working but I want to update to one that will allow status icons (upto 4 icons per forum depending on status)
Reply With Quote
  #158  
Old 08-05-2007, 07:45 AM
hobsdv hobsdv is offline
 
Join Date: May 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed works great cheers
Reply With Quote
  #159  
Old 08-05-2007, 07:53 AM
3dfx 3dfx is offline
 
Join Date: Jul 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod dude
Reply With Quote
  #160  
Old 08-10-2007, 04:54 PM
combs combs is offline
 
Join Date: Aug 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For Subforms this is still showin up: http://www.bbwforums.net/forumdisplay.php?f=53

Any idea why?
Reply With Quote
  #161  
Old 08-22-2007, 11:33 PM
compact123 compact123 is offline
 
Join Date: Jun 2006
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by compact123 View Post
I did

r othe status icon
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 01:15 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.07581 seconds
  • Memory Usage 2,355KB
  • 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
  • (20)bbcode_html
  • (4)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