- Posts: 694
- Thank you received: 21
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
Merged "Who is online" count is wrong
- woonydanny
- Offline
- Elite Member
It is a kunena issue and not joomla as Matias has relayed previously. The kunena user count should match the joomla count which it doesn't so it is obviously a Kunena issue.
I agree with CheechDogg, whilst Sozzled may help substantial amounts in the forum he has a very abrupt and blunt attitude to many people but what is worse is his inability to write short concise responses, but instead write page long essays that actually answer nothing.
still wish that i can write my forum signature through a jomsocial plugin and do it from my jomsocial profile
- CheechDogg
- Offline
- Premium Member
FAN wrote: OK, it's a difficult problem, I understand. The matter is I don't find it very necessary to see the number of on line people. So if the numbers aren't correct don't show them! How can I achieve that?
FAN if you just want to leave the logged in users in the Whos Online module for Kunena you can also do the following:
find the following code in the directory: components/com_kunena/template/default/plugin/who
<div class="kwhoonline kwho-total ks">
<?php
//$totalhiden = '';
$totalusers = ($totaluser + $totalguests);
$who_name = JText::_('COM_KUNENA_WHO_TOTAL') ;
$who_name .= '<strong> '.$totalusers.'</strong> ';
if($totalusers==1) { $who_name .= JText::_('COM_KUNENA_WHO_USER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_USERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_TOTAL_USERS_ONLINE').' :: ';
$who_name .= '<strong>'.$totaluser.' </strong>';
if($totaluser==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_AND');
$who_name .= '<strong> '. $totalguests.' </strong>';
if($totalguests==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUEST').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUESTS').' '; }
echo $who_name;
?>
</div>
and replace it with:
<div class="kwhoonline kwho-total ks">
<?php
//$totalhiden = '';
/*$totalusers = ($totaluser + $totalguests);
$who_name = JText::_('COM_KUNENA_WHO_TOTAL') ;
$who_name .= '<strong> '.$totalusers.'</strong> ';
if($totalusers==1) { $who_name .= JText::_('COM_KUNENA_WHO_USER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_USERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_TOTAL_USERS_ONLINE').' :: ';
$who_name .= '<strong>'.$totaluser.' </strong>';
if($totaluser==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_AND');
$who_name .= '<strong> '. $totalguests.' </strong>';
if($totalguests==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUEST').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUESTS').' '; }
echo $who_name;*/
?>
</div>
What this does is just blocks out the total online users, members and guests line from the top and only displays the logged in users allowing you to still have the Who's Online Module on your forums. Let me know if this helps you out.
The blocked code is between this /* CODE */
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
CheechDogg wrote:
FAN wrote: OK, it's a difficult problem, I understand. The matter is I don't find it very necessary to see the number of on line people. So if the numbers aren't correct don't show them! How can I achieve that?
FAN if you just want to leave the logged in users in the Whos Online module for Kunena you can also do the following:
find the following code in the directory: components/com_kunena/template/default/plugin/who
<div class="kwhoonline kwho-total ks">
<?php
//$totalhiden = '';
$totalusers = ($totaluser + $totalguests);
$who_name = JText::_('COM_KUNENA_WHO_TOTAL') ;
$who_name .= '<strong> '.$totalusers.'</strong> ';
if($totalusers==1) { $who_name .= JText::_('COM_KUNENA_WHO_USER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_USERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_TOTAL_USERS_ONLINE').' :: ';
$who_name .= '<strong>'.$totaluser.' </strong>';
if($totaluser==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_AND');
$who_name .= '<strong> '. $totalguests.' </strong>';
if($totalguests==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUEST').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUESTS').' '; }
echo $who_name;
?>
</div>
and replace it with:
<div class="kwhoonline kwho-total ks">
<?php
//$totalhiden = '';
/*$totalusers = ($totaluser + $totalguests);
$who_name = JText::_('COM_KUNENA_WHO_TOTAL') ;
$who_name .= '<strong> '.$totalusers.'</strong> ';
if($totalusers==1) { $who_name .= JText::_('COM_KUNENA_WHO_USER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_USERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_TOTAL_USERS_ONLINE').' :: ';
$who_name .= '<strong>'.$totaluser.' </strong>';
if($totaluser==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBER').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_MEMBERS').' '; }
$who_name .= JText::_('COM_KUNENA_WHO_AND');
$who_name .= '<strong> '. $totalguests.' </strong>';
if($totalguests==1) { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUEST').' '; } else { $who_name .= JText::_('COM_KUNENA_WHO_ONLINE_GUESTS').' '; }
echo $who_name;*/
?>
</div>
What this does is just blocks out the total online users, members and guests line from the top and only displays the logged in users allowing you to still have the Who's Online Module on your forums. Let me know if this helps you out.
The blocked code is between this /* CODE */
I simply replaced the code you commented out with:
$totkusercount = count($users);
echo "Total online users: " . $totkusercount;
Nice and simple, since we have the arrays of users, etc. already.
- CheechDogg
- Offline
- Premium Member
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
HurricaneK, Rogue, Scritch, TimS, VegasWolf
Sorry, just a quick cut-n-paste from the screen, but it works. You can do the same things if you want guest count, etc.
- 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:"