Closed (fixed)
Project:
Karma
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2007 at 02:05 UTC
Updated:
24 Jul 2007 at 18:46 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | karma.module_1.patch | 10.41 KB | mcarbone |
| karma.module_0.patch | 10.12 KB | mcarbone |
Comments
Comment #1
mcarbone commentedSince ratings can now be up to 5, I added more options for 'minimum rating for trusted users,' adding 4.0 and 4.5.
Comment #2
drummI 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.
Comment #3
mcarbone commented$orig_karma built in.
Comment #4
(not verified) commented