Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Icons for UserCP Navigation 1.2 Details »»
Icons for UserCP Navigation 1.2
Version: 1.2.2, by demgel demgel is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 02-14-2008 Last Update: 06-14-2008 Installs: 965
Uses Plugins Auto-Templates
Re-useable Code Additional Files  
No support by the author.

Icons for UserCP Navigation 1.2.2

This mod adds a pretty group of icons (Silk Icons) to your usercp navigation bar items.

Example Collapsed:



Example Expanded:



Install Instructions:

Installation for White Styles (Like vB Default Style)
1. Upload the "usercp_icons" folder into your current style images/misc dir.
2. Import product-iconsusercp.xml in the Product Manager.
3. That's all

Installation for Dark Styles (PNG Icons with Transparency)
1. Upload the "usercp_icons_png" folder into your current style images/misc dir.
2. Import product-iconsusercp-png.xml in the Product Manager.
3. That's all

IMPORTANT: These PNG icons will not display correctly if you're using Internet Explorer 5.5 or 6. For fix this transparency issue check this mod by Oblivion Knight:

? PNG Transparency for Internet Explorer:
https://vborg.vbsupport.ru/showthread.php?t=94416


Version History:

1.1:
- Added automatic template insertion.
- Fixed compability width with vBulletin Project Tools Item.
- Fixed compability width with vBulletin Blog Item.

1.2:
- Added collapsable option to items.
- Private Messages Item modified, no menu.
- Subscriptions Item modified, no menu.

1.2.1:
- Minor changes in shell template (missing &nbsp.
- Added blank html file in the icons dir.

1.2.2:
- Added PNG icons for Dark Styles. (Thanks to hcmagix for the idea).
- Added version checking.

?Tested on vBulletin 3.7.1!

Show Your Support

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

Comments
  #232  
Old 01-09-2009, 04:56 PM
nascartr nascartr is offline
 
Join Date: Jun 2008
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hugo Holbling View Post
I've attached my usercp_shell template, which I edited similarly to this modification. It works for 3.8.0, tested today. You obviously need to have most of the famfamfam silk icons in a usercp_icons folder in images/misc for it to work and you may prefer to change the icons I chose for others.

I've done this with all my drop-down menus (see the attachments for an idea of what I mean), choosing icons I thought give an idea of what each option links to.
Do you mind sharing how you edited your drop down menus to show icons? Thanks!
Reply With Quote
  #233  
Old 01-09-2009, 05:23 PM
VargTimmen VargTimmen is offline
 
Join Date: May 2008
Location: Munich - Germany
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you fix it, that items, which aren't supported are still shown?
Reply With Quote
  #234  
Old 01-09-2009, 05:44 PM
Hugo Holbling Hugo Holbling is offline
 
Join Date: Sep 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nascartr View Post
Do you mind sharing how you edited your drop down menus to show icons? Thanks!
Sure. The basic idea is to just add this code to every vbmenu_option you want to show an icon:

Code:
<img src="$stylevar[imgdir_misc]/usercp_icons/**image_goes_here**.png">&nbsp;
... where your image selection replaces "**image_goes_here**", obviously. For example, if you want to edit the Quick Links menu then edit the navbar template. The first item in the menu is "Today's Posts".

Find:

Code:
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
Replace with:

Code:
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/page_white_copy.png">&nbsp;<a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
The bolded part is what was added and it has "page_white_copy.png" because that's the famfamfam silk icon I chose to represent "Today's Posts"; you might want to use something else. Obviously each of the icons you use has to be uploaded to images/misc/usercp_icons.

You repeat this for each instance and you can do this for literally every drop-down menu option, which is what I have for all of my navbar and for every other drop-down. I've attached an image of my search and PM drop-downs as other examples. It might be overkill for other people but I like how it looks.

One thing to note is that if you have any modifications that automatically insert menu options on your navbar or in the Quick Links menu then you need to add the icon code to those also. For example, if you have vB Blog and you opt for a link in your navbar, this is the blog_navbar_link template:

Code:
<tr>
	<td class="thead">$vbphrase[search_blogs]</td>
</tr>
<tr>
	<td class="vbmenu_option" title="nohilite">
		<form action="blog_search.php?$session[sessionurl]do=dosearch" method="post">
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
			<input type="hidden" name="do" value="dosearch" />
			<input type="hidden" name="quicksearch" value="1" />
			<div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="2004" /></div>
		</form>
	</td>
</tr>
<if condition="$vboptions[vbblog_tagging]">
<tr>
	<td class="vbmenu_option"><a href="blog_tag.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
	<td class="vbmenu_option"><a href="blog_search.php?$session[sessionhash]do=search">$vbphrase[advanced_search]</a></td>
</tr>
You can then add the icon code in two places so it then looks something like this:

Code:
<tr>
	<td class="thead">$vbphrase[search_blogs]</td>
</tr>
<tr>
	<td class="vbmenu_option" title="nohilite">
		<form action="blog_search.php?$session[sessionurl]do=dosearch" method="post">
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
			<input type="hidden" name="do" value="dosearch" />
			<input type="hidden" name="quicksearch" value="1" />
			<div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="2004" /></div>
		</form>
	</td>
</tr>
<if condition="$vboptions[vbblog_tagging]">
<tr>
	<td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/tag.png">&nbsp;<a href="blog_tag.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
	<td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/cog.png">&nbsp;<a href="blog_search.php?$session[sessionhash]do=search">$vbphrase[advanced_search]</a></td>
</tr>
Again, the bold part is what I added and you may prefer to use different icons.

If it would help, maybe I can put together all my edits and release them here or separately. I don't make any pretense of this code being good or optimal; it just works for me on a small forum.
Reply With Quote
  #235  
Old 01-10-2009, 06:36 PM
nascartr nascartr is offline
 
Join Date: Jun 2008
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Hugo, I figured it out from that! http://diecastcrazy.com
Reply With Quote
  #236  
Old 01-10-2009, 07:01 PM
Hugo Holbling Hugo Holbling is offline
 
Join Date: Sep 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job - looks great. :up:
Reply With Quote
  #237  
Old 01-10-2009, 11:09 PM
Bawtneez Bawtneez is offline
 
Join Date: Oct 2008
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. Thanks =]
Reply With Quote
  #238  
