# acars map embed

**URL:** <https://forum.phpvms.net/t/acars-map-embed/4338>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 22, 2011, 10:37pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338 "2011-03-22T22:37:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.phpvms.net/u/Nick)\
**Post date:** [March 22, 2011, 10:37pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/1 "2011-03-22T22:37:14Z")

</div>

Hi folks,

I have a running phpvms on my web and I have a another website, and I want to know if there is a way I can embed the live acars map? I tried figuring out the root part of the acars map. for an ex: [www.website.com/map](http://www.website.com/map) but cant find it on the files. Hope this is clear.

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [March 22, 2011, 10:39pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/2 "2011-03-22T22:39:10Z")

</div>

Embed [http://yoursite.com/action.php/acars](http://yoursite.com/action.php/acars) in an iframe or something. That will show the acars map and flight table without any skin.

---

<div class="post-metadata">

**Author:** ![Jeff](https://forum.phpvms.net/user_avatar/forum.phpvms.net/jeff/32/78_2.png) [@Jeff](https://forum.phpvms.net/u/Jeff)\
**Post date:** [March 22, 2011, 10:39pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/3 "2011-03-22T22:39:38Z")

</div>

Hope this is what you wanted…

public\_html/core/templates/route\_map.tpl

---

<div class="post-metadata">

**Author:** ![Nick](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.phpvms.net/u/Nick)\
**Post date:** [March 22, 2011, 10:46pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/4 "2011-03-22T22:46:19Z")

</div>

> Embed [http://yoursite.com/action.php/acars](http://yoursite.com/action.php/acars) in an iframe or something. That will show the acars map and flight table without any skin.

trying that..all it shows is “Pilot Flight Number Departure Arrival Status Altitude Speed Distance/Time Remain” no map and location of me. kacars is on, and i checked with the actual live one.

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [March 22, 2011, 10:53pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/5 "2011-03-22T22:53:40Z")

</div>

You’ll need the following somewhere in your \<head\>\</head\> section:

```
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

```

And possibly some others.

---

<div class="post-metadata">

**Author:** ![Nick](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.phpvms.net/u/Nick)\
**Post date:** [March 22, 2011, 11:00pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/6 "2011-03-22T23:00:30Z")

</div>

> You’ll need the following somewhere in your \<head\>\</head\> section:
> 
> And possibly some others.

okay, i added that.

Here’s where i wanted the live map to show. if you go to my link [http://worldwideairlines.net/ctp/](http://worldwideairlines.net/ctp/) and on the bottom you will see the blank map with the “Pilot Flight Number Departure Arrival Status Altitude Speed Distance/Time Remain” text.

The place where the phpvms software is here [http://nick.worldwideairlines.net/index.php/acars](http://nick.worldwideairlines.net/index.php/acars)

Maybe this will help get what I want?

Only need the Map and the status info.

Not sure what others i’d need, as you mentioned.

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [March 22, 2011, 11:04pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/7 "2011-03-22T23:04:31Z")

</div>

Remove the \</head\> directly after that javascript. I’m not sure exactly what else it is, have a look in core\_htmlhead.tpl.

---

<div class="post-metadata">

**Author:** ![Nick](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.phpvms.net/u/Nick)\
**Post date:** [March 22, 2011, 11:28pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/8 "2011-03-22T23:28:55Z")

</div>

here’s my code for the /ctp…

the map code is in the head part and the live tracker that im trying to get working is right at the end before “\</body\>”

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"\>](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)

\<html xmlns="[http://www.w3.org/1999/xhtml"\>](http://www.w3.org/1999/xhtml)

\<head\>

\<script type=“text/javascript” src="[http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"\>\</script\>](http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js)

\<script type=“text/javascript” src="[http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"\>\</script\>](http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js)

\<script type=“text/javascript” src="[http://maps.google.com/maps/api/js?sensor=true"\>\</script\>](http://maps.google.com/maps/api/js?sensor=true)

\<script type=“text/javascript” src=“\<?php echo fileurl(‘lib/js/jquery.form.js’);?\>”\>\</script\>

\<script type=“text/javascript” src=“\<?php echo fileurl(‘lib/js/phpvms.js’);?\>”\>\</script\>

\</head\>

\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /\>

\<title\>CROSS THE POND EASTBOUND 2010 : GTW9113\</title\>

\<style type=“text/css”\>

\<!–

body {

background-image: url(center\_bg.png);

}

.style1 {color: #FFFFFF}

–\>

\</style\>\</head\>

\<body\>

\<div align=“center”\>

\<p\>\<span class=“style1”\>\<img src=“banner-2011.png” width=“545” height=“109” alt=“CTPBANNER2011” /\>\<br /\>

\</span\>

\<div align=“center” class=“style1”\>\<img src=“fsimavzone.gif” width=“241” height=“350” alt=“CTPW” /\>\<br /\>

26 MARCH 2011\</span\>\</p\>

\</div\>

\<div align=“center” class=“style1”\>Command Captain Nick\</div\>\<br /\>

\<div align=“center” class=“style1”\>

\<hr /\>

-ROUTE INFO-\<br /\>

Company: \<a href="[http://gatewayva.net"\>Gateway](http://gatewayva.net) Airlines \</a\>\<br /\>

Flight: 9113

\<br /\>

Orgin: Munich, Germany (EDDM/MUC)

\<br /\>

Destination: Detroit, Michigan (KDTW/DTW)

\<br /\>

Route:

TBA\<br /\>

\</div\>

\<div align=“center” class=“style1”\>TOT 1110Z / 6:10 AM CENTRAL\<br /\>

Current Central Zulu Time: \<script type=“text/javascript”\>

\<!–

var d = new Date();

var curr\_hour = d.getHours();

var curr\_min = d.getMinutes();

document.write(curr\_hour + " : " + curr\_min);

//–\>

\</script\>

\<br /\>

\<? /\*

declare target date; source: [http://us.imdb.com/ReleaseDates?0121766](http://us.imdb.com/ReleaseDates?0121766) ;

\*/

$day = 26; // Day of the countdown

$month = 3; // Month of the countdown

$year = 2011; // Year of the countdown

$hour = 05; // Hour of the day (east coast time)

$event = “CROSS THE POND 2011 KICK-OFF”; //event

$calculation = ((mktime ($hour,0,0,$month,$day,$year) - time(void))/3600);

$hours = (int)$calculation;

$days = (int)($hours/24);

/\*

mktime() [http://www.php.net/manual/en/function.mktime.php](http://www.php.net/manual/en/function.mktime.php)

time() [http://www.php.net/manual/en/function.time.php](http://www.php.net/manual/en/function.time.php)

(int) [http://www.php.net/manual/en/language.types.integer.php](http://www.php.net/manual/en/language.types.integer.php)

\*/

?\>

\<ul\>

\<li\>The date is \<?=(date (“l, jS \of F Y g:i:s A”));?\>\</li\>

\<li\>Only \<?=$days?\> days until \<?=$event?\>\</li\>

\</ul\>

\</div\>

\<div align=“center” class=“style1”\>LIVE “FLIGHT DECK” STREAM\<br /\>

\</div\>

\<div align=“CENTER”\>\<object width=“480” height=“386”

classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000”\>

\<param name=“flashvars” value=“autoplay=true”/\>

\<param name=“allowfullscreen” value=“true”/\>

\<param name=“allowscriptaccess” value=“always”/\>

\<param name=“src” value="[http://www.ustream.tv/flash/viewer.swf?cid=624722"/\\>'\\>[http://www.ustream.tv/flash/viewer.swf?cid=624722"](http://www.ustream.tv/flash/viewer.swf?cid=624722%22/%5C%3E'%5C%3E%5Bhttp://www.ustream.tv/flash/viewer.swf?cid=624722%22)]([http://www.ustream.tv/flash/viewer.swf?cid=624722](http://www.ustream.tv/flash/viewer.swf?cid=624722))/\>

\<embed flashvars=“autoplay=true&locale=en\_US” width=“480” height=“386”

allowfullscreen=“true” allowscriptaccess=“always”

src="[http://www.ustream.tv/flash/viewer.swf?cid=624722"](http://www.ustream.tv/flash/viewer.swf?cid=624722)

type=“application/x-shockwave-flash”/\>

\</object\>\</div\>

\<div align=“CENTER”\>\<iframe width=“300” height=“400” src=“[http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=6&showTimestamp=true"](http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=6&showTimestamp=true) style=“border:0;outline:0” frameborder=“0” scrolling=“no” bgcolor=”#ffffff"\>\</iframe\>\</div\>

\<br /\>

\<div align=“center” class=“style1”\>LIVE COCKPIT VIEW\</div\>

\<div align=“center”\>\<iframe width=“560” height=“340” src="[http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=4&color=0xe7e7e7&autoPlay=true&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true"](http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=4&color=0xe7e7e7&autoPlay=true&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true) style=“border:0;outline:0” frameborder=“0” scrolling=“no”\>\</iframe\>\</div\>

\<br /\>

\<div align=“center” class=“style1”\>GTW9113 FLIGHT TRACKER\</div\>\<br /\>

\<IFRAME SRC="[http://nick.worldwideairlines.net/action.php/acars"](http://nick.worldwideairlines.net/action.php/acars) WIDTH=850 HEIGHT=1000\>\</IFRAME\>

\</body\>

\</html\>

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [March 22, 2011, 11:57pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/9 "2011-03-22T23:57:49Z")

</div>

Remove that first \</head\>…

---

<div class="post-metadata">

**Author:** ![Nick](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.phpvms.net/u/Nick)\
**Post date:** [March 22, 2011, 11:59pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/10 "2011-03-22T23:59:16Z")

</div>

> Remove that first \</head\>…

did it. no difference made.

now it makes…

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"\>](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)

\<html xmlns="[http://www.w3.org/1999/xhtml"\>](http://www.w3.org/1999/xhtml)

\<head\>

\<script type=“text/javascript” src="[http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"\>\</script\>](http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js)

\<script type=“text/javascript” src="[http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"\>\</script\>](http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js)

\<script type=“text/javascript” src="[http://maps.google.com/maps/api/js?sensor=true"\>\</script\>](http://maps.google.com/maps/api/js?sensor=true)

\<script type=“text/javascript” src=“\<?php echo fileurl(‘lib/js/jquery.form.js’);?\>”\>\</script\>

\<script type=“text/javascript” src=“\<?php echo fileurl(‘lib/js/phpvms.js’);?\>”\>\</script\>

\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /\>

\<title\>CROSS THE POND EASTBOUND 2010 : GTW9113\</title\>

\<style type=“text/css”\>

\<!–

body {

background-image: url(center\_bg.png);

}

.style1 {color: #FFFFFF}

–\>

\</style\>\</head\>

\<body\>

\<div align=“center”\>

\<p\>\<span class=“style1”\>\<img src=“banner-2011.png” width=“545” height=“109” alt=“CTPBANNER2011” /\>\<br /\>

\</span\>

\<div align=“center” class=“style1”\>\<img src=“fsimavzone.gif” width=“241” height=“350” alt=“CTPW” /\>\<br /\>

26 MARCH 2011\</span\>\</p\>

\</div\>

\<div align=“center” class=“style1”\>Command Captain Nick\</div\>\<br /\>

\<div align=“center” class=“style1”\>

\<hr /\>

-ROUTE INFO-\<br /\>

Company: \<a href="[http://gatewayva.net"\>Gateway](http://gatewayva.net) Airlines \</a\>\<br /\>

Flight: 9113

\<br /\>

Orgin: Munich, Germany (EDDM/MUC)

\<br /\>

Destination: Detroit, Michigan (KDTW/DTW)

\<br /\>

Route:

TBA\<br /\>

\</div\>

\<div align=“center” class=“style1”\>TOT 1110Z / 6:10 AM CENTRAL\<br /\>

Current Central Zulu Time: \<script type=“text/javascript”\>

\<!–

var d = new Date();

var curr\_hour = d.getHours();

var curr\_min = d.getMinutes();

document.write(curr\_hour + " : " + curr\_min);

//–\>

\</script\>

\<br /\>

\<? /\*

declare target date; source: [http://us.imdb.com/ReleaseDates?0121766](http://us.imdb.com/ReleaseDates?0121766) ;

\*/

$day = 26; // Day of the countdown

$month = 3; // Month of the countdown

$year = 2011; // Year of the countdown

$hour = 05; // Hour of the day (east coast time)

$event = “CROSS THE POND 2011 KICK-OFF”; //event

$calculation = ((mktime ($hour,0,0,$month,$day,$year) - time(void))/3600);

$hours = (int)$calculation;

$days = (int)($hours/24);

/\*

mktime() [http://www.php.net/manual/en/function.mktime.php](http://www.php.net/manual/en/function.mktime.php)

time() [http://www.php.net/manual/en/function.time.php](http://www.php.net/manual/en/function.time.php)

(int) [http://www.php.net/manual/en/language.types.integer.php](http://www.php.net/manual/en/language.types.integer.php)

\*/

?\>

\<ul\>

\<li\>The date is \<?=(date (“l, jS \of F Y g:i:s A”));?\>\</li\>

\<li\>Only \<?=$days?\> days until \<?=$event?\>\</li\>

\</ul\>

\</div\>

\<div align=“center” class=“style1”\>LIVE “FLIGHT DECK” STREAM\<br /\>

\</div\>

\<div align=“CENTER”\>\<object width=“480” height=“386”

classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000”\>

\<param name=“flashvars” value=“autoplay=true”/\>

\<param name=“allowfullscreen” value=“true”/\>

\<param name=“allowscriptaccess” value=“always”/\>

\<param name=“src” value="[http://www.ustream.tv/flash/viewer.swf?cid=624722"/\\>'\\>[http://www.ustream.tv/flash/viewer.swf?cid=624722"](http://www.ustream.tv/flash/viewer.swf?cid=624722%22/%5C%3E'%5C%3E%5Bhttp://www.ustream.tv/flash/viewer.swf?cid=624722%22)]([http://www.ustream.tv/flash/viewer.swf?cid=624722](http://www.ustream.tv/flash/viewer.swf?cid=624722))/\>

\<embed flashvars=“autoplay=true&locale=en\_US” width=“480” height=“386”

allowfullscreen=“true” allowscriptaccess=“always”

src="[http://www.ustream.tv/flash/viewer.swf?cid=624722"](http://www.ustream.tv/flash/viewer.swf?cid=624722)

type=“application/x-shockwave-flash”/\>

\</object\>\</div\>

\<div align=“CENTER”\>\<iframe width=“300” height=“400” src=“[http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=6&showTimestamp=true"](http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=6&showTimestamp=true) style=“border:0;outline:0” frameborder=“0” scrolling=“no” bgcolor=”#ffffff"\>\</iframe\>\</div\>

\<br /\>

\<div align=“center” class=“style1”\>LIVE COCKPIT VIEW\</div\>

\<div align=“center”\>\<iframe width=“560” height=“340” src="[http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=4&color=0xe7e7e7&autoPlay=true&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true"](http://cdn.livestream.com/embed/captainnickgtw9113crossthepond2011?layout=4&color=0xe7e7e7&autoPlay=true&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true) style=“border:0;outline:0” frameborder=“0” scrolling=“no”\>\</iframe\>\</div\>

\<br /\>

\<div align=“center” class=“style1”\>GTW9113 FLIGHT TRACKER\</div\>\<br /\>

\<IFRAME SRC="[http://nick.worldwideairlines.net/action.php/acars"](http://nick.worldwideairlines.net/action.php/acars) WIDTH=850 HEIGHT=1000\>

If you can see this, your browser doesn’t

understand IFRAME. However, we’ll still

\<A HREF=“hello.html”\>link\</A\>

you to the file.

\</IFRAME\>

\</body\>

\</html\>

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 23, 2011, 8:06pm UTC](https://forum.phpvms.net/t/acars-map-embed/4338/11 "2011-03-23T20:06:37Z")

</div>

Personally speaking i would only use the iframe at a last result. Try the embed option first.

Thats not the full code above you are missing php code, that just looks like a view source optput.
