ncd200
1
Hello,
I have created a new pilot list with Vatsim status banners in it.
Only question is How do I let the system fills the Vatsim acount ID.
The code I am using is :
http://www.vatsimsig…tus/XXXXXXX.jpg
I have created a custom profile field for your vatsim id, but now a script must insert the id on the xxxxxxxx.
I have this code but it wont work.
[http://www.vatsimsigs.co.uk/status/(](http://www.vatsimsigs.co.uk/status/() PilotData::GetFieldValue($pilot->pilotid, ‘Vatsim ID’) != “” ).jpg
any help would be great.
Rick
web541
2
Try this?
<?php
$fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' );
if( $fieldvalue != '' )
{
echo '<img src="http://www.vatsimsigs.co.uk/status/'.$fieldvalue.'.jpg" />' ;
}
?>
This is the code I use in the pilot roster with just a link to vataware.
<?php
$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
if($fieldvalue != '')
{
echo '<a href="http://www.vataware.com/pilot/'.$fieldvalue.'" target="_blank"><img src="'.SITE_URL.'/images/vatsim.gif" alt="Vatsim ID" border="0" /></a>';
}
?>