Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I do like the improved stats this module gives the site. There are though two features that I believe would be very useful, especially for page counts.
- Role Filtering - Be able to set what roles that shall not affect the counter, including UID #1
- Own content - Option not to count up the users own content
Comment | File | Size | Author |
---|---|---|---|
#3 | adstats_role_counter.patch | 668 bytes | wrunt |
Comments
Comment #1
Dave ReidAdded ignoring counter visits by role. I'm not going to implement a special case for uid #1 since it is an un-Drupal way to handle those.
Comment #2
Dave ReidComment #3
wrunt CreditAttribution: wrunt commentedIt looks like this change only disabled access logging per role. The node counter still operates.
Comment #4
wrunt CreditAttribution: wrunt commentedHow bizarre, my comment was truncated. The rest of it reads:
Attached is a simple patch to correct this. Also note that user_access() always returns TRUE for uid #1 in Drupal, so it may be worth implementing a special case.
Comment #5
Dave ReidAccess log and node counter are two separate things. You can't put that in the check for excluding from the access log. There is already the 'exclude visits from counters' permission that should be used. Marking as fixed since this is all implemented.
Comment #6
Dave ReidI should note that this functionality is in the 6.x-1.x-dev version right now. I have yet to create a new release.
Comment #8
doublejosh CreditAttribution: doublejosh commentedSuper awesome great. Looking forward to this ('exclude visits from counters.')
Comment #9
littlemisssunshine CreditAttribution: littlemisssunshine commentedI've installed the dev version of this module (6.x-1.x-dev) and I can't seem to find the option to disable hits by the admin account.
Am I missing something?
Thanks.