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.

Question "Who is online" count is wrong

More
14 years 4 months ago #115243 by CheechDogg
Ahah! Ok cool stuff t_p_s thanks for sharing my Friend!

[img
Find me on Facebook.

CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
The topic has been locked.
More
14 years 4 months ago #115246 by t_p_s
No problem. I just took a 30 second look at the code without going into the logic for getTotalRegistredUsers or getTotalGuestUsers to see where the counts come from, as I don't allow guests. If someone checks, and those bits of code report back the right count, you can easily make your own 'total users: XX (xx registered, xx guests)' type of line. If anyone is really interested, I can look at it, and send you some code to test.
The topic has been locked.
More
14 years 4 months ago #115247 by CheechDogg
Nice! Yes please send the code over and I will test it out. I didn't take time to look at it either but now it makes sense.

[img
Find me on Facebook.

CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
The topic has been locked.
More
14 years 4 months ago - 14 years 4 months ago #115248 by FAN
Replied by FAN on topic "Who is online" count is wrong
Thanks for all the extra help regarding my suggestion. I have chosen the following option:

I edited whoisonline.php in the directory: components/com_kunena/template/default/plugin/who

I changed
Code:
<div class="kwhoonline kwho-total ks"> <?php //$totalhiden = ''; $totalusers = ($totaluser + $totalguests); $who_name = JText::_('COM_KUNENA_WHO_TOTAL') ; $who_name .= '<strong>&nbsp;'.$totalusers.'</strong>&nbsp;'; if($totalusers==1) { $who_name .= JText::_('COM_KUNENA_WHO_USER').'&nbsp;'; } else { $who_name .= JText::_('COM_KUNENA_WHO_USERS').'&nbsp;'; } $who_name .= JText::_('COM_KUNENA_WHO_TOTAL_USERS_ONLINE').'&nbsp;&nbsp;::&nbsp;&nbsp;'; $who_name .= '<strong>'.$totaluser.' </strong>'; if($totaluser==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBER').'&nbsp;'; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBERS').'&nbsp;'; } $who_name .= JText::_('COM_KUNENA_WHO_AND'); $who_name .= '<strong> '. $totalguests.' </strong>'; if($totalguests==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUEST').'&nbsp;'; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUESTS').'&nbsp;'; } echo $who_name; ?> </div>

into
Code:
<div class="kwhoonline kwho-total ks"> <?php //$totalhiden = ''; $who_name = JText::_('Aantal leden online:') ; $who_name .= '<strong>&nbsp;'.$totaluser.'</strong>&nbsp;'; echo $who_name; ?> </div>

Result: the line above the names of the online members says
"Aantal leden online: <number of online members>"

As you see I have put (Dutch) text in the code. So if you're not Dutch you have to put in your own translation of "Number of online members:"
Last edit: 14 years 4 months ago by FAN.
The following user(s) said Thank You: CheechDogg
The topic has been locked.
More
14 years 4 months ago #115255 by CheechDogg
SAAAAAAAAAAAAWEEEEEEEEEEEEEET! Thanks my Dutch Friend! lol...I will check this out and let you know if it worked out...I just got home from picking up my Son from school, I have to make dinner for the both of us and then I will add this...Once again thanks !

[img
Find me on Facebook.

CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
The topic has been locked.
More
14 years 4 months ago #115654 by Matias
I've done research on Whois online statistics and it looks like DWho's Online module isn't counting online users in the same way as Joomla itself does:

The main target was to replace Joomla! standard “Who is Online” module because it counts guests incorrect. It’s famous bug, but really “it’s not a bug, it’s a feature”. Joomla! module counts users and guests by sessions, but each page loaded by search bot generates new session, so you get thousands number of “guests” for session lifetime.

In my module you can set short timeout for users activity (independent from session lifetime), e.g. 15 minutes, and list bots signatures to exclude it from guests.


Algorithm that we use for counting users and guests is identical to what is found in Joomla both Joomla 1.5.25 and 2.5.0-Beta2. It counts all the users who have forgotten to log out together with all search bot visits which are stored into #__session table, resulting something like 500 users and 10000 guests.

Accusing that Kunena doesn't count total online users in the same way than Joomla does is wrong, because of it isn't true -- just compare our code to what is in Joomla distribution and see, that the code is almost identical (we just add another option that tries to make the count smaller).

So Kunena is just replicating a bug from Joomla, mostly because of there wasn't any better option availabe when the feature was implemented and nobody had the time to look at better ways to do it. There are 3rd party modules that aim to fix that bug, but nobody has fixed the bug to Joomla itself, even if the bug has been there for over 3 years.

Yes, we could fix the bug in Kunena, but I think it should really be fixed from Joomla instead.
The following user(s) said Thank You: CheechDogg
The topic has been locked.
Time to create page: 0.278 seconds