Skip to main content
Skip to login
Skip to sign up
Skip to menu
Facebook
Twitter
Youtube
Log in
Sign up
Home
Community Builder
Add-ons
CB Quickstart
CB Paid Subscriptions
CB Activity
CB Gallery
CB GroupJive
CB Auto Actions
More ...
Memberships
Demo
Downloads
News
Featured
Releases
Blog
Support
Resources
Localization
Documentation
Videos
Forge
About Us
Help Me
Help Us Help You
FAQ
Forums
Warranty
Contact Us
Index
Recent Support Topics
New Support Topics
Recent Topics
Etiquette
Search
Index
Recent Support Topics
New Support Topics
Recent Topics
Etiquette
Search
Forums
Archive
CB
CB 1.2 RC4
CB 1.2 RC4 General Discussions
$user->onlinestatus values ?
$user->onlinestatus values ?
Start
Prev
1
Next
End
1
zecaffe
OFFLINE
Senior Member
Posts: 45
Thanks: 0
Karma: 1
15 years 2 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.
scanhead25
OFFLINE
New Member
Posts: 19
Thanks: 0
Karma: 2
14 years 8 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.
Start
Prev
1
Next
End
1
Moderators:
beat
,
nant
,
krileon
Forums
Archive
CB
CB 1.2 RC4
CB 1.2 RC4 General Discussions
$user->onlinestatus values ?
Time to create page: 0.878 seconds
Powered by
Kunena Forum
Search
Login / Logout
Remember Me
Log in
Menu
Home
Community Builder
Add-ons
CB Quickstart
CB Paid Subscriptions
CB Activity
CB Gallery
CB GroupJive
CB Auto Actions
More ...
Memberships
Demo
Downloads
News
Featured
Releases
Blog
Support
Resources
Localization
Documentation
Videos
Forge
About Us
Help Me
Help Us Help You
FAQ
Forums
Warranty
Contact Us
User Menu
Forgot Login
Sign Up