The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
In ver 4.2.2 the navigation manager allows you to add a tab with a SINGLE Menu under it.
I would like the Main CMS Tab to automatically drop down (No click required) into the sections, then when the sections are shown if they have sub-sections, those would automatically open as well, expanding as needed. Basically, i don't want users inconvenienced with clicking menu button to get to see the full navigation structure. Unfortunately in the navigation manager, only 1 menu can be called per tab. I've looked at numerous threads but I can't find one that actually works. Here's what I would like it too do- see how it drops down, then expands at each menu item into a submenu (but I'd like this based on the current Section structure of the CMS) ![]() Ideas?? I've tried 5 different mods, none of them come close to doing this. --------------- Added 30 May 2015 at 09:09 --------------- Here's what I've gotten so far- AdminCP> Plugin Manager> New Plug-in Product: vb Hook Location: navigation_tab_complete Execution order 5 Plugin Code: Code:
$template_hook['navtab_end'] .= '
<div id='cssmenu'>
<ul>
<li class='active'><a href='#'>Products</a>
<ul>
<li><a href='#'>Product 1</a>
<ul>
<li><a href='#'>Sub Product</a></li>
<li><a href='#'>Sub Product</a></li>
</ul>
</li>
<li><a href='#'>Product 2</a>
<ul>
<li><a href='#'>Sub Product</a></li>
<li><a href='#'>Sub Product</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
;
I've also tried it this way: Code:
$template_hook['navtab_end'] .= '
<ul class="cssmenu">
<li class='active'><a href='#'>Products</a>
<ul>
<li><a href='#'>Product 1</a>
<ul>
<li><a href='#'>Sub Product</a></li>
<li><a href='#'>Sub Product</a></li>
</ul>
</li>
<li><a href='#'>Product 2</a>
<ul>
<li><a href='#'>Sub Product</a></li>
<li><a href='#'>Sub Product</a></li>
</ul>
</li>
</ul>
</li>
</ul>
;
If I try it with the hook location Parse_templates - I get a bootstrap error: /includes/class_bootstrap.php(430) : eval()'d code on line 39 It returns the same error. I've copied the CSS into the additional_Css template.. but I just can't get it to work.. any ideas?? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|