- Posts: 3
COMMUNITY FORUM
How to : Not increment the number of views if...
- soc
-
Topic Author
- Offline
- New Member
Less
More
14 years 10 months ago #85111
by soc
How to : Not increment the number of views if... was created by soc
-The person who reads the article is an admin-The person is the one who has written the articleThanks a lot.
Please Log in or Create an account to join the conversation.
- soc
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 10 months ago #85112
by soc
Replied by soc on topic How to : Not increment the number of views if...
no one?
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 10 months ago #85113
by william white
Replied by william white on topic How to : Not increment the number of views if...
Please try to be more specific
Also, links are helpfull getting your message across
Also, links are helpfull getting your message across
Please Log in or Create an account to join the conversation.
- soc
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 10 months ago #85114
by soc
Replied by soc on topic How to : Not increment the number of views if...
More specific?
So I've installed Joomla & K2
I've written some articles with an admin acount (for example).
and each time I open the link that shows the article the number of views increases.
What I want is to make a filter on the person who reads the article and if it is the person that has written this one, the number of wiews should not increase.
Is it enough clear? (sorry for my poor english)
So I've installed Joomla & K2
I've written some articles with an admin acount (for example).
and each time I open the link that shows the article the number of views increases.
What I want is to make a filter on the person who reads the article and if it is the person that has written this one, the number of wiews should not increase.
Is it enough clear? (sorry for my poor english)
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 10 months ago #85115
by william white
Replied by william white on topic How to : Not increment the number of views if...
In the table jos_k2_items the field created_by contains the id number of the author and there is a field called hits
You will have to find where the hit counter is incremented in the code (im not sure which file)and
Psudocode - wrap the increment code with something like
Find the user who is logged on id
if user is not = created_by
let the counter increment
I think this would be a core hack, as i havent noticed hit counting code in the item.php file
You will have to find where the hit counter is incremented in the code (im not sure which file)and
Psudocode - wrap the increment code with something like
Find the user who is logged on id
if user is not = created_by
let the counter increment
I think this would be a core hack, as i havent noticed hit counting code in the item.php file
Please Log in or Create an account to join the conversation.