Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Category Icons Details »»
vB Category Icons
Version: 1.0.1, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.5.0 RC1 Rating:
Released: 06-08-2005 Last Update: 07-26-2005 Installs: 182
DB Changes Uses Plugins Template Edits
 
No support by the author.

vB Category Icons

vBulletin 3.5.0 RC 1
www.vBHackers.com

What this does
This will allow you to setup a icon to display by the title of each forum you have. The look of the icon depends on how you want to set it up in the templates. This will work for all levels of sub-forums.

Note:
This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 ONLY!

To do list...
  • Time to install: 3 minutes
  • Queries to run: 1
  • File Mods: 0
  • Templates to edit: 2
  • Templates to add: 0
  • New Phrases: 1
  • New Plugins: 2

Template Edit
Alot of people want to get there icon like my screenshot. So you have bugged me enough for me to post how. Enjoy!

Replace Template: forumhome_forumbit_level1_post With The Folllowing:
HTML Code:
<tbody>
        <tr align="center">
                <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">

                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
                        <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td>

                                <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                        <td>$forum[forumhomeicon]</td>
                                        <td>
                                                <div>
                                                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                                                </div>

                                                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                                                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                                                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                                        </td>
                                </tr>
                                </table>
                        </td>
                </tr>
                </table>

                </td>
                <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
                <td class="alt1">$forum[threadcount]</td>
                <td class="alt2">$forum[replycount]</td>
                <if condition="$vboptions['showmoderatorcolumn']">
                <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
                </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody>
        $childforumbits
</tbody>
</if>
Replace Template: forumhome_forumbit_level2_post With The Folllowing:
HTML Code:
<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td>$forum[forumhomeicon]</td>
                        <td>
                                <div>
                                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                                </div>

                                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                        </td>
                </tr>
                </table>
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits
And Thats All!

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.

Show Your Support

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

Comments
  #82  
Old 10-09-2005, 07:09 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make a space, you can do what dsotmoon has done. All my images have a 5 pixel space; left, right, top and bottom. Or you can add a <td>&nbsp</td>. But pixel space seems to be the best answer.
Reply With Quote
  #83  
Old 10-10-2005, 04:18 AM
vibe vibe is offline
 
Join Date: Jan 2005
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another great mod
Reply With Quote
  #84  
Old 10-19-2005, 08:25 PM
The Wise One The Wise One is offline
 
Join Date: Jun 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by feldon23
On my forum, I have 'new' and 'old' versions of each forum category icon instead of two icons next to each other. It's not as elegant to have a category icon AND the standard vB icon for 'this forum contains new posts'.
Live Wire

if you havent got this working yet, i got it working via strait template edits. its a little messy though. i tried doing it via a plugin using the global_start hook but couldnt get it to work. if you want it...ill send you what i did. if not...maybe ill just release it in the templates forum.
Reply With Quote
  #85  
Old 10-20-2005, 07:50 AM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for categories too? (if you've unchecked the "Act as a forum" checkbox)
Reply With Quote
  #86  
Old 10-20-2005, 07:56 AM
pauloo pauloo is offline
 
Join Date: Dec 2004
Location: Belgium
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please, i need template forumhome_forumbit_level1_post and forumhome_forumbit_level2_post for Vb 3.5.

Thank you
Reply With Quote
  #87  
Old 10-20-2005, 10:18 AM
rabid dingo rabid dingo is offline
 
Join Date: Sep 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to:
1. Get rid of the original VB icons?
2. make the icons be a substitute for the actual forum name? (i.e. Have a clickable logo with no text next to it.)
Reply With Quote
  #88  
Old 10-20-2005, 04:31 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack

Click Install

Craftiness: https://vborg.vbsupport.ru/showpost....5&postcount=67 (work perfectly on vB 3.5 Gold)
Reply With Quote
  #89  
Old 11-08-2005, 02:36 AM
delds delds is offline
 
Join Date: Oct 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The message received after updating to vb 3.51 the latest update was to revert certain templates otherwise some funtions may not work. If the code has changed for the 2 templates, then we cannot replace as instructed to do so in the first post. I have tried to just insert the one line but haven't been able to get the alignment right.

Any Help ? Or perhaps updated templete replacements to refect the revised templates in the new vb 3,51 update
Reply With Quote
  #90  
Old 11-08-2005, 08:50 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by delds
The message received after updating to vb 3.51 the latest update was to revert certain templates otherwise some funtions may not work. If the code has changed for the 2 templates, then we cannot replace as instructed to do so in the first post. I have tried to just insert the one line but haven't been able to get the alignment right.

Any Help ? Or perhaps updated templete replacements to refect the revised templates in the new vb 3,51 update
I reverted the template to match the 3.5.1 default one and then I added all changed by hand.
Simply try and error, nothing big can go wrong.

The CatHack is working fine on my board at www.clanforums.com vB3.5.1
I added the correct code to main and subforums but I think posting this here does not help cause I have several other modifications in there.
I think I will add cat icons today to better show how it works.
Actually only my birthday board has an icon which I used to test things out.
Reply With Quote
  #91  
Old 11-08-2005, 11:40 AM
goyo goyo is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack!!

Is there a way to show the category icon in forumdescription in forumdisplay?

ps. I'm talking about this forumdescription vB option:
This option displays the forum description in the navbar. Helps visitors to know what the topic of a forum is, as well as possibly increasing search engine rankings.
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 02:48 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.04815 seconds
  • Memory Usage 2,338KB
  • 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
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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