Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Forum Category Icons (Advanced) Details »
Forum Category Icons (Advanced)
Mod Version: 2.0.0, by Dark_Wizard (Coder) Dark_Wizard is offline
Developer Last Online: Jun 2014 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (128 votes - 4.72 average) Installs: 1055
Released: 10 Jun 2010 Last Update: 05 Aug 2011 Downloads: 8466
Not Supported DB Changes Uses Plugins Template Edits Auto-Template  

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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	select_icon.jpg
Views:	2257
Size:	15.9 KB
ID:	118464   Click image for larger version

Name:	forum_edit.jpg
Views:	3253
Size:	15.1 KB
ID:	118465   Click image for larger version

Name:	after_status.png
Views:	5938
Size:	25.0 KB
ID:	118466   Click image for larger version

Name:	title.png
Views:	6301
Size:	11.6 KB
ID:	118476  

Click image for larger version

Name:	status.png
Views:	6067
Size:	12.4 KB
ID:	118477   Click image for larger version

Name:	status1.png
Views:	6978
Size:	13.2 KB
ID:	118478   Click image for larger version

Name:	options.jpg
Views:	7128
Size:	104.5 KB
ID:	118966   Click image for larger version

Name:	lock.png
Views:	5436
Size:	13.3 KB
ID:	118967  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Forum Category Icons on Forum Home Dark_Wizard vBulletin 3.7 Add-ons 106 02 Oct 2011 11:14

  #766  
Old 22 Nov 2013, 08:09
tbworld tbworld is offline
 
Join Date: Oct 2008
Please read through the thread, that subject has been covered a few times.
Reply With Quote
  #767  
Old 23 Nov 2013, 15:41
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
What about here?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by billstelling; 23 Nov 2013 at 20:13.
Reply With Quote
  #768  
Old 23 Nov 2013, 19:51
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
Originally Posted by Dark_Wizard View Post
Nice idea...not sure how to implement it since developers that design skins, styles etc...put their status icons into different locations i.e. images/skin name/statusicon or cpstyles/skin name/statusicon. There is no consistency....
Anyone else looking for this feature?

I am.. I run multiple themes and it would be nice to see it call to a specific theme. Being able to set by theme would be a big plus. Also, would it be possible to code it so we can use it the same as the stock setup were you have forum_new-48 and forum_old-48.. I know I will get some +++++ing if they "cant tell if the forum has new posts or not.

Setting icon padding per forum would be nice as well, we can do size now but no way to center them all independently if using different sizes without coding it in manually. No biggy really, but it would be a nice addition to the mod.

Originally Posted by Dark_Wizard View Post
One way is to move the icons to a folder under the statusicon folder and then set it in the forum manager per style/skin...let me think on this a bit.
I did that for it to make it easy for staff to do them without ftp. I use the icons folder for it and created a sub folder for them and other graphics. Works great doing it that way, being able to set for staff to up smilies opened the door to be able to do it with all graphics. All you have to do is edit for the path in the templates.

As the design admin for them I did not have ftp access(only the main site team has access) so I had to come up with a way to up graphics without having to bug the head office all the time. I did this theme using the icons folder for pretty much all its graphics. Most of the others I had already created before I updated the site to vb4 so only a few refinements for them there..


Last edited by billstelling; 24 Nov 2013 at 22:10.
Reply With Quote
  #769  
Old 25 Nov 2013, 06:41
onfranco onfranco is offline
 
Join Date: Sep 2010
Real name: Franz
no, dont work icon is sub forum .

this is ok = http://www.ricercaprofessionista.com/forum.php

this is not ok = http://www.ricercaprofessionista.com...php?2-Economia

www.ricercaprofessionista.com

i see other template modification in yours last post but dont do nothing
Reply With Quote
  #770  
Old 25 Nov 2013, 14:29
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
Works fine for me. The bottom 2 are the default vB as I have yet to create a graphic for those categories yet.

Reply With Quote
  #771  
Old 09 Jan 2014, 14:19
linkooz linkooz is offline
 
Join Date: Jan 2014
Originally Posted by Slipperyduck View Post
vBulletin 4.2.2

When in the Admin panel I get the following:


Warning: Function eregi() is deprecated in ..../adminpanel/forum.php(248) : eval()'d code on line 12

^ I get one Warning for every icon created, ie. I have 19 Warnings and have 19 custom Icons

----------------------------------------------------------------------------------------------------------------------------------
I'm assuming its the Plugin Template : Forum Category Icons [Forum Manager Edit]

if($image != ".." && $image != "." && $image != "lock.png" && (eregi('\.(jpg|gif|png)$', $image)))

^ where the eregi function is depreciated?

I've changed mine to the following and it seems to work (I'm assuming - don't see a problem yet):

if($image != ".." && $image != "." && $image != "lock.png" && (preg_match('/\.(jpg|gif|png)$/i', $image)))

I am still getting the same error..

