Help
Discuss or request ArrowChat modifications
User avatar
RPhillips
Customer
 
Posts: 3
Joined: 20 Jan 2012, 03:07

 

by RPhillips 03 Jan 2013, 13:19

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

 

by Jason 03 Jan 2013, 19:28

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