# \[SOLVED!\]IVAO and Vatsim Code Help!

**URL:** <https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [May 4, 2011, 12:10pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663 "2011-05-04T12:10:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blu-Express\_VA](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/6de8d8/32.png) [@Blu-Express\_VA](https://forum.phpvms.net/u/Blu-Express_VA)\
**Post date:** [May 4, 2011, 12:10pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663/1 "2011-05-04T12:10:18Z")

</div>

Hello,

I put the code in this topic to add to my IVAO and VATSIM

Pilot Roster, the question now is: Can anyone give me the codes to be put

the registration page and maybe even in the pilot Center for

id change the number?

easyjetva like?

Thanks!

---

<div class="post-metadata">

**Author:** ![James142](https://forum.phpvms.net/user_avatar/forum.phpvms.net/james142/32/92_2.png) [@James142](https://forum.phpvms.net/u/James142)\
**Post date:** [May 4, 2011, 2:39pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663/2 "2011-05-04T14:39:21Z")

</div>

> Hello,
> 
> I put the code in this topic to add to my IVAO and VATSIM
> 
> Pilot Roster, the question now is: Can anyone give me the codes to be put
> 
> the registration page and maybe even in the pilot Center for
> 
> id change the number?
> 
> easyjetva like?
> 
> Thanks!

Under your Admin panel, go to: **site and settings \> Profile fields** […]

---

<div class="post-metadata">

**Author:** ![Blu-Express\_VA](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/6de8d8/32.png) [@Blu-Express\_VA](https://forum.phpvms.net/u/Blu-Express_VA)\
**Post date:** [May 4, 2011, 3:31pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663/3 "2011-05-04T15:31:30Z")

</div>

Ok

Thanks,

and for redirect the image to IVAO or VATSIM Profile?

---

<div class="post-metadata">

**Author:** ![Blu-Express\_VA](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/6de8d8/32.png) [@Blu-Express\_VA](https://forum.phpvms.net/u/Blu-Express_VA)\
**Post date:** [May 4, 2011, 3:49pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663/4 "2011-05-04T15:49:53Z")

</div>

Ok!,

Solved!

For all, add this in your pilot\_list.tpl (core-templates)

```
echo '<a href="http://www.ivao.aero/members/person/details.asp?ID='.$fieldvalue.'" target="_blank"><center><center><img src="/images/yesvat.png" width="20" height="18" border="0" alt="IVAO ID" /></center></a>';

```

Thanks!

---

<div class="post-metadata">

**Author:** ![Fernando](https://forum.phpvms.net/user_avatar/forum.phpvms.net/fernando/32/169_2.png) [@Fernando](https://forum.phpvms.net/u/Fernando)\
**Post date:** [August 25, 2013, 2:10pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663/5 "2013-08-25T14:10:45Z")

</div>

> Ok!,
> 
> Solved!
> 
> For all, add this in your pilot\_list.tpl (core-templates)
> 
> echo ‘[![IVAO ID](https://forum.phpvms.net/images/yesvat.png)](http://www.ivao.aero/members/person/details.asp?ID='.$fieldvalue.')’;
> 
> Thanks!

Open the page Pilot\_list.tpl

and replace the page for this

```
style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<div class="cufon underline" style="width:auto; padding:5px; margin-top:10px; margin-bottom:10px; border-bottom: 3px solid; font-size: 24px;">Time de Águias </div>
<?php
if(!$allpilots)
{
 echo 'There are no pilots!';
 return;
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
 <tbody>
 </tbody>
  <td width="9%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Piloto ID</td>
  <td width="23%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Nome</td>
   <td width="10%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Rank</td>
   <td width="7%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Voos</td>
   <td width="11%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Horas Voadas </td>
   <td width="10%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Ultimo Voo </td>
   <td width="10%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">Status</td>
   <td width="10%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">VATSIM ID</td>
   <td width="10%" height="10" align="center" bgcolor="#e97714" class="roster_header style1">IVAO ID</td>
   <?php
foreach($allpilots as $pilot)
{
/*
 To include a custom field, use the following example:
 <td>
  <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
 </td>
 For instance, if you added a field called "IVAO Callsign":
  echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); 
 */

 // To skip a retired pilot, uncomment the next line:
 //if($pilot->retired == 1) { continue; }
?>
 <tr class="roster_data" style="height: 20px;">
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><img src="<?php echo Countries::getCountryImage($pilot->location);?>"
  alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><?php echo $pilot->totalflights?></td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><?php
 if($pilot->lastpirep == 0)
 {
  echo 'None';
 }

 else
 {
 $report = PIREPData::GetLastReports($pilot->pilotid, 1);
 echo date('d/m/Y', strtotime($report->submitdate));
 }
?> </td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><?php
 if($pilot->retired == '1')
 {echo '<font class="inactive">Inactive</font>';}
    else
    {echo '<font class="active">Active</font>';}
   ?></td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><?php  
 $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');

 if($fieldvalue != '')
 {
  echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'" target="_blank">'.$fieldvalue.'</a>';
 }
 else
 {
  echo '<font style="color: #FFAA00;">None</font>';
 }
 ?> </td>
   <td height="10" class="roster_data" align="center" style="border-bottom:1px dotted #CCCCCC"><?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">'.$fieldvalue.'</a>';
 }
 else
 {
  echo '<font style="color: #FFAA00;">None</font>';
 }
 ?> </td>
   <?php
}
?>
 </tr>
</table>

```

---

<div class="post-metadata">

**Author:** ![Onno](https://forum.phpvms.net/user_avatar/forum.phpvms.net/onno/32/330_2.png) [@Onno](https://forum.phpvms.net/u/Onno)\
**Post date:** [September 7, 2013, 12:59pm UTC](https://forum.phpvms.net/t/solved-ivao-and-vatsim-code-help/4663/6 "2013-09-07T12:59:10Z")

</div>

when i enter the page above i get in the hielf off ivao none although i’ve enter the vid in the profile and the database.
