Page 1 of 1
Offline users
PostPosted: 31 Mar 2012, 00:05
by yusuf
Currently in chat list box,only online/away users are displaying.
How can I show offline users also in the Chat list?
PostPosted: 31 Mar 2012, 03:58
by Jason
In the includes/integration.php you'd need to remove the time restriction. Typically by removing this:
- Code: Select all
(arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . "
The CSS in your theme must also be removed:
- Code: Select all
#arrowchat_userslist_offline{display:none}
PostPosted: 03 May 2012, 07:21
by xamhost
in includes there is no integration.php file.
PostPosted: 04 May 2012, 07:28
by LeopardX
From what I understand, integration.php is created once you run the installer. It's made at that point because this is the file that tells ArrowChat how to interact with whatever forum/social engine your site uses, and you tell it which one your site uses during the install process.
If you're running off of your own homemade engine (as I am), then this file is the one you'd modify to teach ArrowChat how your site works.
Depending on if your users are supposed to be able to talk with only their friends or every user on the site, you'll be modifying the get_friend_list() function's SQL query or the get_online_list() function's SQL query to remove the time restriction in the query's WHERE clause.
For example, you'd change get_online_list() SQL query from
- Code: Select all
SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, CONCAT(newstime_users.first_name, ' ', newstime_users.last_name) username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, arrowchat_status.message, arrowchat_status.status
FROM " . TABLE_PREFIX . DB_USERTABLE . "
JOIN arrowchat_status
ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid
WHERE ('" . time() . "' - arrowchat_status.session_time - 60 < '" . $online_timeout . "')
AND " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " != '" . $db->escape_string($userid) . "'
ORDER BY " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " ASC
to
- Code: Select all
SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, CONCAT(newstime_users.first_name, ' ', newstime_users.last_name) username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, arrowchat_status.message, arrowchat_status.status
FROM " . TABLE_PREFIX . DB_USERTABLE . "
JOIN arrowchat_status
ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid
WHERE " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " != '" . $db->escape_string($userid) . "'
ORDER BY " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " ASC
Hope that helps!
PostPosted: 06 May 2012, 09:16
by BlueRay
the method shown above will work ?
because i want to leave offline msgs for my friends
but they do not show in the list
kindly help
PostPosted: 07 May 2012, 07:38
by LeopardX
signatureboy wrote:the method shown above will work ?
because i want to leave offline msgs for my friends
but they do not show in the list
kindly help
Modify your SQL query in the includes/integration.php file with Jason's SQL modification and then modify the CSS in your theme with the change Jason also mentioned.
Then it will let you send messages to offline users as if you'd kept a conversation with a user open until after they'd logged off and THEN sent them a message. ArrowChat will show the message along the lines of "This user is offline. They will receive the message when they log back in."
PostPosted: 27 Sep 2012, 14:09
by SolidSnake
There isn't one...after all. Not DURING the installation or AFTER.
NO integration.php file!!?
The 2nd Method: Where to find this to edit? Please define.
Thx
PostPosted: 27 Sep 2012, 14:17
by Jason
SolidSnake wrote:There isn't one...after all. Not DURING the installation or AFTER.
NO integration.php file!!?
The 2nd Method: Where to find this to edit? Please define.
Thx
The integration.php file is in the includes folder.
If not, you need to re-install and chmod all files and folders on the first step to 777 regardless of what it says.
PostPosted: 27 Sep 2012, 14:39
by SolidSnake
5th time I re-installed it now Okay, now with the knowledge to chmod all of the files and forders. BUT again...No difference. No such file during the installation, no file in the first step, no integration.php file in the includes folder...
Is there only this way to fix that? Hope for another, because this method doesn't work...
PostPosted: 27 Sep 2012, 15:34
by Jason
SolidSnake wrote:5th time I re-installed it now Okay, now with the knowledge to chmod all of the files and forders. BUT again...No difference. No such file during the installation, no file in the first step, no integration.php file in the includes folder...
Is there only this way to fix that? Hope for another, because this method doesn't work...
Do you have includes/config.php and cache/data_admin_options.php files?
PostPosted: 28 Sep 2012, 16:52
by SolidSnake
First No, Second Yes
PostPosted: 18 Dec 2012, 23:44
by anupamdosar
Jason wrote:In the includes/integration.php you'd need to remove the time restriction. Typically by removing this:
- Code: Select all
(arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . "
The CSS in your theme must also be removed:
- Code: Select all
#arrowchat_userslist_offline{display:none}
thanks worked like it should..
PostPosted: 19 Dec 2012, 11:27
by AKalonda
Hi this works great,
The only thing is i have more than 100 friends in my list, the bar in its height is to big.
How can i reduce it height to show 15 members and have a scroll bar in it?
PostPosted: 25 Mar 2013, 15:04
by AKalonda
?
PostPosted: 14 Oct 2013, 07:23
by agapao
I would like to see all members
however
menbros online
and enbros ofline
Now I see menbros
but all this online
How Will I Know
reaumente Who is online
please
help us
PostPosted: 12 Nov 2013, 12:12
by saeedrnjbr
how can i connect chatroom to mywebsite , i want to get query from my own users table , show login users from my table with my session
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]