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.
|
This tutorial was very helpful. Thank you!
|
As always, great article Lynne!
Thank you |
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.
|
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>' ; |
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' |
Sorry, the board is unavailable at the moment while we are testing some functionality.
We will be back soon... |
Heh, but the navbar is still active for this, it works the same either way - board on or off.
|
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.
|
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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|