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 |
#32
|
||||
|
||||
I would post this question in the main forums. You'll need to figure out what to do about the search box also which isn't showing in your mockup.
|
#33
|
|||
|
|||
Tried this in 4.03, didn't like the replacement vb:if statement, some error about it being malformed .
I just did the second part with commenting out the large block of code, that did the trick, so now it's outta sight, outta mind . Thanks for the tips Lynne |
#34
|
||||
|
||||
Trying this in vB 4.0.5 and I get this message at the end when trying to save.
adding child to non-existent node! And it doesn't save. I did everything to the key but got that message. |
#35
|
||||
|
||||
If you got that message, then that means you removed the beginning <if> and not the ending </if> or vice versa.
|
#36
|
||||
|
||||
Lynne, I get this message:
Quote:
|
#37
|
|||
|
|||
Search for that at .com I think it is a bug. I came across it also. Just can't remember what I did to fix it. I think I had to stop saving css as files.
|
#38
|
||||
|
||||
Quote:
FYI, on my test site, I have Store CSS Stylesheets as Files set to No. |
#39
|
||||
|
||||
Ok i see my error, when i saw this: "a bunch more stuff" I was thinking you meant to skip that stuff and move to the next bit.
|
#40
|
||||
|
||||
Sorry about that. Glad you figured it out and got it working now.
|
#41
|
|||
|
|||
Thank You Lynne!
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|