Display counter of a truncated article

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Steph
Posts: 26
Joined: Tue Feb 14, 2023 10:55 pm

Display counter of a truncated article

Post by Steph »

Hello,

First of all, I'm using version 3.5.3.

The article counting system in the knowledge base isn't accurate at all; it's not very relevant.

Let me explain: when you access the page "admin/knowledgebase_private.php?article=13," the counter adds 1 to the view count, whereas in theory, if I'm in the admin area, it's to manage articles and not to use it for informational purposes. In my opinion, the view count in the back office shouldn't be counted.

Also, on this same article "knowledgebase.php?article=13," if I refresh the page 15 times, it adds +15 to the counter, which isn't consistent and distorts the result. I think you should implement an IP control to prevent the same visitor from being counted only once per day (or for a duration chosen in the settings).
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: Display counter of a truncated article

Post by Klemen »

The view counter is indeed a simple one. Like the name says, it counts article views, not unique views.

We may do something like this as an option in the future, but these things are always very unreliable and tricky because people may share the IP address (especially within organizations), have cookies disabled, etc. Also I can't give any guarantees if/when.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Steph
Posts: 26
Joined: Tue Feb 14, 2023 10:55 pm

Re: Display counter of a truncated article

Post by Steph »

Merci !

Dommage, car cette information peut être utile pour des statistiques, mais visiblement chez moi des petits malins ont rafraichi la page plusieurs centaines de fois, donc cela rend pour le coup cette fonctionnalité inutile et biaisée.

Mettre l'adresse IP en concordance avec l'id d'un article en base dans une table provisoire et faire une vérification de présence avant de compter puis la renouveler chaque jour ne serait pas trop gourmand en ressource, mais cela demande effectivement du temps de codage (je l'ai déjà fait pour un projet privé).

Dans tous les cas, je ne comprends pas pourquoi cela compte en étant dans la partie administrateur.
Post Reply