Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
Forum Category Icons (Advanced) Details »»
Forum Category Icons (Advanced)
Version: 2.0.0, by Dark_Wizard Dark_Wizard is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.x.x Rating:
Released: 06-09-2010 Last Update: 08-04-2011 Installs: 1063
DB Changes Uses Plugins Template Edits Auto-Templates
 
No support by the author.

This is a hack that will add icons to your forum categories on the forum home page.

History: I was the originator of this hack back in the vBulletin 1.x days and continued this in vb 3.7.x. I have had numerous requests to port this to vb 4.x.x so here you are.

Please click install if you want support for this mod and to encourage me to continue adding features!

Enjoy!

You can find nice icons here, here and here.

Thanks to LatinoCheats for this link.

Changelogs:

1.2.0:
  • * Option to change icon location i.e. After Status Icon, Under Forum Title or Replace Status Icon.
    * Now contains a dropdown listing your icons in the folder so you just select and save.
    * Displays icon in forum manager when editing a forum that contains an icon.
    * Change icon width and height so you need to only upload one size icon.
    * Set icon position so you can center the icon when using smaller icons.
    * Dropdown of transparency settings for icons used to replace status icons when indicating "Old Posts".
    * Allows you to mark forum/subforum as read.
    * Now shows locked icons (lock icon added to download and this overlays the status icons when indicating a locked forum).

1.2.1:
  • * Now works for Mark Forum/SubForum as read!

1.2.2:
  • * Fixed: template bug.
    * Added: Now shows locked icons (lock icon added to download and this overlays the status icons when indicating a locked forum.)

1.2.3:
  • * Added: Automatic Template Edits!
    * Added: Only jpg, gif and png icons allowed. (extensions checked in forum edit).
    * Fixed: Mark Forum Read for specific forum/subforum.
    * Fixed: Now shows non-transparent status icon when "Show Locks" is enabled.

1.2.4:
  • * Fixed: Users Viewing. (This is working on a default vb style, others styles may have issues)
    * Fixed: Mark Read should now be fixed, working fine on my end.
    * Fixed: Icon not appearing when "Forum Description" disabled.

2.0.0
  • * Icon size can be set either globally or set per forum, setting is in vb options.
    * When selecting an icon in forum manager the selected icon now shows to the right of the dropdown so you can see what you are selecting.
    * If your upgrading from 1.2.4 and had to do manual template edits then you will need to revert the templates and redo the edits.

Upgrades: For those upgrading just make sure when you import the product you select "Allow Overwrite". You will also need to revert your templates (only for users of version 1.2.2 or earlier) and then follow the instructions as outlined in the install.html file.

Note: Before you ask, yes this works with all browsers. (Tested on FF, IE8, IE7, Chrome, Safari and Opera)

IMPORTANT! If you use the "Auto Template" feature of this mod and it doesn't work then you MUST do the manual template edits outlined in the install.html. This plugin was created using a default vbulletin style.

If you like this mod than please nominate for "MOTM".

Donations are gladly accepted!

Download Now

File Type: zip forumcategoryicons_1.2.4.zip (10.6 KB, 3493 views)
File Type: zip forumcategoryicons_2.0.0.zip (11.2 KB, 6324 views)

Screenshots

File Type: jpg select_icon.jpg (15.9 KB, 0 views)
File Type: jpg forum_edit.jpg (15.1 KB, 0 views)
File Type: png after_status.png (25.0 KB, 0 views)
File Type: png title.png (11.6 KB, 0 views)
File Type: png status.png (12.4 KB, 0 views)
File Type: png status1.png (13.2 KB, 0 views)
File Type: jpg options.jpg (104.5 KB, 0 views)
File Type: png lock.png (13.3 KB, 0 views)

Show Your Support

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

Comments
  #672  
Old 07-26-2012, 09:17 PM
tup14 tup14 is offline
 
Join Date: Oct 2010
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New Joe thanks for the sub-forum icon fix. It works as advertized. I installed and all my sub-forum icons showed up..
Reply With Quote
  #673  
Old 07-27-2012, 12:48 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this what you guys are trying to do? It just takes one simple style change after installing this mod. I will not list the change without the mod authors approval.
Attached Images
File Type: jpg subforum_icons.jpg (23.6 KB, 0 views)
Reply With Quote
  #674  
Old 07-27-2012, 01:43 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's another example where I removed the commas and have all the sub forums on the same line with the subforum titles centered under the subforum icons. I also changed the link so the icons are hot links to the subforums just like the titles.

I think this one looks better than my first example.
Attached Images
File Type: jpg sub_forum_2.jpg (23.5 KB, 0 views)
Reply With Quote
  #675  
Old 07-27-2012, 02:25 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And here's one last example with several forums where the last forum has sub forums with the icons. I think you get the idea now so I won't clog up the thread with any more examples.

By the way, I'm using 4.2 PL2
Attached Images
File Type: jpg subforum_icons_3.jpg (48.6 KB, 0 views)
Reply With Quote
  #676  
