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
  #52  
Old 05-30-2008, 12:12 PM
Skierpetros's Avatar
Skierpetros Skierpetros is offline
 
Join Date: Jan 2008
Location: www.shopforum.gr
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you make it to work on 3.7.1 please its great mod!
Reply With Quote
  #53  
Old 05-31-2008, 05:46 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soundbarrierpro View Post
What if you have a sports site with a different icon for every NHL team in their own subforum? Can this be done?
make the changes in: forumhome_forumbit_level_1_post

Quote:
Originally Posted by Skierpetros View Post
Can you make it to work on 3.7.1 please its great mod!
It should work with 3.7.1

if not search for: subforum_$forum[statusicon].gif

and replace it with: subforum$forum[forumid]_$forum[statusicon].gif
Reply With Quote
  #54  
Old 05-31-2008, 08:41 AM
Skierpetros's Avatar
Skierpetros Skierpetros is offline
 
Join Date: Jan 2008
Location: www.shopforum.gr
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />

This is not in any level forumhome_forumbit_level_...

how can i mode it?
Reply With Quote
  #55  
Old 03-11-2009, 07:05 PM
g0dfather1984 g0dfather1984 is offline
 
Join Date: May 2008
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To change this in 3.8:

In the template: forumhome_forumbit_level_...

Search for:

<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif

And replace w/:

<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum$forum[forumid]_$forum[statusicon].gif
Reply With Quote
  #56  
Old 03-19-2009, 03:25 AM
TruVB TruVB is offline
 
Join Date: Feb 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by g0dfather1984 View Post
To change this in 3.8:

In the template: forumhome_forumbit_level_...

Search for:

<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif

And replace w/:

<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum$forum[forumid]_$forum[statusicon].gif
when i name my images, forumID would be f12_new.gif?
Reply With Quote
  #57  
Old 06-28-2009, 11:58 PM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TruVB View Post
when i name my images, forumID would be f12_new.gif?
nope it would be forum12_new.gif and forum12_old.gif
Reply With Quote
  #58  
Old 09-11-2010, 04:29 PM
Stanthrax Stanthrax is offline
 
Join Date: Mar 2009
Location: Mi
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice little mod. Thanks StarBuG.

For those who are using vBadvanced CMPS on VB 3.8 and would like this on their Recent Threads block. Edit the template: adv_portal_recthreads_exp near the bottom. You will be replacing the last <if condition so make sure the closing </tr> is after that.

Search for:
PHP Code:
    <if condition="$mod_options['portal_threads_showforum']">
        <
td class="$class_ftitle"><span class="smallfont"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></span></td>
    </if> 
And replace with:
PHP Code:
    <if condition="$mod_options['portal_threads_showforum']">
        <
td align="center" class="$class_ftitle"><span class="smallfont">
<
a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]"><img src="$stylevar[imgdir_statusicon]/forum$thread[forumid]_new.gif" alt="$thread[forumtitle]border="0" width="36" height="36" /></a><br>
<
a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></span></td>
    </if> 
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:49 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.05347 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (2)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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