Hey Guys,
So, If you go into your admin panel where you can create custom fields you can mirror them so they show on your pilots_list.tpl, So if i made a field called “Vatsim ID” and I used this code;
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'Vatsim ID'); ?>
It would show on my Pilot Roser/List.
However, I was messing around and wondering if their is any way I can make it so I can have a custom field on my pilot_public_profile.tpl page without using the following code;
<?php
// Show the public fields
if($allfields)
{
foreach($allfields as $field)
{
echo "<li><strong>$field->title: </strong>$field->value</li>";
}
}
?>
I want it so instead of showing ALL of the custom fields It would only show the ones I want. I know that you can choose in the admin panel to not show certain fields on the Pilot’s profile however I still need this code
I thought something like this might of done it but it messed up my site
<?php echo PilotData::GetFieldValue($pilot->userinfo, 'Vatsim ID'); ?>
Cheers,
Thomas.