Closed (works as designed)
Project:
Statistics Pro
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2010 at 00:37 UTC
Updated:
11 Aug 2010 at 11:24 UTC
It would be great to be able to add (an optional) flags counter to the list of statistics. This way people could have granular statistics for different flag types along with the rest of statistics. This would cover the majority of counter based things within drupal (flags, comments, nodes).
It shouldn't be hard to add considering flag counter is similar to the node counter in terms of how stats are saved.
Would this be a possibility for addition?
Comments
Comment #1
rsevero commentedA possiblity for sure.
Are you referring to flags generated by the Flag module?
I've never used it, don't know it.
Comment #2
cerup commentedYes, sorry I wasn't more specific.
I'm talking flags generated by the Flag module. Every time a node/user/etc is flagged it adds a count to that specific flag counter. It works basically the same way node counter works so it would be simple to add support I believe. When a node is flagged, it just adds 1 to the count (just like a view of a node adds 1).
Comment #3
cerup commentedAny chance of this making it into a future version. I'm unable to switch to this module (from my custom one) unless it supports flags also.
Comment #4
rsevero commentedCould you provide a proper patch?
Comment #5
cerup commentedI'll have to see if I'd be capable. From looking at the code, it's a little more complex than I'm used to, but i'll see what I can do. The flags table is very similar to comments/nodes in terms of keeping count.
Comment #6
rsevero commentedPlease reopen if a patch is available.