Thanks again for your help Lynne. Are plugins preferable over modifications? I assume they're also more difficult for novices like me?
--------------- Added [DATE]1303341902[/DATE] at [TIME]1303341902[/TIME] ---------------
OK, I've messed this thing up completely and now my Home page tab has vanished. I changed the existing Plugin Manager, and I'm guessing I was supposed to create a new one. This is so frustrating! All I want to do is change my tab targets, and I've ended up messing things up completely. I wish this process was easier. Hopefully someone can help me with this. Here is how my Plugin PHP Code now looks, what have I done wrong and how do I get my Home page 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();
}
}
|