567559 RealChat Scripting API Custom Code

Completed Posted May 22, 2012 Paid on delivery
Completed Paid on delivery

I use RealChat Enterprise Edition 5.0 chat software ([url removed, login to view]) and need to use the RealChat Scripting API to display the number of people currently chatting in a specific chat room on one of my webpages.

The display of the number of people currently chatting should be in parenthesis, like this (1). If the current number of people chatting is less than one, display nothing. It's been suggested that I use DetailedRoomList which outputs a list of rooms with each room formatted as: roomID: roomName (userCount) and then parse the result to show a particular room. The userCount I want to display is from roomID: "0" and roomName "Group Chat".

The code I currently have that displays the total number of people chatting in ALL chat rooms is the following:

function getPeopleChatting() {

$er = error_reporting(0);

$pc = file_get_contents("http://XXXXXX/?[url removed, login to view]");

error_reporting($er);

if ($pc < 1) return "";

else return " (".$pc.")";

}

echo getPeopleChatting();

The API documentation is here:

[url removed, login to view]

Please read the RealChat API documentation and let me know if you have any questions.

I have additional RealChat related customization requests to follow if this one is done successfully.

Odd Jobs PHP Shell Script Windows API

Project ID: #2313523

About the project

1 proposal Remote project Active Jul 11, 2012

Awarded to:

webdevvancouver

I can do a nice function for you, check you PM for details.

$25 USD in 1 day
(0 Reviews)
0.0