Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

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.

Question (0 viewing) always show at forum

More
14 years 4 months ago #1 by peripsum
Hi,

at my kunena forum i dont get this:

"Kunena

(3 viewing) xxxx, peripsum, (1) Guest"


it always show me (0 viewing) - but there are readers and members on...

anyone know how to fix it? :(

thank you

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

More
14 years 4 months ago #2 by Matias
They are not in the same page, or you have many different URL's to the same page ( www.domain.com & domain.com). If you have enabled "Who is online", you can click on it to see list of active users and on which pages they are browsing currently.

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

More
14 years 4 months ago - 14 years 4 months ago #3 by peripsum
Matias wrote:

They are not in the same page, or you have many different URL's to the same page ( www.domain.com & domain.com). If you have enabled "Who is online", you can click on it to see list of active users and on which pages they are browsing currently.


thats true, i use atm different URLs.
yes i know that i can see them on "Who is online" - but how i remove that 0 viewing or what i have to do to that it works (dont say use only one url :)).

thanks

ps: if i see them on "who is online" then it should be possible to see them on XY viewing - or not ? i dont understand that really :blush:
Last edit: 14 years 4 months ago by peripsum.

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

More
14 years 4 months ago - 14 years 4 months ago #4 by Matias
Well, this is legacy issue of Kunena. Location is saved as absolute url, which is wrong.. Usually I just write a rule to .htaccess to redirect into www, if url was written without it.

As workaround you could just disable that line by finding path-element-users from css file in your Kunena template and setting it to be display:hidden.
Last edit: 14 years 4 months ago by Matias.

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

More
14 years 4 months ago #5 by peripsum
ok thank you.

but it is possible that i change that code of "viewing" to that of "who is online" ?

i mean, "who is online" works correct - and it would be for the first time enough for me, that the "who is online"-user will displayed there...

if it possible, you can tell me how? i am not such as pro in php

thank you for trying to help me

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

More
14 years 4 months ago - 14 years 4 months ago #6 by Matias
Actually it's MySQL..

In components/com_kunena/template/default/plugin/who/whoisonline.php line 42 (users), change WHERE clause to:
Code:
. " WHERE w.userid!='0' AND w.time>DATE_SUB(CURDATE(), INTERVAL 30 MINUTE)"

And the same for line 50 (visitors):
Code:
$query = "SELECT COUNT(*) FROM #__fb_whoisonline WHERE user='0' AND time>DATE_SUB(CURDATE(), INTERVAL 30 MINUTE)";

Or at least I think so.. No idea if it actually works..
Last edit: 14 years 4 months ago by Matias.

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

More
14 years 4 months ago #7 by rich
Hello Matias,

I had a similar problem. In my situation i still could see in all forums all users.
I had changed to the elder codes
/components/com_kunena/template/default/plugin/who/who.class.php linie 85
Code:
$link = JURI::current();
to:
Code:
$link = $_SERVER['REQUEST_URI'];
and /components/com_kunena/template/default_ex/fb_pathway.php linie 106
Code:
addslashes(JURI::current())
to:
Code:
addslashes($_SERVER['REQUEST_URI'])
and now it works correct again.
Can i use this in this form?

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

More
14 years 4 months ago #8 by Matias
They will work in Apache, but not in other servers.

Does someone have some time to look into this problem and to find better solution?

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

More
14 years 4 months ago #9 by peripsum
rich wrote:

Hello Matias,

I had a similar problem. In my situation i still could see in all forums all users.
I had changed to the elder codes
/components/com_kunena/template/default/plugin/who/who.class.php linie 85

Code:
$link = JURI::current();
to:
Code:
$link = $_SERVER['REQUEST_URI'];
and /components/com_kunena/template/default_ex/fb_pathway.php linie 106
Code:
addslashes(JURI::current())
to:
Code:
addslashes($_SERVER['REQUEST_URI'])
and now it works correct again.
Can i use this in this form?


If i do this it shows me always "1 User and 1 Visitor" :(

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

More
14 years 4 months ago #10 by peripsum
I dont know if it helps,
but on kunena 1.5.6 it works
and on 1.5.7 (i actually use) it dont work :unsure:

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

Time to create page: 0.422 seconds