Hi Lynne,
I went through your artilce and successfully removed most navbar tabs (thanks !)
except i cannot remove the 'Forum' tab, i dont see the code that you specify needs to be removed from 'Navbar: Eval Blog Link Template and Validate Styleid', perhaps i am looking in the wrong place or because my version is new there is different code to removed. I have version. 4.1.9.
This is the code I have for 'Edit Plugin Navbar: Eval Blog Link Template and Validate Styleid'
----------
$show['canpostitems'] = (
$vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown']
AND
$vbulletin->userinfo['permissions']['vbblog_entry_permissions'] & $vbulletin->bf_ugp_vbblog_entry_permissions['blog_canpost']
AND
$vbulletin->userinfo['userid']
);
/*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 (STYLEID != $vbulletin->userinfo['blogstyleid'])
{
$vbulletin->userinfo['blocktext'] = '';
}
----------
Any help would be appreciated from anyone, thanks.
|