Slavrix
Member
hi, ive gotten adding tabs to my navbar working using
http://xenforo.com/community/threads/add-own-navigation-tabs.5265/page-7
however im not sure how to go about making the tab stay highlighted when its the active tab.
thats my class
ive made a new listener which works fine also, the tabs all work, its just they dont stay highlighted when i click them
http://xenforo.com/community/threads/add-own-navigation-tabs.5265/page-7
however im not sure how to go about making the tab stay highlighted when its the active tab.
Code:
<?php
class XenForo_myCustoms_myTabs
{
public static function addNavbarTab(array &$extraTabs, $selectedTabId)
{
$extraTabs['irc'] = array(
'title' => new XenForo_Phrase('myNavBar_irc_title'),
'href' => XenForo_Link::buildPublicLink('pages/irc'),
'selected' => ($selectedTabId == 'irc'),
'linksTemplate' => 'myNavBar_irc_title',
'position' => 'middle'
);
}
}
thats my class
ive made a new listener which works fine also, the tabs all work, its just they dont stay highlighted when i click them
Last edited: