Jump to the post that solved this thread.
Solved: 9 Years, 4 Months, 1 Week ago Reduce inflated visitor counts
#1
Solved: 9 Years, 4 Months, 1 Week ago
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
Reply
#2
Solved: 9 Years, 4 Months, 1 Week ago
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
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#3
Solved: 9 Years, 4 Months, 1 Week ago
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
Reply
#4
Solved: 9 Years, 4 Months, 1 Week ago
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.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#5
Solved: 9 Years, 4 Months, 1 Week ago
(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
Reply
#6
Solved: 9 Years, 4 Months, 1 Week ago
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
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#7
Solved: 9 Years, 4 Months, 1 Week ago
(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
Reply
#8
Solved: 9 Years, 4 Months, 1 Week ago
(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
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)