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
Question "Who is online" count is wrong
- CheechDogg
-
- Offline
- Premium Member
-
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
- CheechDogg
-
- Offline
- Premium Member
-
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
I edited whoisonline.php in the directory: components/com_kunena/template/default/plugin/who
I changed
into
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:"
- CheechDogg
-
- Offline
- Premium Member
-
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
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.