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

Reply
 
Thread Tools
Simple Category Icons Details »»
Simple Category Icons
Version: 1.1, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 02-07-2007 Last Update: Never Installs: 49
Template Edits
 
No support by the author.

Ok folks.

For all of you who want Category Icons including the "new post", "no new post", "forum closed" capabilities, here is a quick and simple solution provided by Andreas

What this hack does: Instead of the standard forum icons like
or , ... you can now have separat status icons for every forum you have. It is that simple

Templates forumhome_forumbit_level_...

search:
Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
Replace with
Code:
<img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" />
then create/name your images like this:

forumID_new.gif, forumID_old.gif,...

Example: forum1_new.gif

If you want to have different icons for subforums on forumhome as well:


In forumhome_subforumbit_nopost and forumhome_subforumbit_post

search for:
Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
and replace it with:
Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
Name your images like:

subforumID_old.gif
subforumID_new.gif

Example: subforum22_old.gif

I don't use this hack so I have no screenshots, but If anyone is trying this, it would be cool if you could provide some screenshots.

Remember to click installed

Greetings

StarBuG

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 03-08-2007, 05:51 AM
6piston's Avatar
6piston 6piston is offline
 
Join Date: Apr 2005
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi starbug,

well i could batch convert the _old icons to grey.
i just dunno if i should. having some grey-er icons and all... don't wanna spoil the look you know..
hmm, i could try adding a star or some sort to the _new icons instead
but grey icons would make a significant difference to the look

i am also going to do the sub cat too

thanks again for your hack!

Tom
Reply With Quote
  #23  
Old 03-13-2007, 05:25 AM
vuiveclub_net vuiveclub_net is offline
 
Join Date: Mar 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A sample site for this code: http://giaitri.homeip.net/vb/
Reply With Quote
  #24  
Old 03-13-2007, 01:53 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To automate this somewhat....

make a new plugin on the forumbit_display hook.

Code:
$showCustom[$forum['forumid']] = false;
if (is_file("path/to/forum/images/statusicon/forum".$forum['forumid']."_new.gif")) {
    $showCustom[$forum['forumid']] = true;
}
In the template edits, replace the authors code with this (its still the authors code...which is why i'm not releasing it as my own...its just moved around and with a few conditionals):

Code:
<td>
			<if condition="$vboptions[customimg_enabled] == 1">
				<if condition="$forum[customimg] == ''">
					<if condition="$showCustom[$forum[forumid]] == true">
						<img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" />
					<else />
						<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
					</if>
				<else />
						<img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
				</if>
			<else />
				<if condition="$showCustom[$forum[forumid]] == true">
					<img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" />
				<else />
					<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
				</if>
			</if>
			</td>

If it works (it does for me) it should replace for forums that have an image in the right folder, otherwise display the default. The best of both worlds

Enjoy!
Reply With Quote
  #25  
Old 03-13-2007, 02:48 PM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please upload a text file
Reply With Quote
  #26  
Old 03-13-2007, 03:08 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm gonna leave that to the author...its his code, I just tweaked it
Reply With Quote
  #27  
Old 03-18-2007, 09:00 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, MThornback your suggested code didn't seem to work it just showed the default icons and nothing else. Any idea what could have caused this? I was using png's (i.e. changing all the extensions in the extract of code to png except for the final one for the default icon) but to test it I tried it all with gifs and it still did same.

Also is the closing t tag meant to be there? tried it with and without and didn't see much of any difference but wanted to double check that too.

Would certainly be useul to be able to state a default img.
Reply With Quote
  #28  
Old 03-25-2007, 01:47 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your absolutely right, the code I added didn't include the plugins' variable.....i'm sorry about that! As long as you change the extension to png in the plugin and in the template edits, it should work fine now

If you replace what I gave you the first time with whats there now it should work.

Sorry about that again!
Reply With Quote
  #29  
Old 03-25-2007, 11:32 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@hippiesimz

I just released the hack you were looking for.

You can find it here:

Forum Images next to the Description for every Forum

Best regards

StarBuG
Reply With Quote
  #30  
Old 03-28-2007, 11:55 PM
bryandailey bryandailey is offline
 
Join Date: Mar 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there, great hack. Quick question. Since I have taken all of my category icons and changed them to custom icons (and its going to be a very active board and wont have closed forums or inactive ones), is there a way to remove the symbol key at the bottom of the hompage? (see the attached image)
Reply With Quote
  #31  
Old 03-29-2007, 03:44 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in template FORUMHOME remove

Code:
<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
			<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
		</tr>
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 07:12 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.25534 seconds
  • Memory Usage 2,314KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_code
  • (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
  • (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