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
  #212  
Old 05-05-2008, 06:00 PM
kp^ kp^ is offline
 
Join Date: Mar 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I'm doing things wrong here, but I have checked, and double checked and I still can't get it to work in 3.7.

I'm using the iPhorum skin as default with some tweaks.. So I changed to the default skin. Made the template changes by replacing the code. The plugin is already enabled, and imported.

I goto Forum manager, click on a sub section to edit it. Find Custom Status Icon Settings.
Set: New Posts: Replacement Image for 'forum_new' to: /community/iPhorum/customicons/cog.jpg

www.domain.com/community = my forum location

Hit save, and no change. Any ideas?
Reply With Quote
  #213  
Old 05-05-2008, 06:04 PM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need this for 3.7. It's now a build in feature.

User image_prefix now and create five pictures with the name prefixforum_old.gif and more.

Because of this new feature this Hack did not work.
Reply With Quote
  #214  
Old 05-05-2008, 07:06 PM
kp^ kp^ is offline
 
Join Date: Mar 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Darn, I sure feel like an idiot!

Thanks Hoffi
Reply With Quote
  #215  
Old 05-15-2008, 06:17 PM
myown myown is offline
 
Join Date: Jan 2007
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still works on 3.7 and so simple and easy
Reply With Quote
  #216  
Old 05-22-2008, 02:45 PM
Hams Hams is offline
 
Join Date: May 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx alot
Reply With Quote
  #217  
Old 05-23-2008, 08:29 PM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hoffi View Post
You don't need this for 3.7. It's now a build in feature.

User image_prefix now and create five pictures with the name prefixforum_old.gif and more.

Because of this new feature this Hack did not work.
Thank you very much. Where can I do that?
Reply With Quote
  #218  
Old 06-04-2008, 09:06 PM
Behzad Varedi Behzad Varedi is offline
 
Join Date: Nov 2007
Location: Iran, Mashhad
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I do what you said, but I have little problem here with forum home



any Idea?

Quote:
Originally Posted by mrpaint View Post
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
  #219  
Old 06-08-2008, 04:34 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone is interested, here's what I did with my site:
http://www.friendship-cafe.com/forum/

Btw: If anyone is looking for some awesome 3D Icons, I found this site: http://www.iconlook.com
Reply With Quote
  #220  
Old 06-10-2008, 08:29 AM
NsT's Avatar
NsT NsT is offline
 
Join Date: May 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod works fine on 3.7.0.

You can see example here: http://rchobby365.com/diendan/index.php?styleid=13
Reply With Quote
  #221  
Old 06-19-2008, 12:09 PM
Behzad Varedi Behzad Varedi is offline
 
Join Date: Nov 2007
Location: Iran, Mashhad
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my problem in post #217 fixed !
more information

maybe useful for other friends...
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:11 PM.


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.05080 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
  • (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