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
  #92  
Old 11-08-2005, 11:47 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 goyo
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.
You mean the description on top of a forum if you access one?
Yes, this should be possible also.
Simply add the $forum[forumhomeicon] variable where you need it and the image should be shown.
Reply With Quote
  #93  
Old 11-08-2005, 11:55 AM
goyo goyo is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jluerken
You mean the description on top of a forum if you access one?
Yes, this should be possible also.
Yes...that's what i'm talking about :squareeyed:

Unfortunately it's not showing... no matter if it's in the navbar template OR in the forumdisplay template. :nervous:

(no errors....it doesn't display the icon...)
Reply With Quote
  #94  
Old 11-08-2005, 12:28 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goyo
Yes...that's what i'm talking about :squareeyed:

Unfortunately it's not showing... no matter if it's in the navbar template OR in the forumdisplay template. :nervous:

(no errors....it doesn't display the icon...)
Problem is that the hack is designed to work in the forumdisplay section only.
You have two options:

1. Change the variable to be valid globally or
2. Change the templates
Reply With Quote
  #95  
Old 11-08-2005, 12:37 PM
goyo goyo is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jluerken
Problem is that the hack is designed to work in the forumdisplay section only.
You have two options:

1. Change the variable to be valid globally or
2. Change the templates

Thank you that's what i'm going to do...

As I said the main problem it doesn't work in any of the FORUMDISPLAY templates...only in FORUMHOME templates...
Reply With Quote
  #96  
Old 11-08-2005, 12:43 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goyo
Thank you that's what i'm going to do...

As I said the main problem it doesn't work in any of the FORUMDISPLAY templates...only in FORUMHOME templates...
I played around with the templates and the plugin entry points but did not find the right one. Maybe the author can help here with a hint very fast
Reply With Quote
  #97  
Old 11-08-2005, 12:55 PM
delds delds is offline
 
Join Date: Oct 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was able to get the icons back
$forum[forumhomeicon]

using that code, but ended up deletely it for now, as I just can't seem to get it to align correctly, the forum title, description to appearing towards the bottom right of the icon pic or bellow it, I want the forum title and description to appear just to the right of the icon pic starting at the top right of the pic.

This was the way it was before by using your replacement codes at the that was posted, but with updated templates v3.51 I can't use that.
Reply With Quote
  #98  
Old 11-09-2005, 03:39 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have added the plug in and added the phrase code just like LiveWire did but it simply refuses to work for meo n 3.5.1, and the input box in forum editing is at the very bottom and looks like it is simply part of my age lock hack.
Reply With Quote
  #99  
Old 11-09-2005, 06:23 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys, I'm without power at my house still cause of the hurricane. When I get my power back I will update the code for everyone. Just give me a few days. There saying it will be back on the 15. I hope that will be sooner.
Reply With Quote
  #100  
Old 11-09-2005, 10:29 PM
roosevelt roosevelt is offline
 
Join Date: Aug 2004
Location: MD, USA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello everyone,
First of all very good mod by LiveWire. I have installed it too and its running wild.

Here is a little modification of the template file I made so that you can actually replace the status icon with your chosen forum icon. And if there isn't any forum icon chosen, then it will display the status icon.

On forumhome_forumbit_level1_post

Replace:

PHP Code:
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td
With:
PHP Code:
<if condition="$forum[forumhomeicon]">
<
td>$forum[forumhomeicon]</td>
<else />
<
td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
</if> 

On forumhome_forumbit_level2_post


Replace:
PHP Code:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td
With:
PHP Code:
<if condition="$forum[forumhomeicon]">
    <
td class="alt2">$forum[forumhomeicon]</td>
<else />
    <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
</if> 
Demo: http://www.photoshopcity.com/community/
Reply With Quote
  #101  
Old 11-11-2005, 05:05 PM
jarod1981?'s Avatar
jarod1981? jarod1981? is offline
 
Join Date: Nov 2005
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all

it's work on Vbulletin 3.5.1?

Thanks
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:07 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.08049 seconds
  • Memory Usage 2,358KB
  • 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
  • (4)bbcode_php
  • (5)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