Warning: asort() expects parameter 1 to be array, null given in ..../admincp/forum.php(248) : eval()'d code on line 21

Warning: Invalid argument supplied for foreach() in ..../admincp/forum.php(248) : eval()'d code on line 22

could anybody help me out?

Thanks.
Reply With Quote
  #772  
Old 10 Jan 2014, 12:55
Big-Pete Big-Pete is offline
 
Join Date: May 2009
Originally Posted by Slipperyduck View Post
vBulletin 4.2.2

When in the Admin panel I get the following:


Warning: Function eregi() is deprecated in ..../adminpanel/forum.php(248) : eval()'d code on line 12

^ I get one Warning for every icon created, ie. I have 19 Warnings and have 19 custom Icons

----------------------------------------------------------------------------------------------------------------------------------
I'm assuming its the Plugin Template : Forum Category Icons [Forum Manager Edit]

if($image != ".." && $image != "." && $image != "lock.png" && (eregi('\.(jpg|gif|png)$', $image)))

^ where the eregi function is depreciated?

I've changed mine to the following and it seems to work (I'm assuming - don't see a problem yet):

if($image != ".." && $image != "." && $image != "lock.png" && (preg_match('/\.(jpg|gif|png)$/i', $image)))
Where did you edit this? Only I cannot find a Forum Icons Template to edit..?

Had a blonde moment..! all done, confusing this with a WP plugin for another site

Last edited by Big-Pete; 14 Jan 2014 at 11:32.
Reply With Quote
  #773  
Old 27 Jan 2014, 19:33
g10net g10net is offline
 
Join Date: Jan 2010
thanks
Reply With Quote
  #774  
Old 06 Feb 2014, 22:13
Tibiaspy Tibiaspy is offline
 
Join Date: May 2008
Everything works fine except one thing:



The upper part is what I should get, the lower part is what I get. I see information about users viewing thread in wrong place - it should be right beside forum title instead it's in front of description.

Anyone have any idea what to do?
Reply With Quote
  #775  
Old 25 Feb 2014, 16:34
Chris-Moody Chris-Moody is offline
 
Join Date: Jan 2014
Works Great once I figured out the settings...

Last edited by Chris-Moody; 25 Feb 2014 at 16:58.
Reply With Quote
  #776  
Old 28 Feb 2014, 08:22
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Aug 2010
Real name: Jerry
Originally Posted by Tibiaspy View Post
Everything works fine except one thing:



The upper part is what I should get, the lower part is what I get. I see information about users viewing thread in wrong place - it should be right beside forum title instead it's in front of description.

Anyone have any idea what to do?
I have the same issue. I did install the css-sprites to my forum, and then it happened.

Can anyone tell me what to move to get it to show correctly?

THanks in advance for any replies.
Attached Images
File Type: jpg untitled.jpg (26.1 KB, 15 views)
Reply With Quote
  #777  
Old 02 Mar 2014, 00:26
Bluefin221 Bluefin221 is offline
 
Join Date: Jul 2008
Originally Posted by Disco_Stu View Post
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace it (comment it out - I don't like to hard delete) with this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Then after this line of code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.




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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And that's all there is to it.
This just will not work for me, I do have vsa sub forum manager as a mod and I read somewhere this mod wont work with it in sub forums, my main forums are perfect however sub forums I cannot get any icons to show at all. If I disable the VSA sub forum manager its just a complete mess.
Reply With Quote
  #778  
Old 02 Apr 2014, 18:35
Tibiaspy Tibiaspy is offline
 
Join Date: May 2008
Originally Posted by Krusty1231 View Post
I have the same issue. I did install the css-sprites to my forum, and then it happened.

Can anyone tell me what to move to get it to show correctly?

THanks in advance for any replies.
Good to know I'm not the only one. Have you figured it out may be?
Reply With Quote
  #779  
Old 10 Apr 2014, 05:37
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Originally Posted by onespot View Post
Hey All,
So I wanted to use this but when you had a Category > Category > Subforum layout the images would not properly showup (actually they wouldn't at all).

There was a post on "how to fix it" but then my problem was that the images were not correctly displaying.

I spent 3-4 hours fixing it (should have been easy but hey im not coder) so if anyone needs - just update your forumhome_forumbit_level1_post template and have it look like this. Should work for default template - I had to go in and copy the code from his XML to figure it out.

It would be nice if you could add this in so subforums would properly work out of the box.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks, this worked for me
__________________
ForoBeta - Comunidad de bloggers en espaņol.
Reply With Quote
  #780  
Old 10 Apr 2014, 06:02
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Originally Posted by Disco_Stu View Post

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And that's all there is to it.
Hi

This works great thanks, but i have a little problem, on categorys there are no icons, so it appears an invalid one, like this:



Do you know a solution for that?
__________________
ForoBeta - Comunidad de bloggers en espaņol.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 00:33.

Layout Options | Width: Wide Color: