Moderators: OldWolf, re*s.t.a.r.s.*2
<?php
require_once dirname(__FILE__)."/src/pfcinfo.class.php";
$info = new pfcInfo( md5("any_word") );
// NULL is used to get all the connected users, but you can specify
// a channel name to get only the connected user on a specific channel
$users = $info->getOnlineNick(NULL);
echo '<div style="margin: auto; width: 100px; padding: 1em;text-align:left;">';
$info = "";
$nb_users = count($users);
if ($nb_users <= 1)
$info = "<strong>%d</strong> user connected !";
else
$info = "<strong>%d</strong> users connected !";
echo "<p>".sprintf($info, $nb_users)."</p>";
echo "<ul>";
foreach($users as $u)
{
echo "<li>".$u."</li>";
}
echo "</ul>";
echo "</div>";
?>
change "any_word" string for the name you use..in your chat.
$params['title'] = "Phobiesociale";
$params['channels'] = array('pschannel');
$params["serverid"] = md5(__FILE__);
$info = new pfcInfo( md5(__FILE__));
Return to General Support (v1.x)
Users browsing this forum: No registered users and 54 guests