• 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

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> navigation

Add the red code:

Code:
						<li><a href="{xen:link help/trophies}">{xen:phrase trophies}</a></li>
					</xen:hook>
					</ul>
				</div>
			</li>
		</xen:if>
		
		<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>
		</xen:if>
		
		<!-- 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
 

Fuhrmann

Well-known member
#4
In the code that Jake wrote to you, look for:

Code:
{xen:phrase style}
And replace with this:

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

Code:
{$visitorStyle.title}
So the title of the style will not appear. Just the phrase.