Jump to content

Recommended Posts

Posted

Can anyone tell me who i can make my Pilot Roster show if they have Vatsim or not and have it link to their VATAWARE account?

like on this VA's one

http://www.flyaerova...ndex.php/pilots

Thanks in Advance

Hi.

Add:

<?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' );
if( $fieldvalue != '' )
{
echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Vatsim ID" /></a></a>' ;
}
else
{
echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ;
}?>

(got the code from http://forum.phpvms.net/topic/4098-vatsim-codingagain/page__p__29199__hl__vataware__fromsearch__1#entry29199 a while back)

James

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...