fix for karma_comment_statistics update & configurable rating ranges
mcarbone - January 16, 2007 - 02:05
| Project: | Karma |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
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.
| Attachment | Size |
|---|---|
| karma.module_0.patch | 10.12 KB |

#1
Since ratings can now be up to 5, I added more options for 'minimum rating for trusted users,' adding 4.0 and 4.5.
#2
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.
#3
$orig_karma built in.
#4