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

Reply
 
Thread Tools
NJAquaman - Main Nav Tab Drop Down Details »»
NJAquaman - Main Nav Tab Drop Down
Version: 1.6, by NJAquaman NJAquaman is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.0.x Rating:
Released: 01-03-2010 Last Update: Never Installs: 54
Uses Plugins
Re-useable Code Translations  
No support by the author.

What: A Nav Tab Plugin to Add a Main Drop Down Tab to the Nav Bar.

WORKS WITH ..!!!
4.0.x

Browser Comparability (All Latest Versions);
Internet Explorer
Firefox
Opera
Safari
Google Chrome


Install:

1) Navigate to ACP> Plugins & Products > Add New Plugin
2) Product : Vbulletin
Hook Location : parse_templates
Title : Nav Tab Drop Down
Execution Order : 5

3) Insert the Code;


For Tabs On the Right Side Use This Code:
Code:
$template_hook['navtab_end'] .= '
<li class="popupmenu" >
<a  href="javascript://" class="popupctrl navtab">Featured Articles</a>
<ul class="popupbody ">
<font color="#000000">
<li></li>
<li><a href="list.php?r=category/46-Birding">Birding</a></li>
<li><a href="list.php?r=category/47-Boating">Boating</a></li>
<li><a href="list.php?r=category/48-Camping">Camping</a></li>
</font>
</ul>
</li>
';
For Tabs in the Middle Use This Code:
Code:
$template_hook['navtab_middle'] .= '
<li class="popupmenu" >
<a  href="javascript://" class="popupctrl navtab">Featured Articles</a>
<ul class="popupbody ">
<font color="#000000">
<li></li>
<li><a href="list.php?r=category/46-Birding">Birding</a></li>
<li><a href="list.php?r=category/47-Boating">Boating</a></li>
<li><a href="list.php?r=category/48-Camping">Camping</a></li>
</font>
</ul>
</li>
';
For Tabs On the Left Side Use This Code:
Code:
$template_hook['navtab_start'] .= '
<li class="popupmenu" >
<a  href="javascript://" class="popupctrl navtab">Featured Articles</a>
<ul class="popupbody ">
<font color="#000000">
<li></li>
<li><a href="list.php?r=category/46-Birding">Birding</a></li>
<li><a href="list.php?r=category/47-Boating">Boating</a></li>
<li><a href="list.php?r=category/48-Camping">Camping</a></li>
</font>
</ul>
</li>
';
4) Save , Now you Have a Nav Tab Drop Down!


Notes:
- "Featured Articles" is the Nav Tab Name
- Leave the First "<li></li>" For Alignment
- Anything Between the other "<li></li>" will be in the Drop Downs
- YOU MAY duplicate this code in the same plug in for another Tab
- You can use both Left and Right codes at the same time!


If You Want Just a Main Tab With a Link Use this Code
CLICK HERE



Screen Shot!

2010-01-05_084133.gif



DONT FORGET TO CLICK INSTALL


__________________________________________________ ______________
Change Log
v1.6 - 01/17/10
- vB 4.0.1 Temp Hook Call Fix
- Patch: Change the Hook From "process_template_complete" to "parse_templates"

v1.5 - 01/15/10
- Added the Middle Code (garretbyrne)

v1.4 - 01/05/10
- Both Right and Left Sides (Zaiaku)

v1.3 - 01/05/10
- Added Just A Nav Tab Option With A Link (Pozo)

v1.2 - 01/05/10
- Corrected Works in all Browsers (linuxututs)
- Patch: Change Both "DIV" tag to a "UL" tag

v1.1 - 01/04/10
- Corrected sub Nav Links Hidden (MARCO1)
- Patch : Delete the
Code:
$vbulletin->options['selectednavtab']='tab_fa';
From the Code.
__________________________________________________ ______________



Here Are Some Other Versions:

Main Nav Tabs
Main Nav Tab w/ Connective Sub Nav
[CMS] Sub Nav Tabs
[CMS] Sub Nav Tabs Drop Down

Show Your Support

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

Comments
  #32  
Old 01-08-2010, 07:33 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garretbyrne View Post
Hi NJAquaman, look it.. it's perfect for what I needed I just had a question, I'm using another theme and the drop down menu works perfect only now when I go down the list the button at the top the background colour is gone and the text is black is there any way to fix that?

I've attached an image to what I mean.

Cheers
Yes in the Code you will see
Code:
<font color="#000000">
you can change it to any hex color you want! !!

Thank you! Hope this Helps!


Hex Color Chart!
Reply With Quote
  #33  
Old 01-08-2010, 08:39 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RDX1 View Post
Works great. I removed the other tab hacks I used and removed the home/forum/what's new buttons and only use this. Does exactly what I need.
Thank You , Glad you like it !
Reply With Quote
  #34  
Old 01-09-2010, 10:16 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi NJ, I've tried that but it changes the colour of the text down the whole menu is there a code just for the background of the top link like in the image i attached...

Cheers
Reply With Quote
  #35  
Old 01-09-2010, 12:34 PM
mondiuk mondiuk is offline
 
Join Date: Jun 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Grait plugin!
Reply With Quote
  #36  
Old 01-13-2010, 11:27 PM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want tabs before the What's New.. add in the following..

$template_hook['navtab_middle'] .= '
<li class="popupmenu" >
<a href="javascript://" class="popupctrl navtab">Featured Articles</a>
<ul class="popupbody ">
<font color="#000000">
<li></li>
<li><a href="list.php?r=category/46-Birding">Birding</a></li>
<li><a href="list.php?r=category/47-Boating">Boating</a></li>
<li><a href="list.php?r=category/48-Camping">Camping</a></li>
</font>
</ul>
</li>
';
Reply With Quote
  #37  
Old 01-15-2010, 01:31 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garretbyrne View Post
If you want tabs before the What's New.. add in the following..

$template_hook['navtab_middle'] .= '
<li class="popupmenu" >
<a href="javascript://" class="popupctrl navtab">Featured Articles</a>
<ul class="popupbody ">
<font color="#000000">
<li></li>
<li><a href="list.php?r=category/46-Birding">Birding</a></li>
<li><a href="list.php?r=category/47-Boating">Boating</a></li>
<li><a href="list.php?r=category/48-Camping">Camping</a></li>
</font>
</ul>
</li>
';
Great Work Garretbyrne! I will update it ! :up:
Reply With Quote
  #38  
Old 01-16-2010, 12:18 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No probs mate
Reply With Quote
  #39  
Old 02-02-2010, 02:08 AM
Sleeter Sleeter is offline
 
Join Date: Dec 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea how I could use this and also be able to add drop down sub nav tabs connected to a single main tab. Example would be a main tab called "Links" with a sub nav drop down called "Search Engines" with "Google" "Yahoo" "Bing" as the links. I hope that makes sense...
Reply With Quote
  #40  
Old 02-03-2010, 01:50 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sleeter View Post
Any idea how I could use this and also be able to add drop down sub nav tabs connected to a single main tab. Example would be a main tab called "Links" with a sub nav drop down called "Search Engines" with "Google" "Yahoo" "Bing" as the links. I hope that makes sense...

Very Good Idea Sleeter .... I will look into this and
let you know if i am making another mod to fit that description !

Thank You!

NJAquaman
Reply With Quote
  #41  
Old 03-28-2010, 01:06 AM
woffie's Avatar
woffie woffie is offline
 
Join Date: Jan 2009
Location: Michigan
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need the link to open in a new window. What do I need to change?
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:25 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.27127 seconds
  • Memory Usage 2,344KB
  • 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
  • (5)bbcode_code
  • (4)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
  • (3)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_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
  • 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