Keyword

Change counter of visitors in k2 article

  • Lapadatu virgil
  • Lapadatu virgil's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #124260 by Lapadatu virgil
Change counter of visitors in k2 article was created by Lapadatu virgil
Hi to all!
I need for my site to change counter system as follows:
Every visitor that visit an article to be registered even if the visitor hit refresh. for example the article has 45 hits/visits. I hit refresh and the counter counts another hit/visit the resulting count beeing 46. I hopeyou understand what i meant.

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124261 by Yiota
So you want the hits counter to increase every time the visitor refreshes his page?

Please Log in or Create an account to join the conversation.

  • Lapadatu virgil
  • Lapadatu virgil's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #124262 by Lapadatu virgil
Replied by Lapadatu virgil on topic Re: Change counter of visitors in k2 article
yes

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124263 by Yiota
Maybe I have missed something but isn't that how the Hits already work?
When you are viewing a page and hit refresh the counter increases.

Please Log in or Create an account to join the conversation.

  • Lapadatu virgil
  • Lapadatu virgil's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 8 months ago #124264 by Lapadatu virgil
Replied by Lapadatu virgil on topic Re: Change counter of visitors in k2 article
Excuse me for my bad explanation. I forgot to mention the cache is active. It only works when the cache is off. Is there any way to deactvate the cache only for that, not for the whole site. My site uses J3.2.1 and latest k2

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124265 by Yiota
I'm afraid that hits counter cannot be updated when caching is enabled.

You could search either in the getk2.org/extend or the extensions.joomla.org/ in case there is a plugin that would allow something like that which I don't know of.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago - 10 years 7 months ago #124266 by Nikolaos Raptis
Replied by Nikolaos Raptis on topic Re: Change counter of visitors in k2 article
Hi, I think there is a solution to the problem. If you install this free plugin crosstec.de/en/extensions/free/cachecontrol.html enabled it . Place on the Rules this ->
option=com_k2
and finally disable the system - cache [ plugin] . Leave the cache on global configuration enabled.

With this you have a full cache of the website, except the K2 items and the counter of the articles counts correctly :cheer: :cheer: :cheer:

Works for me......hopefully for you too...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum