Closed (fixed)
Project:
User Karma
Version:
5.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2008 at 20:37 UTC
Updated:
7 May 2008 at 14:33 UTC
I have a site I am setting up and for the time being at least (and possibly for a long time) the admin user executes a number of events that generate karma. So much so that I am afraid their karma will overshadow the "real" users of the site. Is there an easy way to exclude the admin userid from the Best Karma Users block, and preferably from even being awarded karma in the first place?
Thanks!
Comments
Comment #1
mercmobily commentedHi,
There is no current way to prevent "admin" from showing, nor preventing "admin" from getting karma :-/
I am not sure how to get around it. It would need a patch, but I really don't think a lot of people would find it useful and...
What *I* would do, is create a tiny module basically copying drigg_blocks.module , and changing the query very slightly to exclude specific users (in your case, uid 1). OR, what most people would try and do, would be install "views" and get the list of best karma users that way. However, I have never used "views" so I am not sure.
I will accept a patch that allows you to specify which users NOT to consider, as long as:
*) The configuration happens in the block
*) The code is neat, and uses the drigg_fix_number_list() to check the list of UIDs
*) It's fully tested (see: It works if there aren't any IDs, etc.)
I can also code this, but since it's a specialised feature, I will have to charge $60/hour. It will take me 2 hours, code + testing. Again, I will never ask for a bounty for features that are general-purpose, but I don't feel this one is.
Bye,
Merc.
Comment #2
jedibfa commentedThanks for the feedback. I will try the custom blocks solution.
Comment #3
mercmobily commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.