XF 1.4 Notable Members tabs...

Can anyone tell me how we remove admin from being included in the counts on these tabs? We don't want to compete with our members for most points for example.

Thanks!!
 
Edit the member_notable template.

Add the orange code:
Rich (BB code):
<div class="section">
    <ol class="memberList">
        <xen:foreach loop="$users" value="$user">
            <xen:if is="!{$user.is_admin}">
                <xen:include template="member_list_item">
                    <xen:set var="$noOverlay">1</xen:set>
                    <xen:set var="$extraTemplate"><xen:if is="{$bigKey}"><span class="bigNumber">{xen:number {$user.{$bigKey}}}</span></xen:if></xen:set>
                </xen:include>
            </xen:if>
        </xen:foreach>
    </ol>
</div>

That will removed administrators from all tabs.

If you want to keep administrators on the staff tab, but remove them from all others, use this instead:
Rich (BB code):
<div class="section">
    <ol class="memberList">
        <xen:foreach loop="$users" value="$user">
            <xen:if is="!{$user.is_admin} OR {$type} == 'staff'">
                <xen:include template="member_list_item">
                    <xen:set var="$noOverlay">1</xen:set>
                    <xen:set var="$extraTemplate"><xen:if is="{$bigKey}"><span class="bigNumber">{xen:number {$user.{$bigKey}}}</span></xen:if></xen:set>
                </xen:include>
            </xen:if>
        </xen:foreach>
    </ol>
</div>
 
Back
Top Bottom