Page 1 of 1

Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 6:59 am
by Tastenplayer
Set all topic views to 0 in ACP
Instead of having to do this with command in the database.
Image

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 7:16 am
by david63
Can you give a reason as to why you would want to do this?

Sounds more like an extension to me.

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 7:37 am
by Tastenplayer
After setting up a new forum and also, if you have a lot of topics, at the end of a year to see which topics are still visited and which are no longer (before deleting).
When installing a board for the first time you should be able to disable this function (no counting of visits) :)

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 8:10 am
by KevC
This is way too specialised a reason to have it built in.
The overwhelming majority of sites would have no need for it. In fact, quite the opposite!

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 8:47 am
by Tastenplayer
KevC wrote:
Tue May 21, 2019 8:10 am
This is way too specialised a reason to have it built in.
The overwhelming majority of sites would have no need for it. In fact, quite the opposite!
Maybe, but when opening a new board, the topic visited counter should definitely be set to 0.

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 8:54 am
by david63
Tastenplayer wrote:
Tue May 21, 2019 8:47 am
Maybe, but when opening a new board, the topic visited counter should definitely be set to 0.
Why would it be anything else - and in any case how would anyone know?

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 2:31 pm
by AmigoJack
I wouldn't trust a board where topics have more replies than views. Your intention would also need more details to be stored, i.e. storing per topic since when visits are counted.

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 3:05 pm
by Mick
Make an extension request, it won’t be added to the core.

Re: Set all topic views to 0 in ACP

Posted: Tue May 21, 2019 11:26 pm
by 3Di
Yeah, that could be an idea for an extension.
I personally don't need it, just I wanted to explain my down-vote.

Re: Set all topic views to 0 in ACP

Posted: Wed May 22, 2019 7:25 am
by Tastenplayer
AmigoJack wrote:
Tue May 21, 2019 2:31 pm
I wouldn't trust a board where topics have more replies than views. Your intention would also need more details to be stored, i.e. storing per topic since when visits are counted.
Yes the picture was a little badly chosen :lol:
But it's also pretty nonsensical if all views are from the admin. Like just now, in a newly created board.
No matter, be it just like that. Some forum operators even seem to do this extra. Anyway, it appears in some badly visited forums.

Re: Set all topic views to 0 in ACP

Posted: Wed May 22, 2019 7:35 am
by david63
Tastenplayer wrote:
Wed May 22, 2019 7:25 am
But it's also pretty nonsensical if all views are from the admin.
How would anyone know?

Re: Set all topic views to 0 in ACP

Posted: Wed May 22, 2019 8:12 am
by KevC
Surely the first person visiting the board would have expected the admin to have at least had a look to make sure it all worked ok. No one is going to refuse to join or PM the admin because a forum has had a few views.

Re: Set all topic views to 0 in ACP

Posted: Mon May 27, 2019 6:53 pm
by Tastenplayer
KevC wrote:
Wed May 22, 2019 8:12 am
Surely the first person visiting the board would have expected the admin to have at least had a look to make sure it all worked ok. No one is going to refuse to join or PM the admin because a forum has had a few views.
:lol:
david63 wrote:
Wed May 22, 2019 7:35 am
Tastenplayer wrote:
Wed May 22, 2019 7:25 am
But it's also pretty nonsensical if all views are from the admin.
How would anyone know?
I know that.
Joking aside - You want to see how many people visit the topic and not how many times I have visited a topic.

No problem was just an idea. New should definitely start at 0.
But no matter, you overcome your inhibitions furthermore and try to enter the command to 0 position on the server.
Update phpbb_topics Set topic_views = 0 where 1
I have too much respect for this server. It is strangely configured in many ways.
I'm sure it's not just me.