C Chassey Group Member Dec 10, 2014 #1 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!!
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!!
P Paul B XenForo moderator Staff member Dec 10, 2014 #3 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> Upvote 0 Downvote
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>
C Chassey Group Member Dec 11, 2014 #4 Wonderful!!! Thanks so much, Brogan!! It worked!! Last edited: Dec 11, 2014 Upvote 0 Downvote