Jump to content

Code to get vatstats info on pilots


Strider

Recommended Posts

<?php

$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');

if($fieldvalue != '')

{

echo '<a href="http://vatstats.net/pilots/details/'.$fieldvalue.'" target="_blank"><img src="'.SITE_URL.'/lib/skins/SKIN_NAME/images/vatsim.gif" alt="Vatsim ID" border="0" /></a>';

}

?>

Place the above code in the pilots_list.tpl file, and create the image. place it in your skin folder images folder.

Note: It won't get everyone's info, as they have to fly online for it to get their details. But once they do, it will show the details.

Link to comment
Share on other sites

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...