Old 01-11-2009, 01:01 AM
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Location: Macedonia
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Waiting for a 3.8 version...
Reply With Quote
  #239  
Old 01-11-2009, 06:35 AM
Hugo Holbling Hugo Holbling is offline
 
Join Date: Sep 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a 3.8 version in my post no.229; you can change the icons as you see fit using the instructions I gave above.

Edit: I've attached the icons I use, along with an edited version of demgel's product file for vB 3.8.0; hopefully this will work. (Mods, please remove this if demgel objects.) There are more icons in the zip file than you need because when I get some time I'll try to add the template edits I use to add icons to all menus.
Reply With Quote
  #240  
Old 01-11-2009, 10:13 AM
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Location: Macedonia
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hugo Holbling View Post
There's a 3.8 version in my post no.229; you can change the icons as you see fit using the instructions I gave above.

Edit: I've attached the icons I use, along with an edited version of demgel's product file for vB 3.8.0; hopefully this will work. (Mods, please remove this if demgel objects.) There are more icons in the zip file than you need because when I get some time I'll try to add the template edits I use to add icons to all menus.
Works perfectly!

It would be great if you (or the mod's owner) could post it in vBulletin's 3.8 add-ons forum.

For all those who were waiting for the 3.8 version, go ahead, install it.
Reply With Quote
  #241  
Old 01-13-2009, 01:59 PM
Chimpie's Avatar
Chimpie Chimpie is offline
 
Join Date: Nov 2007
Location: Sarasota, Florida
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I concur, Hugo's additions work nicely.

One request... Can we get icons for Projects: 'List Subscriptions' and 'Projects'?

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 05:16 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.05096 seconds
  • Memory Usage 2,329KB
  • 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
  • (5)bbcode_code
  • (3)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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