View Full Version : Navbar managment
ps2wiz
01-07-2010, 06:08 AM
I am adding additional buttons in the navbar section, I need the extra room so I would like to remove the default "Whats New?" button. How do I go about doing this?
Thanks in advance.
Seven Skins
01-07-2010, 08:50 AM
Remove these lines form navbar template:
<vb:elseif condition="$show['member']" />
<li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_P ost">{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>
The Glue
01-16-2010, 12:54 PM
And for Blog and Forum?
Lynne
01-16-2010, 02:57 PM
The blog is a plugin - you can turn it off in the plugin manager. The forum is in the navbar template.
The Glue
01-16-2010, 06:08 PM
The blog is a plugin - you can turn it off in the plugin manager. The forum is in the navbar template.
but this means I disable blogs complete, that's not what I want to do. I want to replace that with the "vBH-Add new tabs" addon.
Lynne
01-16-2010, 06:12 PM
Um, no. The navbar is just one of the plugins within the product. If you disable the product, then the blogs will turn off. but if you just disable the one little plugin that creates the tab, then it will just turn off the tab.
ps2wiz
01-17-2010, 02:40 PM
The blog is a plugin - you can turn it off in the plugin manager. The forum is in the navbar template.
Where exactly is the option for this?
Thanks
Lynne
01-17-2010, 02:43 PM
Where exactly is the option for this?
Thanks
the option to turn off the blog navtab? Like I said, it's just a plugin. Just turn off the plugin called "Navbar: Eval Blog Link Template and Validate Styleid" That may also effect something to do with the styleid (although I'm not sure exactly what) so the other option is to just comment out these lines:
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();
}
}
ps2wiz
01-18-2010, 10:58 AM
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.