[HOW TO - vB4] Remove the vB Default Navtabs
Here is a quick article on how to remove some of the default vbulletin navtabs from the navbar template.
Removing the What's New navtab:
Find (near the top of the template):
Change to:
Find and Remove (about 2/3 down):
SAVE
In a default navbar template, after removing the chunk of code above, you should end up with this in the template where the code used to be:
Removing the Home navtab:
Go to Plugins & Products > Plugin Manager > Product: vBulletin CMS > Navbar: Insert CMS Navbar Entry
Plugin is Active: NO
SAVE
Removing the Blogs navtab:
Go to Plugins & Products > Plugin Manager > Product: vBulletin Blog > Navbar: Eval Blog Link Template and Validate Styleid
Find and Remove (or comment out):
SAVE
Removing the Forum navtab:
Find and remove (starts near the very top):
SAVE
Here is a quick article on how to remove some of the default vbulletin navtabs from the navbar template.
Removing the What's New navtab:
Find (near the top of the template):
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
Code:
<vb:if condition="!$vboptions['selectednavtab']">
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'"> <vb:if condition="$show['member']"> <li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_Post">{vb:rawphrase getnew_tab}</a> ... a bunch more stuff inbetween to remove ... </li> </vb:if> <vb:elseif condition="$show['member']" /> <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_Post">{vb:rawphrase getnew_tab}</a></li> <vb:else /> <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum_Post">{vb:rawphrase getnew_tab}</a></li> </vb:if>
In a default navbar template, after removing the chunk of code above, you should end up with this in the template where the code used to be:
Code:
{vb:raw template_hook.navtab_middle} {vb:raw template_hook.navtab_end}
Go to Plugins & Products > Plugin Manager > Product: vBulletin CMS > Navbar: Insert CMS Navbar Entry
Plugin is Active: NO
SAVE
Removing the Blogs navtab:
Go to Plugins & Products > Plugin Manager > Product: vBulletin Blog > Navbar: Eval Blog Link Template and Validate Styleid
Find and Remove (or comment out):
Code:
if (defined('VBBLOG_CACHED_TEMPLATES')) { if (defined('VBBLOG_SCRIPT')) { $vbulletin->options['selectednavtab'] = 'vbblog'; } $template_hook['navtab_middle'] .= vB_Template::create('blog_navbar_link')->render(); $template_hook['navbar_getnew_menu'] .= vB_Template::create('blog_navbar_whatsnew_link')->render(); if ($show['blog_search']) { $template_hook['navbar_search_menu'] .= vB_Template::create('blog_navbar_search')->render(); } }
Removing the Forum navtab:
Find and remove (starts near the very top):
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'"> ... a bunch more stuff inbetween to remove ... <vb:else /> <li><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a></li> </vb:if>