By default when i just installed vbulletin publisher suite, theres a "home", "forum", "blogs" and "What's New?" tab on the website, how do i add in more tab?
Tab
Collapse
X
-
Create a plugin using the "process_templates_complete" hook with similar code like this.
Change "WHENEVER_TO_SHOW_SUBMENU" to whatever condition you want for showing the submenu.
Change "tab_name" to whatever you want to call it.
Change "tab_template" to whatever you want the template to be called.
Code:if (WHENEVER_TO_SHOW_SUBMENU) { $vbulletin->options['selectednavtab'] = 'tab_name'; } $template_hook['navtab_middle'] .= vB_Template::create('tab_template')->render();
Code:<vb:if condition="$vboptions['selectednavtab'] == 'tab_name'"> <li class="selected"> <a class="navtab" href="link.php">Tab Name</a> <ul class="floatcontainer"> <li><a href="link.php">Sub-menu items</a></li> </ul> </li> <vb:else /> <li><a class="navtab" href="link.php">Tab Name</a></li> </vb:if>
-
You obviously have to change link.php to wherever you want it to link.Comment
-
Create a plugin using the "process_templates_complete" hook with similar code like this.
Change "WHENEVER_TO_SHOW_SUBMENU" to whatever condition you want for showing the submenu.
Change "tab_name" to whatever you want to call it.
Change "tab_template" to whatever you want the template to be called.
Code:if (WHENEVER_TO_SHOW_SUBMENU) { $vbulletin->options['selectednavtab'] = 'tab_name'; } $template_hook['navtab_middle'] .= vB_Template::create('tab_template')->render();
Code:<vb:if condition="$vboptions['selectednavtab'] == 'tab_name'"> <li class="selected"> <a class="navtab" href="link.php">Tab Name</a> <ul class="floatcontainer"> <li><a href="link.php">Sub-menu items</a></li> </ul> </li> <vb:else /> <li><a class="navtab" href="link.php">Tab Name</a></li> </vb:if>
Comment
Related Topics
Collapse
-
by HowToEveryWhen I'm in a page in my website the navigation herarchy goes through "HomePage" > "Forum" > etc.
Of course it's a forum, the site is a forum, so this is unnecessary. Is...-
Channel: Support Issues & Questions
Thu 9 Jun '16, 6:21am -
Comment