<?php
$usersonline = StatsData::UsersOnline();
$guestsonline = StatsData::GuestsOnline();
?>
<?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).'" />'; ?> <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo $pilot->firstname . ' ' . $pilot->lastname;?></a><br /><?php echo "</p>";
}
?>
<!--<p class="txt-red10"> Have <?php echo count($usersonline);?> Pilots Online.</p>-->
<p><span class="txt-red10"> Have <?php echo count($guestsonline);?> Guests Online.</span></p>
There you go, try that, it is edited so that you can click on the name and be taken to their profile.