Quote:
Originally Posted by Sarcoth
Yea, I mentioned that it would still show up when on the roster. There is some code you could remove at the bottom of the php file, but I can't look at it now. That would remove it from the roster as well. You can change the name of it with some edits to the code, but again, I'd need to look at the code. Just look for something like 'Roster' in the php file. I will be adding it to the options in the next version though.
|
I just removed the following from the showroster.php and the tab is now gone:
PHP Code:
// ###SPECIAL NAVBAR############################################################
$accessgroups = explode(',', $vbulletin->options['showroster_access_groups']);
$navbarloc = $vbulletin->options['showroster_navbar_loc'];
switch ($navbarloc) {
case '1':
$nbloc = 'navtab_start'; break;
case '2':
$nbloc = 'navtab_middle'; break;
case '3':
$nbloc = 'navtab_end'; break;
}
if (THIS_SCRIPT == 'showroster') {
$vbulletin->options['selectednavtab'] = 'showroster';
}
$templater = vB_Template::create('showroster_navbar');
$templater->register('sorturl', $sorturl);
$templater->register('accessgroups', $accessgroups);
$templater->register('columns', $columns);
$templater->register('sortgroupfield', $sortgroupfield);
$templater->register('oppositesort', $oppositesort);
$template_hook[$nbloc] .= $templater->render();
// ###SPECIAL NAVBAR############################################################