The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[HOW TO - vB4] Remove the vB Default Navtabs
[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): 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> Other related articles of possible interest: [HOW TO - vB4] Create a New Tab in the navbar [HOW TO - vB4] Create your own vBulletin page |
#12
|
||||
|
||||
That's still exactly what the plugin is called in my 4.0.2 suite.
|
#13
|
|||
|
|||
Hi Lynn,
That all worked perfectly, thank you very much! |
#14
|
|||
|
|||
I don't see any product called "vBulletin CMS" either. I am not using Suite, just the Forum version if that makes any difference.
|
#15
|
||||
|
||||
Quote:
The Home and Blog tabs are only going to show if you have the Suite. |
#16
|
|||
|
|||
How do you remove the forums link from the CMS nav bar?
|
#17
|
|||
|
|||
Another Thank You - worked like a charm.
|
#18
|
|||
|
|||
Guys I would like to know how can I use only the CMS without Blog and Forum.
Is there a way I can deactivate the Forum? Thanks... |
#19
|
||||
|
||||
Um, I have no idea. Remove the tab? Remove the pages? Create no forums? Experiment with it on your test site.
|
#20
|
||||
|
||||
How would I remove the "Projects" tab from the Navbar? I want that only available through the User CP and on in the main navigation.
|
#21
|
||||
|
||||
I believe that was already asked and answered in the forum specifically for questions regarding Open Source product.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|