Uh...
<div class="mainblock">
<h2>Newest Pilots:</h2>
<div class="block">
<table>
<thead>
<tr>
<th width="50%" scope="col">Pilot ID#</th>
<th width="50%" scope="col">Name</th>
</tr>
</thead>
<tbody>
<?php
foreach($pilots as $pilot)
{
/*
To include a custom field, use the following example:
<td>
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
</td>
For instance, if you added a field called "IVAO Callsign":
echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');
*/
?>
<tr>
<td><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
</td>
<td><?php echo $pilot->firstname.' '.$pilot->lastname ?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
exactly like that, into frontpage_recentpilots.tpl
Then
<?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>
wherever you want it...
Should only show 5... if not you did it wrong :S