vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create a New Tab in the navbar (https://vborg.vbsupport.ru/showthread.php?t=226914)

Lynne 04-10-2011 09:20 PM

You would need to copy the submenu code from the navbar to add it to your tab. I think someone asked about this before recently, and they were pointed to ragtek's article about adding a navtab since he used a template and it was easier to copy/paste the code using his template method. So, you may want to check out his similar article.

Rebecca217 04-17-2011 01:19 AM

This tutorial was very helpful. Thank you!

K4GAP 04-28-2011 04:43 AM

As always, great article Lynne!

Thank you

TWood 05-03-2011 09:08 PM

Can this method be used to add a tab to the navbar that opens a new browser window to an external website? I don't need any submenus, just a link to another site in its own window.

Lynne 05-03-2011 10:15 PM

Yes. You just need the last line though:

HTML Code:

$template_hook['navtab_end'] .= '<li><a class="navtab" href="link.php" target="_blank">Link Name</a></li>' ;

TWood 05-03-2011 10:52 PM

Nice! Thanks!

The target="_blank" doesn't work to open a new browser window, at least not at my site:

Shout Street Click on 'Zip Code Maps'

Boofo 05-03-2011 11:07 PM

Sorry, the board is unavailable at the moment while we are testing some functionality.

We will be back soon...

TWood 05-03-2011 11:20 PM

Heh, but the navbar is still active for this, it works the same either way - board on or off.

Boofo 05-03-2011 11:47 PM

Okay, I just tried that link on my site with a target="_blank" in it and it opened another tab fine for me in Opera.

wowautoauctions 05-04-2011 12:55 AM

How can I make my new tab appear first in the list? Using 'navtab_start' makes it the second tab but not the first.

EDIT: Figured it out.. You add in navtab_start then change the execution order from 5 to 4.


All times are GMT. The time now is 01:13 AM.

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.01750 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete