- Posts: 22
- Thank you received: 0
Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.
Question Backend users shown as 'online'
I noticed that users are displayed as being online although they are only logged on in the backend. Since Joomla! itself doesn't show backend users in the frontend I would like Kunena to do the same.
Is there anything I can do to have backend users not to be flagged as 'online'?
Please Log in or Create an account to join the conversation.
At the risk of putting my foot in deeper into my mouth and demonstrate my complete ignorance about this mystery :pinch: , I think it's reliable to say that Kunena uses whatever Joomla uses to show who's logged-in and who isn't. What does the Joomla forum have to say about this subject?
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
In Joomla! I'm using a module called mod_whosonline, and this module shows the users logged on to the frontend correctly. Backend users don't show up there.
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
Why does this here provide the correct users logged on to the frontend but Kunena doesn't?
<?php
/**
* @version $Id: helper.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
class modWhosonlineHelper {
// show online count
function getOnlineCount() {
$db =& JFactory::getDBO();
$sessions = null;
// calculate number of guests and members
$result = array();
$user_array = 0;
$guest_array = 0;
$query = 'SELECT guest, usertype, client_id' .
' FROM #__session' .
' WHERE client_id = 0';
$db->setQuery($query);
$sessions = $db->loadObjectList();
if ($db->getErrorNum()) {
JError::raiseWarning( 500, $db->stderr() );
}
if (count($sessions)) {
foreach ($sessions as $session) {
// if guest increase guest count by 1
if ($session->guest == 1 && !$session->usertype) {
$guest_array ++;
}
// if member increase member count by 1
if ($session->guest == 0) {
$user_array ++;
}
}
}
$result = $user_array;
$result = $guest_array;
return $result;
}
// show online member names
function getOnlineMemberNames() {
$db =& JFactory::getDBO();
$result = null;
$query = 'SELECT DISTINCT a.username' .
' FROM #__session AS a' .
' WHERE client_id = 0' .
' AND a.guest = 0';
$db->setQuery($query);
$result = $db->loadObjectList();
if ($db->getErrorNum()) {
JError::raiseWarning( 500, $db->stderr() );
}
return $result;
}
}
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.