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. |
#2
|
|||
|
|||
I believe I have the option to bump this every day or two, so I'm going do so and hope someone can help me finish this. If I can get the last part figured out then people will be able to do a lot more menu customization.
|
#3
|
|||
|
|||
I believe that you should ask in the modification(s) thread.
|
#4
|
|||
|
|||
Well, as this is asking for help with a template/code edit, and not how to edit or use that modification, I posted it here. It also doesn't help that the author of the modification thread (who can probably answer my question since he managed it with part of his modification for) hasn't been seen in a month and that his English isn't very good either.
|
#5
|
|||
|
|||
I'm sorry i will look over the mod and your post.
|
#6
|
|||
|
|||
No problem. Questions asked are questions answered... or so I hope :P
I tried fiddling around with the if conditional more earlier, but it leads me to believe my conclusions may be off. I don't know enough about code to understand how the mod author achieved it with his mod, although I can find the parts that must be relevant. For example, searching for "blog" in the xml product file leads to various code that somehow makes it so the blog button can be removed, without disabling the sub-navbar. If I could just understanding how it does what it does in that code I could answer my own question X_X |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|