Jump to content

who's online?


mattsmith

Recommended Posts

I think this is what you need

<?php
$cws = new CodonWebService();


$usersonline = StatsData::UsersOnline();
$guestsonline = StatsData::GuestsOnline();

?>
<div style='text-align: left; font-weight: bold; font-size: 200%;
								 color: #009933'>Pilots Online <p> </p> </div>

 <?php
$shown = array();
foreach($usersonline as $pilot)
{
if(in_array($pilot->pilotid, $shown))
continue;
else
$shown[] = $pilot->pilotid;
echo "<p>";
echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />';
echo " {$pilot->firstname} {$pilot->lastname}<br />";
echo "</p>";
}
?>
<div style='text-align: left; font-weight: bold; font-size: 200%;
								 color: #009933'>Guests Online <p> </p> </div>

 <div> <p class="txt-red10">Currently

 <?php echo count($guestsonline);?>

 guest(s) visiting</div>
<p></p>

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...