Kunena 7.0.2 Released

The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/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 contains old discussions (generally more than one year ago or based on circumstances that subsequently changed) or topics resolved in other ways. Topics moved into this category are closed from further discussion.

Question Backend users shown as 'online'

More
16 years 1 month ago #38838 by Theo01
I couldn't find anything on that subject yet, hence this post.

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.

More
16 years 1 month ago #38854 by sozzled
Yes, this is rather irritating. If I haven't logged into the front-end but I'm working in the Joomla site administration area, say, then when I browse the front-end I am shown as being logged-in. That's a Joomla problem. It's irritating, I haven't found the answer to it (and there probably isn't an answer, either) because the table jos_session doesn't differentiate between front-end and back-end users, but I've learned to live with it.

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?

Please Log in or Create an account to join the conversation.

More
16 years 1 month ago #38857 by Theo01
I haven't asked in the Joomla! forum yet, because I didn't know or expect this to be an issue with Joomla!.

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.

More
16 years 1 month ago #38860 by sozzled
There you go! :laugh: Please allow me a few more seconds to open my mouth long enough to change feet.

Please Log in or Create an account to join the conversation.

More
16 years 1 month ago #38862 by Theo01
Not sure I understand, to be honest. ;)

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.

More
16 years 1 month ago #38863 by sozzled
Excuse me, I had my mouth full - eating breakfast. Where is this PHP source code? What, specifically, is the difference between the coded example and how Kunena works? :dry:

Please Log in or Create an account to join the conversation.

Time to create page: 0.326 seconds