Help
General ArrowChat talk that doesn't fit any other forum.
User avatar
yusuf
Free
 
Posts: 1
Joined: 29 Mar 2012, 06:56

 

by yusuf 31 Mar 2012, 00:05

Currently in chat list box,only online/away users are displaying.

How can I show offline users also in the Chat list?
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 31 Mar 2012, 03:58

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}
User avatar
xamhost
Free
 
Posts: 1
Joined: 02 May 2012, 10:14

 

by xamhost 03 May 2012, 07:21

in includes there is no integration.php file.
User avatar
LeopardX
Customer
 
Posts: 10
Joined: 04 Feb 2011, 21:21

 

by LeopardX 04 May 2012, 07:28

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!
User avatar
BlueRay
Free
 
Posts: 2
Joined: 14 Apr 2012, 01:08

 

by BlueRay 06 May 2012, 09:16

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
User avatar
LeopardX
Customer
 
Posts: 10
Joined: 04 Feb 2011, 21:21

 

by LeopardX 07 May 2012, 07:38

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."
User avatar
SolidSnake
Free
 
Posts: 3
Joined: 27 Sep 2012, 13:23

 

by SolidSnake 27 Sep 2012, 14:09

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

 

by Jason 27 Sep 2012, 14:17

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.
User avatar
SolidSnake
Free
 
Posts: 3
Joined: 27 Sep 2012, 13:23

 

by SolidSnake 27 Sep 2012, 14:39

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

 

by Jason 27 Sep 2012, 15:34

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?
User avatar
SolidSnake
Free
 
Posts: 3
Joined: 27 Sep 2012, 13:23

 

by SolidSnake 28 Sep 2012, 16:52

First No, Second Yes
User avatar
anupamdosar
Free
 
Posts: 1
Joined: 22 Aug 2012, 00:30

 

by anupamdosar 18 Dec 2012, 23:44

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..
User avatar
AKalonda
Customer
 
Posts: 2
Joined: 25 May 2012, 08:01

 

by AKalonda 19 Dec 2012, 11:27

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?
User avatar
AKalonda
Customer
 
Posts: 2
Joined: 25 May 2012, 08:01

 

by AKalonda 25 Mar 2013, 15:04

?
User avatar
agapao
Free
 
Posts: 2
Joined: 14 Oct 2013, 06:53

 

by agapao 14 Oct 2013, 07:23

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
User avatar
saeedrnjbr
Free
 
Posts: 1
Joined: 12 Nov 2013, 12:08

 

by saeedrnjbr 12 Nov 2013, 12:12

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