The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[Guide][Help Request]How to customize your menu into dropdown menus
Ok, I've been spending a while trying to figure this out, and while I am not a programmer by any means I have made progress and want to share it. Hopefully someone will be able to fill in the final pieces so that I can turn this into a complete guide for others.
Here is what I am trying to do:
The Problem: Normally when you remove a tab from the navbar it completely removes the sub-navbar, even when on the pages. Most people recommend removing the tabs by disabling a plug-in, or by using a different modification (such as one that removes the Home, Forum, Blog, or What's New tabs), but those tend to remove the sub-navbars as well. For example, let's say you are using DownloadsII. If you want to remove the tab, you can go into your plug-ins list and disable "DownloadsII: Add a Downloads tab." If you do this, and then go to your downloads page, it no longer displays anything in the sub-navbar. Here is what I have done so far:
After that it starts to get tricky. The dropdown menus are the only menus that load, which is half of the effect that I wanted to achieve. The problem here is that the sub-navbars do not load. I have added the removed tabs' links into the new dropdown menus via the modification's Admin CP area, so the links are all there to the original pages, but enclosed within the dropdown menus. I discovered that after the {vb:raw template_hook.navtab_start} hook, as well as the others, there is a line of code that looks like this: Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'"> Code:
<vb:if condition="THIS_SCRIPT != 'search'">
With all of that said, is there anyone out there with the code understanding to tell me what I am missing at the end of all of this? I feel like I'm so close to reaching my goal. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|