Quote:
Originally Posted by anwar.abdullakh
can anyone tell me how I can't exclude admins from this top stats?
|
I did this by modifying the code (AdminCP - Plugin Manager) select "Top XXX" and append a WHERE clause to the SQL statement.
My statement now reads:
$db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid <> 1 ORDER BY reputation DESC LIMIT 0, $adet");
This omits the main admin user. As for all admins, you'd have to exclude the usergroup, vs the userid.
Good luck.