$user->onlinestatus values ?

12 years 8 months ago #86469 by zecaffe
$user->onlinestatus values ? was created by zecaffe
Wich values this cb system field for showing online/offline status can have?

is it

$user->onlinestatus 0 & $user->onlinestatus 1
or offline/online .. or something else .. ?

Post edited by: zecaffe, at: 2009/01/24 17:41

sry 4 bad eng ....

Please Log in to join the conversation.

12 years 2 months ago #105522 by scanhead25
Replied by scanhead25 on topic Re:$user->onlinestatus values ?
if($ueConfig==1) {
Hope this is work in your site!!!

$query = "SELECT COUNT(*) FROM #__session WHERE userid =". (int) $user->id . " AND (guest = 0) AND (NOT ( usertype is NULL OR usertype = '' ))";

$database =& JFactory::getDBO();
$database->setQuery( $query );


$isonline = $database->loadResult();
$online_status = '';
if ($isonline > 0) {
$online_status = "Online";
} else {
$online_status = "Offline";
}
}

Please add Karma in my profile if this helps a lot

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.774 seconds

Facebook Twitter LinkedIn