Old 07-27-2012, 03:28 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dark Wizard, do I have your permission to list my change? As you can see from my examples it does work for sub forums.

My change is very simple and takes about 1 minute to apply.

I will not post my change without your approval.

Update:

I have a lot of work to do so I'll check back later for your reply otherwise this will have to wait until Monday.

Second Update

I have also figured out how to display the forum icon (or sub forum icon if displaying a sub forum ) at the top of the thread.

Notice in the last screen I removed the "Sub-Forum" header on the forum home display. Do we really need to tell people that these are sub forums? I think they can figure that out on their own.

*** Note that for these examples I changed some of the forums in post 674 to sub forums so you can see that my changes really do work for sub forums

Hey Tup14, are you still "lmao!" ? (post 653) - next time try believing someone when they say something works instead of mocking them.

I will explain how I made these changes after DW approves posting the changes.
Attached Images
File Type: jpg subforum_5.jpg (13.7 KB, 0 views)
File Type: jpg subforum_6.jpg (28.0 KB, 0 views)
File Type: jpg subforum_7.jpg (18.7 KB, 0 views)
File Type: jpg subforum_8.jpg (30.6 KB, 0 views)
Reply With Quote
  #677  
Old 07-28-2012, 08:32 AM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disco_Stu View Post
Dark Wizard, do I have your permission to list my change? As you can see from my examples it does work for sub forums.

My change is very simple and takes about 1 minute to apply.

I will not post my change without your approval.

Update:

I have a lot of work to do so I'll check back later for your reply otherwise this will have to wait until Monday.

Second Update

I have also figured out how to display the forum icon (or sub forum icon if displaying a sub forum ) at the top of the thread.

Notice in the last screen I removed the "Sub-Forum" header on the forum home display. Do we really need to tell people that these are sub forums? I think they can figure that out on their own.

*** Note that for these examples I changed some of the forums in post 674 to sub forums so you can see that my changes really do work for sub forums

Hey Tup14, are you still "lmao!" ? (post 653) - next time try believing someone when they say something works instead of mocking them.

I will explain how I made these changes after DW approves posting the changes.
It's fine, post away. Been too busy with my own stuff. I'll post your change in the first post of the thread with credit.
Reply With Quote
  #678  
Old 07-28-2012, 04:03 PM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here are my changes. I suggest you make a copy of your original code first as I am not responsible for any changes to your forums you make.

To display the sub forum icons:

Styles & Templates>Search In Templates>forumhome_subforums

Look for this line of code:

Code:
<a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a>{vb:raw row.comma}
and replace it (comment it out - I don't like to hard delete) with this code:

Code:
<br>
<div style="width:65px;">
<center><a href="{vb:link forum, {vb:raw row}}"><img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw row.forumiconimg}" /><br>{vb:raw row.title}</a></center>
</div>
That's all there is to it. Note that I left off the comma between subforums. If you want that then include "{vb:raw row.comma}" after "</a>". Also I included a <div> to control the width of the icon display and a <center> to center the title below the icon.

I also added a line break at the top of forumhome_subforums to add a line between the forum and sub forums.

If you want to control how many subforums are displayed on each line (I limit it to 4) then do this:

At the top of forumhome_subforums add this:

Code:
<script type="text/javascript">
var counter = 0;
</script>


Then after this line of code

Code:
<vb:each from="subforums" value="row">
add this:

Code:
<script type="text/javascript">
   counter = counter + 1;
   if(counter >4)
     {
       counter = 1;
       document.write("<br>");
     }
  
</script>
I also have some spacing code in the above code to move the sub forums to the right a bit but that's really up to you how you want to position the icons.

If you want to get rid of the "Sub-Forum" heading then comment out or delete this line of code at the top of forumhome_subforums:

Code:
<h4 class="subforumlistlabel">{vb:rawphrase subforums}:</h4>



To add the forum or sub forum icon at the top of a thread do this:

Styles & Templates>Search In Templates>FORUMDISPLAY

after "{vb:raw navbar}" add this line of code:

Code:
<img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw foruminfo.forumiconimg}" />
And that's all there is to it.
Reply With Quote
2 благодарности(ей) от:
megabink, vetty
  #679  
Old 07-29-2012, 02:20 PM
Milobil Milobil is offline
 
Join Date: Jun 2012
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work on 4.2.0 ?
Reply With Quote
  #680  
Old 07-29-2012, 02:34 PM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using it on 4.2 PL2
Reply With Quote
  #681  
Old 08-01-2012, 04:02 PM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Eyes View Post
What is the update on this? Does this work on 4.2 now as it should?
It does if you add my changes after installing the mod. You can see my examples in post 675.
Reply With Quote
Reply

Thread Tools

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:13 AM.


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.09715 seconds
  • Memory Usage 2,402KB
  • Queries Executed 28 (?)
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
  • (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
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (25)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (17)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete