Page 1 of 1

chat: offline user list empty

PostPosted: 20 Jan 2014, 11:35
by twistoneup
hi,

my db is setup correctly, and i can chat.

if both of my chat connections ("buddies") are online, my online user list is fine. they both show as online.

however, if either or both are offline, neither/none show in my "users offline" list.

i'm happy to rework my code; can you please lmk what i should be modifying and where (which php script)?

thanks
TOU

PostPosted: 20 Jan 2014, 13:07
by Jason

PostPosted: 20 Jan 2014, 17:32
by twistoneup
hi Jason,

first, thanks for the advice.

sadly, i had to butcher the integration.php file to work with our sharded database architecture.

Code: Select all
$sql[] = array('userid' => $connectedUser, 'username' => $connectedUser, 'lastactivity' => $lastActive, 'link' => "$link", 'avatar' => "/$avatar", 'status' => $availableOrNot, 'is_admin' => $isAdmin);


if the user is online,
Code: Select all
status
is set to return, 'available'.
if the user is offline,
Code: Select all
status
is set to return, 'offline'.

is this correct? should i be returning a different value for 'status' for offline users?

thanks
TOU

Topic Closed

PostPosted: 16 Dec 2014, 00:26
by Staff Bot
[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]