Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[HOW TO - vB4] How to Add Drop Down Navigation Items to the Navbar
Shelby
Join Date: Nov 2005
Posts: 67

by Shelby Shelby is offline 19 Nov 2009
Rating: (3 votes - 4.67 average)

Some people really like the drop down navigation that is found in the Vbulletin 3.0 series, or are looking to add additional drop down navigation to the navbar in Vbulletin 4.0. This plugin and new template will allow you to do that.


First, is to goto the Plugins and Products section, this section is in the left hand column of the admin panel near the bottom. In that section you will need to click the option to "Add New Plugin". Note that the red text from both the plugin and template must be the same. You can name it whatever you want, but they must match.

For the new plugin you will enter the following details.
Hook Location: process_templates_complete
Title: Whatever You Want
Code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For step two. You need to make the template that will be used in the navbar. Simply goto the style manager and in choose "Add New Template" from the options. From there, you just need to enter the following.
Title: dropdown
Code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Shelby; 19 Nov 2009 at 17:35..
Views: 67833
Reply With Quote
Comments
  #2  
Old 19 Nov 2009, 01:51
Magz's Avatar
Magz Magz is offline
 
Join Date: Nov 2006
Does what it says on the tin

Very simple, and effective

thanks
__________________
General Chat Forum - Follow us on Twitter, Youtube and Facebook
Reply With Quote
  #3  
Old 19 Nov 2009, 02:37
Parture Parture is offline
 
Join Date: Aug 2005
Works great. Is there a way to get the same background color as you have over it like the other buttons?
Reply With Quote
  #4  
Old 19 Nov 2009, 03:48
LoveStream LoveStream is offline
 
Join Date: Jan 2009
simple and great, thanks
Reply With Quote
  #5  
Old 19 Nov 2009, 11:23
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Now that is great, I have finally a dropdown menu where I want it, thanks very much

--------------- Added 19 Nov 2009 at 19:07 ---------------

Can I ask how would you set this so only certain usergroups would see the links, and the tabs?

Thanks

Last edited by taffy056; 19 Nov 2009 at 19:07. Reason: Auto-Merged DoublePost
Reply With Quote
  #6  
Old 20 Nov 2009, 15:43
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Simple. Nice. Clean.

And the example screenshot. Priceless!
__________________
Live everyday as if it was your last, because one day it just may be.
Reply With Quote
  #7  
Old 21 Nov 2009, 14:26
EidolonAH EidolonAH is offline
 
Join Date: May 2009
Real name: Eidolon
Perfect, thank you Shelby.
Reply With Quote
  #8  
Old 24 Nov 2009, 01:24
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Thank you.
Is there a way to choose where in the nav bar you want it located?
__________________
...steven
www.318ti.org
forum.nccbmwcca.org
Reply With Quote
  #9  
Old 25 Nov 2009, 21:43
DesignWerks DesignWerks is offline
 
Join Date: Apr 2009
Originally Posted by 1996 328ti View Post
Thank you.
Is there a way to choose where in the nav bar you want it located?
Substituting 'navtab_middle' for 'navtab_end' places it after the Forum tab and before the Blogs tab.
Reply With Quote
  #10  
Old 26 Nov 2009, 15:36
TandyServices's Avatar
TandyServices TandyServices is offline
 
Join Date: Aug 2008
Real name: James and Deb
I have changed it up a few to open a new screen. Hope this helps a few.


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

To only let members see you could try:

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

I also found out that if you want two drop downs it worked for me like this:

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

Top one is hidden from guest. Then the other all can see.

Great code Shelby.Hope you don't mind but was just playing a bit with it and wanted to share.

Last edited by TandyServices; 26 Nov 2009 at 15:59. Reason: Add
Reply With Quote
  #11  
Old 27 Nov 2009, 00:34
Eric Anderson Eric Anderson is offline
 
Join Date: Oct 2009
Ok trying to put a sublink into a sublink and this is where I got stuck. in the attached I have clicked "Tech Area" and the menu drops down Now "Carbs" is not a link it is a category (highlighted in blue). "Carb Cleaning" "Jetting" are Links under the category "Carbs". I do not want "Carb Cleaning" and "Jetting" to be there till "Carbs" is either Clicked or Hovered and I would like it to appear down and to the right any Ideas?
Thanks
Eric

Plugin

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

Template

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

Attached Images
File Type: jpg Tab Sublink.jpg (34.1 KB, 448 views)
Reply With Quote
  #12  
Old 27 Nov 2009, 11:11
TandyServices's Avatar
TandyServices TandyServices is offline
 
Join Date: Aug 2008
Real name: James and Deb
Hey Eric,
I do not know if this will work but try something like this:

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

Please let me know
Reply With Quote
  #13  
Old 27 Nov 2009, 18:42
Eric Anderson Eric Anderson is offline
 
Join Date: Oct 2009
Thanks but not exactly what I am looking for looking fr something more like the attached
Attached Images
File Type: jpg subsubmenu.jpg (45.3 KB, 3232 views)
Reply With Quote
  #14  
Old 28 Nov 2009, 14:04
TandyServices's Avatar
TandyServices TandyServices is offline
 
Join Date: Aug 2008
Real name: James and Deb
Well tried my code out and did not work anyways.. Sorry..
Reply With Quote
  #15  
Old 29 Nov 2009, 01:22
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
thanks a lot
__________________
Egypt News website, latest Egyptian news updated instantly.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article 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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:35.

Layout Options | Width: Wide Color: