- Posts: 30
COMMUNITY FORUM
Change counter of visitors in k2 article
- Lapadatu virgil
- Topic Author
- Offline
- Junior Member
Less
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.
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
- Visitor
10 years 8 months ago #124261
by Yiota
Replied by Yiota on topic Re: Change counter of visitors in k2 article
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
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
- Visitor
10 years 8 months ago #124263
by Yiota
Replied by Yiota on topic Re: Change counter of visitors in k2 article
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.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
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
- Visitor
10 years 8 months ago #124265
by Yiota
Replied by Yiota on topic Re: Change counter of visitors in k2 article
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.
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.
- Nikolaos Raptis
- Offline
- New Member
Less
More
- Posts: 8
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...
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.