Remove admin from top contributors block

walker2238 - October 15, 2008 - 02:06
Project:User Points Top Contributors
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Like the title says... How do I remove the admin (super user) from being displayed in this block?

#1

kmillecam - October 15, 2008 - 02:58

There's a supporting module that I believe still comes with User Points called "userpoints exempt" it basically keeps your site's admins and managers from earning roles (by designating a role or roles that don't earn points).

This would be a way to keep the superuser from earning points and therefore from showing up on the top contributors lists.

#2

walker2238 - October 15, 2008 - 03:28

Hey thanks but I tried that. From what I'm seeing it does not exclude the super user account... It seems to exclude whatever role you have created, but not the super user. I also tried adding a WHERE uid != 1 and also pretty much the same thing WHERE uid > 1 which does work except the problem becomes the ranks... so if the superuser was ranked 5... him/her would be removed and thus making that top rankings go 1, 2, 3, 4, 6, 7, 8, 9, 10, 11... Leaving the 5 out... Which does look bad if your title says top 10...

 
 

Drupal is a registered trademark of Dries Buytaert.