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

XF 1.4 Hide Members Tab

Discussion in 'Styling and Customization Questions' started by zeropaid, Oct 16, 2014.

  1. zeropaid

    zeropaid Member

    How do you hide the members tab while keeping the functionality of the member page?

    I'm using UI.X theme.
     
  2. rainmotorsports

    rainmotorsports Well-Known Member

    That theme will require specific changes. But for the most part you want to use a conditional to show the tab on the pages that use it and no others.

    You can wrap the member tab code in this, i did it like this except in a template modification. It is to show the code contained within ONLY if it matches these controllers that use it:
    Code:
    <xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Member' OR {$controllerName} == 'XenForo_ControllerPublic_Online' OR {$controllerName} == 'XenForo_ControllerPublic_RecentActivity'">
    
    
    </xen:if>
     
    zeropaid likes this.
  3. zeropaid

    zeropaid Member

    I didn't really want to modify any templates. This should be a setting in Users. It's really pointless and has not business being in the main navigation.
     
  4. rainmotorsports

    rainmotorsports Well-Known Member

    It's not a setting. You can put the board into debug mode and make a template modification.

    This is what I have for the stock/stock like theme code. You would need to adjust the find to match the template for UI.X and if your literally copy pasting the member code tab which may change in the future, may also require future updates to the template mod:

    upload_2014-10-15_22-57-23.png

    Find for stock:
    Code:
    <xen:if is="{$tabs.members}">
                <li class="navTab members {xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}">
               
                    <a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
                   
                    <div class="{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} membersTabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$tabs.members.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <ul class="secondaryContent blockLinksList">
                        <xen:hook name="navigation_tabs_members">
                            <li><a href="{xen:link members}">{xen:phrase notable_members}</a></li>
                            <xen:if is="{$xenOptions.enableMemberList}"><li><a href="{xen:link members/list}">{xen:phrase registered_members}</a></li></xen:if>
                            <li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
                            <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
                            <xen:if is="{$canViewProfilePosts}"><li><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></li></xen:if>
                        </xen:hook>
                        </ul>
                    </div>
                </li>
            </xen:if>
    Replace for stock:
    Code:
    <xen:if is="{$controllerName} == 'XenForo_ControllerPublic_Member' OR {$controllerName} == 'XenForo_ControllerPublic_Online' OR {$controllerName} == 'XenForo_ControllerPublic_RecentActivity'">
    <xen:if is="{$tabs.members}">
                <li class="navTab members {xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}">
               
                    <a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
                   
                    <div class="{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} membersTabLinks">
                        <div class="primaryContent menuHeader">
                            <h3>{$tabs.members.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <ul class="secondaryContent blockLinksList">
                        <xen:hook name="navigation_tabs_members">
                            <li><a href="{xen:link members}">{xen:phrase notable_members}</a></li>
                            <xen:if is="{$xenOptions.enableMemberList}"><li><a href="{xen:link members/list}">{xen:phrase registered_members}</a></li></xen:if>
                            <li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
                            <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
                            <xen:if is="{$canViewProfilePosts}"><li><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></li></xen:if>
                        </xen:hook>
                        </ul>
                    </div>
                </li>
            </xen:if>               
    </xen:if>
     
  5. Roronoa Zoro

    Roronoa Zoro Member

    There is a change you can make in options from Admin panel. Try Home>Options>User Options.
     

Share This Page