There is a bug where if a user crosses the minimum karma threshold in either direction, the karma_comment_statistics were not updated for all their comments, even thought some of their comments could reappear or disappear in a node for untrusted users. This led to incorrect comment counts. This patch fixes that problem, and adds a configuration allowing the admin to adjust the max rating from either 3, 4 (default), or 5. This works fine for drop-down lists, but the presentation of the stars option need to be changed to work for a max of 3 or 5.

CommentFileSizeAuthor
#1 karma.module_1.patch10.41 KBmcarbone
karma.module_0.patch10.12 KBmcarbone

Comments

mcarbone’s picture

StatusFileSize
new10.41 KB

Since ratings can now be up to 5, I added more options for 'minimum rating for trusted users,' adding 4.0 and 4.5.

drumm’s picture

Status: Needs review » Active

I moved the hook_link comment back and changed a double space after a sentance to a single.

Otherwise, it would be nice to see $orig_karma built into that function so you don't have to think about that when calling it.

mcarbone’s picture

Status: Active » Fixed

$orig_karma built in.

Anonymous’s picture

Status: Fixed » Closed (fixed)