# How to show aircraft in ACARS map page \[SOLVED\]

**URL:** <https://forum.phpvms.net/t/how-to-show-aircraft-in-acars-map-page-solved/13131>\
**Category:** kACARS\
**Created:** [February 11, 2020, 11:13am UTC](https://forum.phpvms.net/t/how-to-show-aircraft-in-acars-map-page-solved/13131 "2020-02-11T11:13:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CFVA](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cfva/32/420_2.png) [@CFVA](https://forum.phpvms.net/u/CFVA)\
**Post date:** [February 11, 2020, 11:13am UTC](https://forum.phpvms.net/t/how-to-show-aircraft-in-acars-map-page-solved/13131/1 "2020-02-11T11:13:09Z")

</div>

Want&nbsp;to add the aircraft being flown in the Live ACARS map page.

ACARS.PHP says variable&nbsp;&nbsp;&nbsp; &nbsp;\<%=flight.aircraftname%\>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Gives the full name

So I added that in ACARS.PHP:

So I have

&nbsp;&nbsp; &nbsp;\<tr\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Pilot\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Flight Number\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Departure\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Arrival\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Aircraft\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Status\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Altitude\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Speed\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Distance/Time Remain\</b\>\</td\>  
&nbsp;&nbsp; &nbsp;\</tr\>  
for the table &

\<script type=“text/html” id=“acars\_map\_row”\>  
\<tr class=“\<%=flight.trclass%\>”\>  
\<td\>\<a href=“\<?php echo url(‘/profile/view’);?\>/\<%=flight.pilotid%\>”\>\<%=flight.pilotid%\> - \<%=flight.pilotname%\>\</a\>\</td\>  
\<td\>\<?php echo “CF”?\>\<%=flight.flightnum%\>\</td\>  
\<td\>\<%=flight.depicao%\>\</td\>  
\<td\>\<%=flight.arricao%\>\</td\>  
\<td\>\<\<%=flight.aircraftname%\>\</td\>  
\<td\>\<%=flight.phasedetail%\>\</td\>  
\<td\>\<%=flight.alt%\>\</td\>  
\<td\>\<%=flight.gs%\>\</td\>  
\<td\>\<%=flight.distremaining%\> \<?php echo Config::Get(‘UNITS’);?\> / \<%=flight.timeremaining%\>\</td\>  
\</tr\>

All other variables show except aircraft name!

Using kAcars 1.0.1.5 & PHPVMS 5.5.2

Thanks in advance

&nbsp;

---

<div class="post-metadata">

**Author:** ![gio1961](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@gio1961](https://forum.phpvms.net/u/gio1961)\
**Post date:** [February 11, 2020, 11:28am UTC](https://forum.phpvms.net/t/how-to-show-aircraft-in-acars-map-page-solved/13131/2 "2020-02-11T11:28:41Z")

</div>

> 16 minutes ago, CFVA said:
> 
> Want&nbsp;to add the aircraft being flown in the Live ACARS map page.
> 
> ACARS.PHP says variable&nbsp;&nbsp;&nbsp; &nbsp;\<%=flight.aircraftname%\>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Gives the full name
> 
> So I added that in ACARS.PHP:
> 
> So I have
> 
> &nbsp;&nbsp; &nbsp;\<tr\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Pilot\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Flight Number\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Departure\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Arrival\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Aircraft\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Status\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Altitude\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Speed\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<td\>\<b\>Distance/Time Remain\</b\>\</td\>  
> &nbsp;&nbsp; &nbsp;\</tr\>  
> for the table &
> 
> \<script type=“text/html” id=“acars\_map\_row”\>  
> \<tr class=“\<%=flight.trclass%\>”\>  
> \<td\>\<a href=“\<?php echo url(‘/profile/view’);?\>/\<%=flight.pilotid%\>”\>\<%=flight.pilotid%\> - \<%=flight.pilotname%\>\</a\>\</td\>  
> \<td\>\<?php echo “CF”?\>\<%=flight.flightnum%\>\</td\>  
> \<td\>\<%=flight.depicao%\>\</td\>  
> \<td\>\<%=flight.arricao%\>\</td\>  
> \<td\>\<\<%=flight.aircraftname%\>\</td\>  
> \<td\>\<%=flight.phasedetail%\>\</td\>  
> \<td\>\<%=flight.alt%\>\</td\>  
> \<td\>\<%=flight.gs%\>\</td\>  
> \<td\>\<%=flight.distremaining%\> \<?php echo Config::Get(‘UNITS’);?\> / \<%=flight.timeremaining%\>\</td\>  
> \</tr\>
> 
> All other variables show except aircraft name!
> 
> Using kAcars 1.0.1.5 & PHPVMS 5.5.2
> 
> Thanks in advance
> 
> &nbsp;

Try changing this code from

\<td\>\<\<%=flight.aircraftname%\>\</td\>

&nbsp;

to \<td\>\<%=flight.aircraftname%\>\</td\>

there is “\<” more

&nbsp;

---

<div class="post-metadata">

**Author:** ![CFVA](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cfva/32/420_2.png) [@CFVA](https://forum.phpvms.net/u/CFVA)\
**Post date:** [February 11, 2020, 1:41pm UTC](https://forum.phpvms.net/t/how-to-show-aircraft-in-acars-map-page-solved/13131/3 "2020-02-11T13:41:57Z")

</div>

Thank you so much. I hadn’t even noticed the extra \< in the line.

Works great now

&nbsp;
