Steve038
04-20-2011, 10:41 PM
I'm new to this, and I've just messed up. I was following these instructions for creating new navigation tabs. https://vborg.vbsupport.ru/showthread.php?t=228313
When i got to the second section, 'Create a plugin', I stupidly changed the existing plugin 'Navbar: Insert CMS Navbar Entry', rather than creating a new plugin. Like I say, this is all new to me. But now my Home page tab has vanished. http://www.theroaringseason.com/forum.php
How do I get it back again? Below is the code I've now ended up with after trying to change it. Is there anything obviously wrong I need to correct to get my Home tab back?
if (defined('CMS_SCRIPT') AND class_exists('vBCms_Navbar'))
{
$vbulletin->options['selectednavtab'] = 'vbcms';
$template_hook['navtab_start'] .= vBCms_NavBar::renderView();
}
else
{
if (can_see_cms())
{
$template_hook['navtab_start'] .= vB_Template::create('vbcms_navbar_links')->render();
$template_hook['navbar_getnew_menu'] .= vB_Template::create('vbcms_navbar_whatsnew_link')->render();
}
}
--------------- Added 1303343496 at 1303343496 ---------------
Its OK, I've just figured it out. I'm an idiot!
When i got to the second section, 'Create a plugin', I stupidly changed the existing plugin 'Navbar: Insert CMS Navbar Entry', rather than creating a new plugin. Like I say, this is all new to me. But now my Home page tab has vanished. http://www.theroaringseason.com/forum.php
How do I get it back again? Below is the code I've now ended up with after trying to change it. Is there anything obviously wrong I need to correct to get my Home tab back?
if (defined('CMS_SCRIPT') AND class_exists('vBCms_Navbar'))
{
$vbulletin->options['selectednavtab'] = 'vbcms';
$template_hook['navtab_start'] .= vBCms_NavBar::renderView();
}
else
{
if (can_see_cms())
{
$template_hook['navtab_start'] .= vB_Template::create('vbcms_navbar_links')->render();
$template_hook['navbar_getnew_menu'] .= vB_Template::create('vbcms_navbar_whatsnew_link')->render();
}
}
--------------- Added 1303343496 at 1303343496 ---------------
Its OK, I've just figured it out. I'm an idiot!