Page 1 of 1

Display 'X Usersin Chat' Button

PostPosted: 03 Jan 2013, 13:19
by RPhillips
Hi...

I am keen to have a button on the home page of my jomsocial community that shows how many people are in a particular (I only use one) chat room. If the User clicks the button, it pops open the chatroom in a separate Window.

This is probably beyond me, but before I try to contract someone to do this I thought I should check how hard this would be.. are there api calls to do this?

Many thanks

R

PostPosted: 03 Jan 2013, 19:28
by Jason
Not too bad if you're experienced. You just need to make an ajax call to the includes/json/receive/receive_chatroom_list.php file. This will retrieve all chat rooms with the following json variables:

id - chat room id
n - name
t - type (number: 1 public, 2 password, 3 admin)
c - count, number of users in the room

Chat rooms can be popped out using /arrowchat/public/chatroom/?id=CHATROOM ID

or

Chat rooms can be opened in the bar using: http://www.arrowchat.com/documentation/?p=chatroom

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]