Just for future reference (and this pertains to ALL addons)
There are 3 dynamic insert positions for Tabs.
<!-- extra tabs: home -->
<!-- extra tabs: middle -->
<!-- extra tabs: end -->
home = inserted between the HOME Tab and FORUM Tab.
middle = inserted between the FORUM tab and MEMBERS tab
end = inserted after the MEMBERS Tab
Addon use a listener to inject a tab into one of those three positions by adding values into the $extraTabs array.
Here is an example of the one for showcase. As you look at the below code, you will see an array key named 'position' and its assignment value is 'middle'. If you changed that to 'end', the showcase tab would display after the MEMBER tab. If you set it to 'home' it would display after the HOME Tab and before the FORUM Tab.
PHP:
class NFLJ_Showcase_CodeEventListener_NavTab
{
public static function createTab(array &$extraTabs, $selectedTabId)
{
$visitor = XenForo_Visitor::getInstance();
if ($visitor->hasPermission('nfljsc', 'viewShowcase'))
{
$extraTabs['showcase'] = array(
'title' => new XenForo_Phrase('nflj_showcase_menu_main_tab'),
'href' => XenForo_Link::buildPublicLink('showcase'),
'position' => 'middle',
'linksTemplate' => 'nflj_showcase_tab_links'
);
}
}
}
As far as ORDER goes for dynamically inserted tabs, each listener has a Callback Execution Order. The default is set at 10, which most addon developers just leave it set at. However, you can (in debug mode) via the development tab >> Code Event Listeners >> edit the navigation_tabs listener for each addon and adjust the Callback Execution Order to set the order of the tabs the way you want them. I'd personally only increase them in steps of 1, not 1000s lol
so if you had 3 dynamically inserted tabs in the middle and you want them in a specific order, edit each one of those navigation_tabs listeners and set one to 11, one to 12 and one to 13 and they should appear in the order you want them to
too much info?