MyBB Community Forums

Full Version: Reduce inflated visitor counts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If a user reads a thread multiple times the counter increments each time. Is there any way to limit that to just 1 count on the same day? Or at least on the same log In?

Thanks,

Swede
This old thread has a similar request: http://community.mybb.com/thread-110289-...02640.html

The solution involves modifying a core file.


https://github.com/mybb/mybb/blob/featur...d.php#L684
Thanks your reply. I had already modified the showthread.pho due to a previous query asking how to stop search spiders from incrementing the count. (added  $session->is_spider).

Thanks,

Swede
So was that reply suitable for your needs? You could always consider using the patches and plugin library plugins to make edits to core files easier to manage.
(2015-09-10, 04:24 PM)Leefish Wrote: [ -> ]So was that reply suitable for your needs? You could always consider using the patches and plugin library plugins to make edits to core files easier to manage.

No, it didn't point to a way to achieve what I wanted (to limit the counter to 1 increment if a user visits the same thread multiple times in a day or login.) Apparently it would require extensive programming.

However I marked it as 'best Answer" as it did point to the "cure" to keep SearchBots from incrementing and did answer my question adequately, though it wasn't what I wanted to hear. {sigh}

Swede
I thought it might not be entirely adequate Sad It is because MyBB does not actually measure the thread visits on a time axis, so at the very least a second database table would be needed to store the threads views in time, and even then the actual user is not visible.

This sort of solution is old but MIGHT help. I would not do this on my production board without extensive testing :

http://community.mybb.com/thread-2349-po...#pid119726
(2015-09-10, 06:14 PM)Leefish Wrote: [ -> ]I thought it might not be entirely adequate Sad It is because MyBB does not actually measure the thread visits on a time axis, so at the very least a second database table would be needed to store the threads views in time, and even then the actual user is not visible.

This sort of solution is old but MIGHT help. I would not do this on my production board without extensive testing :

http://community.mybb.com/thread-2349-po...#pid119726

Thanks. I'm going to keep that solution in my pocket for now. Still a newby at this and am reluctant to tackle too much until I get more comfortable with everything.

 Noticed the thread is 8 years old. Would that info still be relevant today?

Thanks,

Swede
(2015-09-10, 06:59 PM)Swede Wrote: [ -> ] Noticed the thread is 8 years old. Would that info still be relevant today?

Thanks,

Swede

I think it might work. Try it on your local host, and do try the patches plugin

https://github.com/frostschutz/MyBB-Patches