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

Open profile page at selected tab?

Discussion in 'XenForo Questions and Support' started by Jaxel, Jan 3, 2013.

  1. Jaxel

    Jaxel Well-Known Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You need to edit this template:

    Admin CP -> Appearance -> Templates -> member_view

    And change the order of the tabs in the HTML. There are two areas. There are the tabs themselves:

    			<ul class="tabs mainTabs Tabs" data-panes="#ProfilePanes > li" data-history="on">
    				<li><a href="{$requestPaths.requestUri}#profilePosts">{xen:phrase profile_posts}</a></li>
    				<xen:if is="{$showRecentActivity}"><li><a href="{$requestPaths.requestUri}#recentActivity">{xen:phrase recent_activity}</a></li></xen:if>
    				<li><a href="{$requestPaths.requestUri}#postings">{xen:phrase postings}</a></li>
    				<li><a href="{$requestPaths.requestUri}#info">{xen:phrase information}</a></li>
    				<xen:if is="{$warningCount}"><li><a href="{$requestPaths.requestUri}#warnings">{xen:phrase warnings} ({xen:number $warningCount})</a></li></xen:if>
    				<xen:hook name="member_view_tabs_heading" params="{xen:array 'user={$user}'}" />
    And there is the content of the tabs which is a separate list containing blocks like this:

    				<li id="warnings" class="profileContent" data-loadUrl="{xen:link members/warnings, $user}">
    					{xen:phrase loading}...
    					<noscript><a href="{xen:link members/warnings, $user}">{xen:phrase view}</a></noscript>
    Note that I once tried setting one of the AJAX tabs as the first tab and it didn't work. But the info tab should work.
    sami simo likes this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page