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 #115207 by woonydanny
www.kunena.org/forum/202-kunena-17-issue...t=10&start=10#110709

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 :(
The topic has been locked.
More
14 years 4 months ago - 14 years 4 months ago #115213 by CheechDogg

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>&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>


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>&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>



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 */

[img
Find me on Facebook.

CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Last edit: 14 years 4 months ago by CheechDogg.
The topic has been locked.
More
14 years 4 months ago #115215 by CheechDogg
Make sure you back up your file first!

[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 #115239 by t_p_s

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>&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>


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>&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>



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.
The topic has been locked.
More
14 years 4 months ago #115241 by CheechDogg
Nice! so what does that display now?

[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 #115242 by t_p_s
Total online users: 5
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.
The following user(s) said Thank You: CheechDogg
The topic has been locked.
Time to create page: 0.309 seconds