heres what i know:
how to get the server ID:
waiheke wrote:Oh
I just found a post by Old Wolf, with much more elegant code
Copy this to the very bottom of your chat page and upload and run it to see the params
The 1st entry is the number string you want
<?php
echo '<h2>Debug</h2>';
echo '<pre>';
$c =& pfcGlobalConfig::Instance();
print_r($c);
print_r($_SERVER);
echo '</pre>';
?>
^^this works gor me^^
i dont know there to put the next one:
waiheke wrote:Got it working, thanks to another thread here
require_once dirname(__FILE__)."/src/pfcinfo.class.php";
// the next line you MUST EDIT FOR YOUR OWN SERVER ...........
$serverId = "xxxxe0c89fxxxxxxxxbf618b4608xxxx";
$chatinfo= new pfcInfo($serverId );
$users = $chatinfo->getOnlineNick(NULL);
sort($users);
$nd_users = count($users);
$info = "";
if ($nd_users==0) {
echo "There are no users online";
} else {
echo "$nd_users users online";
foreach($users as $u)
{
echo "<li>".$u."</li>";
}}
echo "</ul>";
what worked for me was to look at the unique number generated in the private/log/folder on my server (as shown above) using a standard FTP programme - just substitute your folder string
where do i put the above code?