Jump to content

acars map embed


Nick

Recommended Posts

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 but cant find it on the files. Hope this is clear.

Link to comment
Share on other sites

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.

okay, i added that.

Here's where i wanted the live map to show. if you go to my link 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

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.

Link to comment
Share on other sites

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

<html xmlns="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>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>

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

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

*/

$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

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

(int) 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"/>

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

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" 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" 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" WIDTH=850 HEIGHT=1000></IFRAME>

</body>

</html>

Link to comment
Share on other sites

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

<html xmlns="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>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>

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

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

*/

$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

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

(int) 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"/>

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

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

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