567559 RealChat Scripting API Custom Code

Fertiggestellt Veröffentlicht May 22, 2012 Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

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

Projekt-ID: #2313523

Über das Projekt

1 Vorschlag Remote Projekt Aktiv Jul 11, 2012

Vergeben an:

webdevvancouver

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

$25 USD in 1 Tag
(0 Bewertungen)
0.0