Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #42  
Old 03-28-2010, 01:08 AM
woffie's Avatar
woffie woffie is offline
 
Join Date: Jan 2009
Location: Michigan
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by archet1337 View Post
<li><a href="list.php?r=category/46-Birding" target="_blank">Birding</a></li>
Perfect! Thanks!:up: I was trying to put that on the front end and it was not working.
Reply With Quote
  #43  
Old 03-28-2010, 01:15 AM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by woffie View Post
I need the link to open in a new window. What do I need to change?
<li><a href="list.php?r=category/46-Birding" target="_blank">Birding</a></li>
Reply With Quote
  #44  
Old 04-11-2010, 10:38 PM
robert garrett robert garrett is offline
 
Join Date: Mar 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now the magic question How do I insert them between home and Forum?

RG
Reply With Quote
  #45  
Old 04-30-2011, 05:59 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Works perfectly, but the middle Code has a little Bug:
Code:
';
</li>
should be
Code:
</li>
';


Does anyone know how to change the HTML/CSS so it drops during hover instead of the click?

Thanks!
Bruno
Reply With Quote
  #46  
Old 04-30-2011, 06:01 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

... if you don't want guests to see this Tab add:
Code:
if (!$show['guest']) {
...
}
Reply With Quote
  #47  
Old 06-11-2011, 02:28 AM
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Location: Florida
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works in Version 4.1.4
Reply With Quote
  #48  
Old 07-02-2011, 09:56 PM
Truth66 Truth66 is offline
 
Join Date: Oct 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Two thumbs up from me.

I was definitely trying to find a drop down menu tab that was compatible with Firefox, Google Chrome and Internet Explorer.

Thanks a whole bunch.
Reply With Quote
  #49  
Old 08-22-2011, 04:06 AM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Mod! But is it possible to make Featured Articles clickable? For example, Featured Articles goes do main category and sub-links go to sub-categ0ries.

Thank you,
Reply With Quote
  #50  
Old 02-27-2012, 03:01 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. This works great!
Reply With Quote
  #51  
Old 09-21-2012, 08:58 PM
fanhockeycoach fanhockeycoach is offline
 
Join Date: Aug 2010
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it to work. I added the plugin now what?
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 09:49 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.06097 seconds
  • Memory Usage 2,330KB
  • 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
  • (2)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