Resource icon

How to add a custom Tab

AppleJack

New member
Ever want your user upgrades to have their own tab? well look no futher.

You will need to go
Admin Cp --> Appearance --> style --> Your Skin-->Templates

Once your in templates go to "navigation"
Search for this once your in navigation



Code:
<!-- extra tabs: end -->
        <xen:if is="{$extraTabs.end}">
        <xen:foreach loop="$extraTabs.end" key="$extraTabId" value="$extraTab">
            <xen:if is="{$extraTab.linksTemplate}">
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">




Right above it add this code


Code:
<li class="navTab PopupClosed"><a href="{xen:link account/upgrades}" class="navLink">Premium</a></li>

and boom your own tab for user upgrades
 
how do you get your tab to be selected when you are on the page of the tab?

I tried this but it doesn't work
HTML:
<li class="navTab  {xen:if $articles.selected, 'selected', 'PopupClosed'}"><a href="{xen:link articles}" class="navLink">Articles</a></li>
When I click the tab it takes me to the articles page but the tab is not selected
 
how do you get your tab to be selected when you are on the page of the tab?

I tried this but it doesn't work
HTML:
<li class="navTab  {xen:if $articles.selected, 'selected', 'PopupClosed'}"><a href="{xen:link articles}" class="navLink">Articles</a></li>
When I click the tab it takes me to the articles page but the tab is not selected
a xenforo node page? ttp://xenforo.com/community/resources/nodes-as-tabs.9/

if it's a something else, you need a own route and a plugin for this
http://xenforo.com/community/threads/add-own-navigation-tabs.5265/
 
Is there a way to make this extra tab just a simple link to my blog? Or perhaps having it open in a new tab?
 
I wonder if there is way to do more user group tabs (for no upgraded users), please contact me if someone can help!
 
Top Bottom