Jump to content

Vatsim status banner [SOLVED]


ncd200

Recommended Posts

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/( PilotData::GetFieldValue($pilot->pilotid, 'Vatsim ID') != "" ).jpg

any help would be great.

Rick

Link to comment
Share on other sites

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>';
}
?>

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