Page 1 of 1

chat room number

PostPosted: 22 May 2015, 12:50
by trattore
I would take the number of users in the chat room and place it in an html page built from me you can do it? thx

Re: chat room number

PostPosted: 06 Aug 2015, 04:59
by fortrefuge
id like that number too, if possible. number AND the list of usernames would be even better. i think i can get it through php sessions, but of course it would be easier to just get it from chat, if it were available.

Re: chat room number

PostPosted: 23 May 2016, 10:47
by NWattenberger
This is an older thread, but I was about to post much the same. In VBulletin, I would like to obtain the number of users in the chat rooms so I can put it at the top of the forum so that members know it is active. Possibly also a list of the members in a sidebar.

Re: chat room number

PostPosted: 31 Dec 2016, 03:13
by jvdend
I have use this:

Code: Select all
$chatcafe_online=0;

$sql = "SELECT COUNT(user_id) FROM arrowchat_chatroom_users WHERE (chatroom_id='1' AND session_time > (" . time() . " - 70))";

$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$chatcafe_online = $row[0];