I have tried some stuff with it now, it seemed
https://vborg.vbsupport.ru/showthread.php?t=283123 bugged my navbar.
disabling this product made teams.php/tournaments.php etc. show the subnavbar again. However for my chatbox this is not the case.
By adding it to tab scripts it does only show Teams, Help, Rules, and itself Full Screen Chat so ladders/tournaments/new are missing.
I tried adding the lane as I suggested above and it now looks like :
Code:
if ($vbulletin->options['tmnt_navbar'] && $vbulletin->options['simpleversion'] < 4200)
{
if (THIS_SCRIPT === competitions OR THIS_SCRIPT === ladders OR THIS_SCRIPT === tournaments OR THIS_SCRIPT === tll_credits OR THIS_SCRIPT === tll_tickets OR THIS_SCRIPT === teams OR THIS_SCRIPT === kings OR THIS_SCRIPT === mgc_cb_evo)
{
$vbulletin->options['selectednavtab'] = 'competitions';
}
$template_hook['navtab_middle'] .= vB_Template::create('tmnt_navbar')->render();
}
if ($vbulletin->options['tmnt_quicklinks'])
{
$template_hook['navbar_quick_links_menu_pos4'] .= '<li><a href="competitions.php">'.$vbulletin->options['tmnt_modname'].'</a></li>';
}
I have also found another plugin named set_navigation_tab and it now looks like
Code:
if (in_array(THIS_SCRIPT, array('tournaments','teams','tll_tickets','tll_credits','kings','leagues','cstats','mgc_cb_evo') ))
{
foreach ($tabs AS $tbid => $tbinfo)
{
if ($tbinfo['url'] == 'competitions.php')
{
$tabid = $tbinfo['root'];
}
}
}
not sure if any other plugins need edits?