vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Simple Category Icons (https://vborg.vbsupport.ru/showthread.php?t=138783)

StarBuG 02-07-2007 10:00 PM

Simple Category Icons
 
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
https://vborg.vbsupport.ru/external/2011/08/21.gif or https://vborg.vbsupport.ru/external/2011/07/4.gif, ... 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:
http://img409.imageshack.us/img409/3273/subforumbh0.gif

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

sandsand 02-08-2007 07:53 PM

Very simple. :)

A quick suggestion would be an optional other code to use an array of forums that get different icons. I just set this up that way and can post my code & screenshots when I'm done making icons if you'd like.

StarBuG 02-09-2007 07:54 AM

Of course

Feel free to post it here ;)

farukcan 02-10-2007 02:53 PM

very good.... install

Coleccromos 02-12-2007 10:09 PM

This one can make for the sub forums?

StarBuG 02-13-2007 06:36 AM

Yes

Simply replace the above code in all 4 forumhome_forumbit_level_
templates and you are good.

Coleccromos 02-13-2007 08:57 PM

https://vborg.vbsupport.ru/

Thank you for the help but me refer to the sub forums pointed out in red in the image.

Is it possible to make this?

993ti 02-13-2007 09:52 PM

Would like this but i have lots of forums.
Is there a way so that forums that don't use different icons use the default onces without adding/renaming lots of the same icons?

BigJimTheLug 02-14-2007 02:32 AM

Thanks, I've been looking for this.

StarBuG 02-14-2007 06:58 AM

@Coleccromos:

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

@993ti:
Sorry there is not. This is a simple solution for having different forum icons, not a full blown hack ;)

StarBuG


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01004 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete