1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

add a tab for style chooser

Discussion in 'Styling and Customization Questions' started by justwordme, Dec 7, 2011.

  1. justwordme

    justwordme Active Member

    How can I create a tab and link the style chooser to the tab?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> navigation

    Add the red code:

    						<li><a href="{xen:link help/trophies}">{xen:phrase trophies}</a></li>
    		<xen:if is="{$canChangeStyle}">
    		<!-- style chooser -->
    		<li class="navTab PopupClosed"><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger navLink" rel="nofollow">{xen:phrase style}: {$visitorStyle.title}</a></li>
    		<!-- 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'}">
    				<a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>
    				<a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
    This needs to be added to each style.

    The result:

    Screen shot 2011-12-07 at 3.35.02 AM.png
    DSF likes this.
  3. justwordme

    justwordme Active Member

    Nice thank you very much. Hey how can I relabel the button to "Style Chooser"? instead of the name of the Style
  4. Fuhrmann

    Fuhrmann Well-Known Member

    In the code that Jake wrote to you, look for:

    {xen:phrase style}
    And replace with this:

    {xen:phrase style_chooser}
    To not show the title of the style, delete the code:

    So the title of the style will not appear. Just the phrase.
    rafass and justwordme like this.
  5. justwordme

    justwordme Active Member

    Awsomeness thank you guys :~)
    Fuhrmann likes this.

Share This Page