View Full Version : Different Navtab hooks
A Dead Puppie
05-17-2014, 04:03 AM
I'm using a plugin to create a dropdown in the navbar and I don't want it to be at the end of the navbar.
The plugin code i'm using is global $template_hook;
$newTemplate = vB_Template::create('dropdown');
$template_hook['navtab_end'] .= $newTemplate->render();
Are there other navtab hooks or another way I can change the position?
A Dead Puppie
05-17-2014, 04:42 AM
That creates menus under the navbar on that specific page. I want a dropdown directly from the menu, just not at the end. Look at my site (http://www.machinimaevolved.net). The "Resources" tab, i want to be elsewhere.
vBNinja
05-17-2014, 04:51 AM
You can use navtab_start or navtab_middle too
A Dead Puppie
05-17-2014, 04:58 AM
You can use navtab_start or navtab_middle too
navtab_middle does not work
tbworld
05-17-2014, 05:15 AM
On vBulletin v4.2x there is no 'navtab_middle'. Prior to that there was, so @vBNinja is not exactly wrong .
-There is better talent around here then I, so maybe someone else knows something. :)
vBNinja
05-17-2014, 06:05 AM
oh right 4.2, where they re-did the nav system..
Well in that case you have to add the tab through the Navigation Manager:
http://YOURDOMAIN.COM/admincp/navigation.php
Lynne
05-17-2014, 04:24 PM
Question to the OP - why aren't you adding this via the Navigation Manager instead of a plugin?
tbworld
05-17-2014, 05:47 PM
@Lynne is right, again!:)
Because @Lynne pointed this out, I rechecked v4.2.1 and a drop-down menu on the main tab (of course) is included. I was pretty sure they added it, I just did not set it up right in the first place. I added drop-downs to the navigation software on my own system in v4.2.0, so it confused me.
vBulletin v4.2.1 Release Changes
http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/3962834-vbulletin-4-2-1-full-has-been-released
It is not obvious in the navigational setup as it is not defined in the attachment drop-down selection box, but in the main setup area, but only after you attach a sub-menu.
Look for this line on the navigational menu - main tab page.
A sub-menu for this tab must be created before this option can be used.
Thanks @Lynne :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.