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

mercmobily’s picture

Hi,

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.

jedibfa’s picture

Thanks for the feedback. I will try the custom blocks solution.

mercmobily’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.