Jump to content

[SOLVED] IVAO in the Pilot Roster


Blu-Express VA

Recommended Posts

  • 4 months later...

your link not responce, you say so? http://qantasvirtual.com/index.php/Listing

I'm working on it but are at a standstill: (

Add to Custom Field with name IVAO, mark Sow in User Profile? and Show During Registration? at YES

Open the file pilots_list.tpl in the template and write this for add colon

<th>IVAO</th>

and this for populate the field

<?php echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO'); ?>

what they are not able to do to allow the connection to the id of IVAO :(

Link to comment
Share on other sites

your link not responce, you say so? http://qantasvirtual.com/index.php/Listing

I'm working on it but are at a standstill: (

Add to Custom Field with name IVAO, mark Sow in User Profile? and Show During Registration? at YES

Open the file pilots_list.tpl in the template and write this for add colon

<th>IVAO</th>

and this for populate the field

<?php echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO'); ?>

what they are not able to do to allow the connection to the id of IVAO :(

Go in your Admin CP and in the Site & Settings and click to Profile Fields, Add the field IVAO or VATSIM and select: Show During Registration? YES

Show in the Profile? YES

Now go in you pilots_list.tpl and add:

<th>IVAO</th>

or

<th>VATSIM</th>

and in the low of page add:

<td><?php
$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID');
if($fieldvalue != '')
{
  echo '<a href="http://www.ivao.aero/members/person/details.asp?ID='.$fieldvalue.'" target="_blank"><center><center><img src=" -- INSERT THE LINK FOR VIEW THE IMAGE -- YES IVAO --" width="20" height="18" border="0" alt="IVAO ID" /></center></a>';
}
else
{
echo '<center><img src=" -- INSERT THE LINK FOR VIEW IMAGE -- NO IVAO --" width="20" height="18" border="0"/></center></a>';
}
?>
</td>
<td><?php
$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
if($fieldvalue != '')
{
  echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'" target="_blank"><center><img src="INSERT THE LINK FOR VIEW IMAGE -- YES VATSIM --" width="20" height="18" border="0" alt="Vatsim ID" /></center></a>';
}
else
{
echo '<center><img src="INSERT THE LINK FOR VIEW IMAGE -- NO VATSIM --" width="20" height="18" border="0"/></center></a>';
}
?>
<?php
?></td>
<?php
}

?>

Kind Regards ;)

Link to comment
Share on other sites

  • 9 months later...
  • 2 years later...

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