- Posts: 7245
- Thank you received: 566
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Important Forum View counter not counting!
16 years 8 months ago #27884
by Matias
Replied by Matias on topic Re:Forum View counter not counting!
Found the problem:
components/com_kunena/template/view.php line 155+:
Should be:
components/com_kunena/template/view.php line 155+:
Code:
//update the hits counter for this topic & exclude the owner
if ($this_message->userid != $kunena_my->id) {
$kunena_db->setQuery("UPDATE #__fb_messages SET hits=hits+1 WHERE id='{$thread}' AND parent='0'");
$kunena_db->query();
}
Should be:
Code:
//update the hits counter for this topic & exclude the owner
if ($kunena_my->id > 0 && $this_message->userid != $kunena_my->id) {
$kunena_db->setQuery("UPDATE #__fb_messages SET hits=hits+1 WHERE id='{$thread}' AND parent='0'");
$kunena_db->query();
}
Please Log in or Create an account to join the conversation.
16 years 8 months ago #28229
by JTM369
Replied by JTM369 on topic Re:Forum View counter not counting!
I have tried your solution however, after testing it out by leaving a post on my site as a guest the following error message appeared.
Parse error: syntax error, unexpected '>' in /home/truththe/public_html/components/com_kunena/template/default_ex/view.php on line 156
I can not work out what the problem is.
Thanks again for your help.
Parse error: syntax error, unexpected '>' in /home/truththe/public_html/components/com_kunena/template/default_ex/view.php on line 156
I can not work out what the problem is.
Thanks again for your help.
Please Log in or Create an account to join the conversation.
16 years 8 months ago - 16 years 8 months ago #28233
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re:Forum View counter not counting!
Hello,
I think the error comes from to a space, I don't know why : $kunena_my- >id and $kunena_db- >setQuery just after, remove the the spaces into the two things and this should works, like below.
I think the error comes from to a space, I don't know why : $kunena_my- >id and $kunena_db- >setQuery just after, remove the the spaces into the two things and this should works, like below.
Code:
//update the hits counter for this topic & exclude the owner
if($kunena_my->id > 0 && $this_message->userid != $kunena_my->id) {
$kunena_db->setQuery
("UPDATE #__fb_messages SET hits=hits+1 WHERE id='{$thread} ' AND parent='0'");
$kunena_db->query();
}
I don't provide support by PM, because this can be useful for someone else.
Last edit: 16 years 8 months ago by xillibit.
Please Log in or Create an account to join the conversation.
16 years 8 months ago #28269
by mrtn
Replied by mrtn on topic Re:Forum View counter not counting!
Still no luck from my end unfortunately, the post view count still doesn't work after making above modification... Any idea why it might be?
Cheers
Cheers
Please Log in or Create an account to join the conversation.
16 years 8 months ago #28629
by mrtn
Replied by mrtn on topic Re:Forum View counter not counting!
BUMP
Come on guys I know you knwo how to fix it
Come on guys I know you knwo how to fix it
Please Log in or Create an account to join the conversation.
Time to create page: 0.224 seconds