Notifications
Clear all

How to Remove the vB Default Navtabs

1 Posts
1 Users
0 Reactions
120 Views
(@cipher5)
Posts: 152
Member Admin
Topic starter
 

Here is a quick article on how to remove some of the default vbulletin navtabs from the [I]navbar[/I] template.

[B]Removing the [COLOR=red]What’s New[/COLOR] navtab:[/B]

Find (near the top of the template):
Code:
[php]
[/php]
Change to:
Code:
[php]
[/php]
Find and Remove (about 2/3 down):
Code:
[php]

  • {vb:rawphrase getnew_tab}

    a bunch more stuff inbetween to remove
  • {vb:rawphrase getnew_tab}
  • {vb:rawphrase getnew_tab}
  • [/php]
    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:
    Code:
    [php]
    {vb:raw template_hook.navtab_middle}

    {vb:raw template_hook.navtab_end}[/php]
    [B]Removing the [COLOR=red]Home[/COLOR] navtab:[/B]
    Go to Plugins & Products > Plugin Manager > Product: vBulletin CMS > Navbar: Insert CMS Navbar Entry
    Plugin is Active: NO
    SAVE

    [B]Removing the [COLOR=red]Blogs[/COLOR] navtab:[/B]
    Go to Plugins & Products > Plugin Manager > Product: vBulletin Blog > Navbar: Eval Blog Link Template and Validate Styleid
    Find and Remove (or comment out):
    Code:
    [php]
    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();
    }
    }
    [/php]
    SAVE

    [B]Removing the [COLOR=red]Forum[/COLOR] navtab:[/B]

    Find and remove (starts near the very top):
    Code:
    [php]


    a bunch more stuff inbetween to remove

  • {vb:rawphrase forum}
  • [/php]
    SAVE

     
    Posted : 17/02/2020 1:23 pm
    Share: