bypass /admin/*
Jerry.Robinson - February 19, 2009 - 18:10
| Project: | Counter |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Is it possible to add the feature to bypass /admin/* to avoid admin functions from the hit counter?

#1
Also would like a feature to not count hits by certain user roles, such as the admin :P
#2
Hello! I'd also like this feature. Is it possible to realize it somehow?
Thanks a lot,
Chris
#3
@Jerry.Robinson:
Yes, it is possible. Just:
1. go to Administer- Site building - Blocks
2. Select "Counter" block - Configure
3. Choose "Show on every page except the listed pages" and enter: admin/*
With above setting Counter block will not show on any "admin/*" URL, so the hit will not counting too.
#4
ah good point, that would also work for roles and any visibility settings done with PHP :P
#5
Solved.
#6
Hi,
Sorry I had to open this up again. I've also set all my blocks including the counter block to not show on forum/* ....does that mean it hasn't been counting the forum hits too? Is there any other way I can have the counter not count my (admin) hits.
Also is there a way to reset the counter...i've looked but can't find any info on this anywhere.
Cheers!
#7
#8
In your case, Counter module will not count access to forum/* but forum hits store in another Drupal table. Mean, the forum hits still working.
"Is there any other way I can have the counter not count my (admin) hits" --> I will add this feature to 6.x-2.0
"Also is there a way to reset the counter" --> right now you can reset it by delete all row in "counter" table using PHPMyAdmin
#9
Counter 6.x-2.0 available now!
Please create new forum thread for bug reporting or feature request.
Thanks to all contributions to this module.