I wanted a simple forum block for version 4.04 so I hacked one together from this authors work.. This is simple, shows users and admins in bold.
for example look at my site:
http://www.rentacheat.com/forums
Go into Forums and Moderator, Forum Blocks Manager -> add lock, Custom HTML/PHP
upload the authors 2 classes, I didnt use his product import, and hard coded my settings directly in the php.
Code:
include "/home/rent/public_html/forums/includes/functions_ventrilostatus.php";
include "/home/rent/public_html/forums/includes/class_ventrilostatus.php";
$stat = new CVentriloStatus;
$stat->m_cmdprog = "/home/kozmok/ventsrv/ventrilo_status";
$stat->m_cmdcode = "2";
$stat->m_cmdhost = "72.167.147.104";
$stat->m_cmdport = "3784";
$stat->m_cmdpass = "";
$rc = $stat->Request();
if ( $rc )
{
$my_output = "CVentriloStatus->Request() failed. <strong>$stat->m_error</strong><br><br>\n";
} else
{
$my_output = "<br>Server: www.kozmok.com port 3784<br>";
$my_output .= "Users on Vent: " . count( $stat->m_clientlist ) . "<br><br>";
for ( $i = 0; $i < count( $stat->m_clientlist ); $i++ )
{
$client = $stat->m_clientlist[ $i ];
if($client->m_admin == 1)
{
$my_output .= "<b>" . htmlspecialchars($client->m_name) . "</b>";
}
else
{
$my_output .= htmlspecialchars($client->m_name);
}
if (count( $stat->m_clientlist ) > 1)
{
$my_output .= ", ";
}
}
}
return $my_output;