Daniel
October 26, 2010, 6:13am
1
Could some possibly give me the full script for the pilot_list.tpl to look like this.
http://www.easyjetva.com/index.php/pilots
and of course i will change the images and color and font etc. Just need the Code
Thanks,
Daniel
Sorry about the description “Can anyone Fix it?”
Daniel
October 26, 2010, 6:30am
2
and to add if possible.
No Hubs in the roster just. Just remove that from the script if possible. So it is just one list.
thank you very much in advance.
Jon
October 26, 2010, 8:17am
3
This is What I Use. Look Here Just added a few php functions to the orginal code
IS that what you want~? If Yes then it’s:
<h3><?php echo $title?></h3>
<?php
if(!$allpilots)
{
echo 'There are no pilots!';
return;
}
?>
<table id="tabledlist" class="tablesorter">
<thead>
<tr>
<th>Pilot ID</th>
<th>Name</th>
<th>Rank</th>
<th>Flights</th>
<th>Hours</th>
<th>Active/Inactive</th>
<th>VATSIM ID</th>
</tr>
</thead>
<tbody>
<?php
foreach($allpilots 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');
*/
// To skip a retired pilot, uncomment the next line:
//if($pilot->retired == 1) { continue; }
?>
<tr>
<td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
</td>
<td>
<img src="<?php echo Countries::getCountryImage($pilot->location);?>"
alt="<?php echo Countries::getCountryName($pilot->location);?>" />
<?php echo $pilot->firstname.' '.$pilot->lastname?>
</td>
<td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
<td><?php echo $pilot->totalflights?></td>
<td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
<td> <?php if($userinfo->retired == '1') echo "Retired"; else echo "Active";?></td>
<td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?></td>
<?php
}
?>
</tbody>
</table>
Remember you need to put this into your chosen skins folder so you don’t overwrite the original file.
Regards,
Jon
Daniel
October 26, 2010, 8:24am
4
I need it so that it does not display the hub anyware on the roster. and i can but an image if they fly on Vatsim or Not like a tick and a cross. So it is just one big list.
Jon
October 26, 2010, 8:29am
5
Oh ok, so you want a tick for poeple who have a vatsim id and a cross or those who don’t and then no hubs?
Daniel
October 26, 2010, 11:31am
6
yes. and the Same for IVAO if they fly on it Tick if not Cross
thanks
Plus what custom field would i have to add?
In the registration you need to add the custom field just go to the admin and add custom field “ivao” and “Vatsim” whatever you call them you can then add this to the pilots list, the code is in here somewhere, sorry im, not at my home pc or i would post the code.
As for modification of the way the list is displayed that is in the code modules pilots and pilots.php