Help
Ask questions about how to do or fix things in Arrowchat
User avatar
twistoneup
Customer
 
Posts: 9
Joined: 05 Jan 2014, 11:19

 

by twistoneup 20 Jan 2014, 11:35

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
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 20 Jan 2014, 13:07

User avatar
twistoneup
Customer
 
Posts: 9
Joined: 05 Jan 2014, 11:19

 

by twistoneup 20 Jan 2014, 17:32

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
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[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]