I would also say that.Oleg wrote:I would say a view by a bot still counts as a view.
[RFC] validate topic view count using javascript
Re: [RFC] validate topic view count using javascript
Re: [RFC] validate topic view count using javascript
From what I see the problem here is that some of you don't consider views to be an important stat. So, for a minute just imagine it is, like it is for a lot of people. Do you think Youtube consider bot views part of their actual views?
No user want to know how many times a bot visited anything, it's worse if you mix human and bot views. It makes the stat unreliable.
No user want to know how many times a bot visited anything, it's worse if you mix human and bot views. It makes the stat unreliable.
Slightly better English than it was in 2005, still improving
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] validate topic view count using javascript
Maybe a permission for incrementing views that can be set for bots would be enough? We already have a similar permission:
An additional permission could be "Can increment topic views". Then those that do not want bots incrementing topic views can just set this permission to "Never" for the Bots group.Increment post counter
Please note that this setting only affects new posts.
Re: [RFC] validate topic view count using javascript
Could be the best solution, making it optional for each board as to whether to include bot views or not.DavidIQ wrote:Maybe a permission for incrementing views that can be set for bots would be enough?
- nickvergessen
- Former Team Member
- Posts: 733
- Joined: Sun Oct 07, 2007 11:54 am
- Location: Stuttgart, Germany
- Contact:
Re: [RFC] validate topic view count using javascript
I would say, let's place an event before the code where we increment it, so extensions can modify this, because I don't see much use in adding another permission for stuff like this.
And apart from that, I think that
And apart from that, I think that
Can increment topic views
sounds a bit misleading?!Member of the Development-Team — No Support via PM
Re: [RFC] validate topic view count using javascript
It not just bots to worry about, the topic author can refresh the page as many times as he want to views counter higher than it really is.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] validate topic view count using javascript
Well...that's technically a view.
I think adding the event location as nick said will be the best thing here. That way whoever wants to do all sorts of crazy things with topic views, including tracking who viewed the topic and if the views should be incremental based on that then you can knock yourself out.
I think adding the event location as nick said will be the best thing here. That way whoever wants to do all sorts of crazy things with topic views, including tracking who viewed the topic and if the views should be incremental based on that then you can knock yourself out.
Re: [RFC] validate topic view count using javascript
Ok that would be best then, would hooks support permissions as well?
As with location I'm thinking before and after the increment code
So that one can do some checking, increment view count and then do some after increment events such as adding name to a table of who viewed topic and how many times for example.
As with location I'm thinking before and after the increment code
So that one can do some checking, increment view count and then do some after increment events such as adding name to a table of who viewed topic and how many times for example.
Re: [RFC] validate topic view count using javascript
But, just so it's clear for the OP, adding a hook (event) into the core code isn't going to achieve the feature requested. It may just make it cleaner for someone, at some stage in the future, to add the feature with an extension (MOD). (Although, whether MOD writers find events and listeners easy to work with I would think is still in doubt, but that's a separate issue.)
In the shorter term the OP could make a request in [3.0.x] MOD Requests.
In the shorter term the OP could make a request in [3.0.x] MOD Requests.
- nickvergessen
- Former Team Member
- Posts: 733
- Joined: Sun Oct 07, 2007 11:54 am
- Location: Stuttgart, Germany
- Contact:
Re: [RFC] validate topic view count using javascript
with an event in place, an extension for this will have less than 5 lines of actual code
Member of the Development-Team — No Support via PM