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

Reply
 
Thread Tools
NJAquaman - Main Nav Tabs Details »»
NJAquaman - Main Nav Tabs
Version: 1.4, 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-04-2010 Last Update: Never Installs: 31
Uses Plugins
Re-useable Code Translations  
No support by the author.

What: A Simple Nav Tab Plugin to Add a 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
Execution Order : 5

3) Insert the Code;

For Tabs On the Right Side Use This Code:
Code:
$template_hook['navtab_end'] .= '
<li><a href="http://www.google.com" class="navtab">Google </a></li>
<li><a href="http://www.yahoo.com" class="navtab">Yahoo </a></li>
';
For Tabs in the Middle Use This Code:
Code:
$template_hook['navtab_middle] .= '
<li><a href="http://www.google.com" class="navtab">Google </a></li>
<li><a href="http://www.yahoo.com" class="navtab">Yahoo </a></li>
';
For Tabs On the Left Side Use This Code:
Code:
$template_hook['navtab_start'] .= '
<li><a href="http://www.google.com" class="navtab">Google </a></li>
<li><a href="http://www.yahoo.com" class="navtab">Yahoo </a></li>
';
4) Save , Now you Have a Nav Tab!

Notes:
- "Google" or "Yahoo" is the tab names
- To Create More Tabs Duplicate it under the Same "$template_hook['navtab_end']" Tag
- YOU MAY Duplicate it in the same Plugin
- You can use both Left and Right codes at the same time!



Screen Shot!

Attachment 109193



DONT FORGET TO CLICK INSTALL


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

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

v1.2 - 01.05/10
- Both Right and Left Sides (Zaiaku)

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




Here Are Some Other Versions:

Main Nav Tab Drop Down
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
  #12  
Old 01-05-2010, 06:40 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zaiaku View Post
Would be nice to be able to do this on both sides.
Great Idea! Updated it !

Thanks!
Reply With Quote
  #13  
Old 01-05-2010, 06:57 PM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I already figured it out about 6 mins after I posted that inquiry. lol.
Reply With Quote
  #14  
Old 01-05-2010, 07:02 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zaiaku View Post
Yeah I already figured it out about 6 mins after I posted that inquiry. lol.
Good Job!
Reply With Quote
  #15  
Old 01-12-2010, 04:26 PM
spartan1123 spartan1123 is offline
 
Join Date: Jun 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can it be made to highlight the current tab?
Reply With Quote
  #16  
Old 01-19-2010, 01:25 AM
stable2 stable2 is offline
 
Join Date: Feb 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I was looking for! Installed. Thanks.
Reply With Quote
  #17  
Old 01-20-2010, 10:51 AM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stable2 View Post
Just what I was looking for! Installed. Thanks.

Thank you Glad i could Help!
Reply With Quote
  #18  
Old 01-25-2010, 02:35 AM
Xeon3D Xeon3D is offline
 
Join Date: Dec 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So anyway it can be highlighted like the rest of the original ones?

Anyone found any product/plugin/template mod that does this?
Reply With Quote
  #19  
Old 06-09-2010, 03:57 PM
discuit discuit is offline
 
Join Date: Jul 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks chief. Well done
Reply With Quote
  #20  
Old 11-17-2010, 06:16 AM
intruder intruder is offline
 
Join Date: Oct 2006
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice and simple mod. How can I have the tab hovered when pointing to a internal page?
Reply With Quote
  #21  
Old 01-20-2013, 10:59 AM
FTG LIQUID CL FTG LIQUID CL is offline
 
Join Date: Jan 2012
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANKS...WORKS GREAT!!
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 03:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09073 seconds
  • Memory Usage 2,321KB
  • 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
  • (3)bbcode_code
  • (3)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
  • (1)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