th_inc_view_count() [message #162579] |
Sat, 12 June 2010 02:18 |
art
Messages: 35 Registered: June 2009
Karma: 0
|
Member |
|
|
I have a question. I have noticed that the function th_inc_view_count($id) only increments the view count if the user viewing the thread is logged in. I guess this helps weed out search bots but it also weeds out about 95% of the human readers on my forum. How can I set it to increment the count even if the user isn't logged in?
|
|
|
|
|
|
|
|
|
|
Re: th_inc_view_count() [message #162595 is a reply to message #162587] |
Mon, 14 June 2010 20:50 |
The Witcher
Messages: 675 Registered: May 2009 Location: USA
Karma: 3
|
Senior Member |
|
|
The config setting is:
Admin Control Panel: > Global Settings Manager: > User Account Settings: >
Disable caching for anonymous users:
Disable sending of page-cache headers to anonymous users, this may solve extended caching by browsers non-complaint with web specs.
(If set to yes then anonymous users will be counted in the page views, if set to no then anonymous views will not be counted.)
It just depends on if you want every view to be counted or just those who are registered/logged in.
"I'm a Witcher, I solve human problems; not always using a sword!"
|
|
|