Is it possible to add the feature to bypass /admin/* to avoid admin functions from the hit counter?

Comments

danielb’s picture

Also would like a feature to not count hits by certain user roles, such as the admin :P

Glowy’s picture

Hello! I'd also like this feature. Is it possible to realize it somehow?

Thanks a lot,

Chris

drupalnesia’s picture

@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.

danielb’s picture

ah good point, that would also work for roles and any visibility settings done with PHP :P

drupalnesia’s picture

Status: Active » Closed (fixed)

Solved.

Terebinth’s picture

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!

Terebinth’s picture

Status: Closed (fixed) » Active
drupalnesia’s picture

  • 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
drupalnesia’s picture

Status: Active » Closed (fixed)

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.