Jump to content

Issue with pilot brief page


iGavB

Recommended Posts

Hi all,

Everything is running beautifully on my phpvms site, except for one thing, the pilot brief page.

The "click to view NOTAMS" button for the airports always seems to go to a page that isnt there: https://pilotweb.nas.faa.gov/geo/icaoRadius.html?icao_id=EGNX&radius=2 (being one example for EGNX)

Also, the airport chars are just image holder with links that dont exist again - http://www.airnav.com/airport/EGNX#ifr (being an example)

And finally, I am not sure if its a setup issue or such but the weather graphs dont seem to do anything are are for the wrong country... :(

Anyone able to help?

Link to comment
Share on other sites

Yoursite/core/templates/schedule_briefing.tpl

Change the line : 20 and 22

<td width="50%" ><?php echo "{$schedule->depname} ($schedule->depicao)"; ?><br />

<a href="https://pilotweb.nas...l?icao_id=<?php echo $schedule->depicao?>&radius=2"

target="_blank">Click to view NOTAMS</a>

The airport EGKK possibly was not found, that is, the site where this should not directing posuir information that airport.

Link to comment
Share on other sites

I changed your page, please copy the scripit below and change in your current file.

Yoursite.com/core/templates/schedule_briefing.tpl

Make a backup before, after, replace the current script for this I put here and send it to your hosting as the address above and replace.

After take the test and let me know about any success or error.

<h3>Flight Briefing</h3>

<script src="http://skyvector.com/linkchart.js"></script>

<table width="98%" align="center" cellpadding="4">

<!-- Flight ID -->

<tr style="background-color: #333; color: #FFF;">

<td colspan="2">Flight</td>

</tr>

<tr>

<td colspan="2">

<?php echo $schedule->code.$schedule->flightnum; ?>

</td>

</tr>

<tr style="background-color: #333; color: #FFF;">

<td>Departure</td>

<td>Arrival</td>

</tr>

<tr>

<td width="50%" ><?php echo "{$schedule->depname} ($schedule->depicao)"; ?><br />

<a href="http://ourairports.mobi/airports/<?php echo $schedule->depicao?>/notams.html"

target="_blank">Click to view NOTAMS</a>

</td>

<td width="50%" ><?php echo "{$schedule->arrname} ($schedule->arricao)"; ?><br />

<a href="http://ourairports.mobi/airports/<?php echo $schedule->arricao?>notams.html"

target="_blank">Click to view NOTAMS</a></td>

</tr>

<!-- Times Row -->

<tr style="background-color: #333; color: #FFF;">

<td>Departure Time</td>

<td>Arrival Time</td>

</tr>

<tr>

<td width="50%" ><?php echo "{$schedule->deptime}"; ?></td>

<td width="50%" ><?php echo "{$schedule->arrtime}"; ?></td>

</tr>

<!-- Aircraft and Distance Row -->

<tr style="background-color: #333; color: #FFF;">

<td>Aircraft</td>

<td>Distance</td>

</tr>

<tr>

<td width="50%" ><?php echo "{$schedule->aircraft}"; ?></td>

<td width="50%" ><?php echo "{$schedule->distance}"; ?></td>

</tr>

<tr style="background-color: #333; color: #FFF;">

<td>Departure METAR</td>

<td>Arrival METAR</td>

</tr>

<tr>

<td width="50%" ><div id="<?php echo $schedule->depicao; ?>" class="metar">Getting Airport METAR</div> <br />

<a href="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/weather" target="_blank">

View Weather Details</a>

</td>

<td width="50%" ><div id="<?php echo $schedule->arricao; ?>" class="metar">Getting Airport METAR</div><br />

<a href="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/weather" target="_blank">

View Weather Details</a></td>

</tr>

<!-- Route -->

<tr style="background-color: #333; color: #FFF;">

<td colspan="2">Route</td>

</tr>

<tr>

<td colspan="2">

<?php

# If it's empty, insert some blank lines

if($schedule->route == '')

{

echo '<br /> <br /> <br />';

}

else

{

echo strtoupper($schedule->route);

}

?>

</td>

</tr>

<!-- Notes -->

<tr style="background-color: #333; color: #FFF;">

<td colspan="2">Notes</td>

</tr>

<tr>

<td colspan="2" style="padding: 6px;">

<?php

# If it's empty, insert some blank lines

if($schedule->notes == '')

{

echo '<br /> <br /> <br />';

}

else

{

echo "{$schedule->notes}";

}

?>

</td>

</tr>

</table>

<table width="98%" align="center" padding="2">

<tr style="background-color: #333; color: #FFF; padding: 5px;">

<td>Additional Data</td>

</tr>

<tr>

<td><a href="http://flightaware.com/analysis/route.rvt?origin=<?php echo $schedule->depicao?>&destination=<?php echo $schedule->arricao?>">View recent IFR Routes data</a></td>

</tr>

</table>

<h3>Procedures and Information</h3>

<table width="98%" align="center">

<tr style="background-color: #333; color: #FFF;">

<td>Charts for <?php echo $schedule->depicao?></td>

<td>Charts for <?php echo $schedule->arricao?></td>

</tr>

<tr align="center">

<td width="50%" valign="top">

<a href="http://www.airnav.com/airport/<?php echo $schedule->depicao?>#ifr" target="_blank">

<img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/APD/AIRPORT+DIAGRAM/png"

width="387px" height="594px" alt="No chart available" /></a>

</td>

<td width="50%" valign="top">

<a href="http://www.airnav.com/airport/<?php echo $schedule->arricao?>#ifr" target="_blank">

<img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/APD/AIRPORT+DIAGRAM/png"

width="387px" height="594px" alt="No chart available" /></a>

</td>

</tr>

</table>

<h3>Weather</h3>

<div align="center">

<p><img src="http://flightaware.com/resources/wx/us_depiction.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/surface_analysis.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/national_radar.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/us_high_level_weather_12z.gif" /></p>

<p><img src="http://flightaware.com/resources/wx/severe_outlook_day_1.gif" /></p>

<a href="http://flightaware.com/resources/weather_maps/" target="_blank">View additional weather graphs</a>

</div>

<div align="right" style="font-size: small;">Data Courtesy of <a href="http://flightaware.com" target="_new">FlightAware</a></div>

<br />

Link to comment
Share on other sites

This is my entire schedule_briefing.tpl right now (and yes the charts is the main thing for me)

<h3>Flight Briefing</h3>
<script src="[url="http://skyvector.com/linkchart.js%22></script>"]http://skyvector.com...t.js"></script>[/url]
<table width="98%" align="center" cellpadding="4">
<!-- Flight ID -->
<tr style="background-color: #333; color: #FFF;">
<td colspan="2">Flight</td>
</tr>
<tr>
<td colspan="2">
<?php echo $schedule->code.$schedule->flightnum; ?>
</td>
</tr>

<tr  style="background-color: #333; color: #FFF;">
<td>Departure</td>
<td>Arrival</td>
</tr>

<tr>
<td width="50%" ><?php echo "{$schedule->depname} ($schedule->depicao)"; ?><br />
<a href="[url="http://ourairports.mobi/airports/<?php"]http://ourairports.m.../airports/<?php[/url] echo $schedule->depicao?>/notams.html"
target="_blank">Click to view NOTAMS</a>
</td>
<td width="50%" ><?php echo "{$schedule->arrname} ($schedule->arricao)"; ?><br />
<a href="[url="http://ourairports.mobi/airports/<?php"]http://ourairports.m.../airports/<?php[/url] echo $schedule->arricao?>notams.html"
target="_blank">Click to view NOTAMS</a></td>
</tr>

<!-- Times Row -->
<tr style="background-color: #333; color: #FFF;">
<td>Departure Time</td>
<td>Arrival Time</td>
</tr>
<tr>
<td width="50%" ><?php echo "{$schedule->deptime}"; ?></td>
<td width="50%" ><?php echo "{$schedule->arrtime}"; ?></td>
</tr>

<!-- Aircraft and Distance Row -->
<tr style="background-color: #333; color: #FFF;">
<td>Aircraft</td>
<td>Distance</td>
</tr>
<tr>
<td width="50%" ><?php echo "{$schedule->aircraft}"; ?></td>
<td width="50%" ><?php echo "{$schedule->distance}"; ?></td>
</tr>

<tr style="background-color: #333; color: #FFF;">
<td>Departure METAR</td>
<td>Arrival METAR</td>
</tr>
<tr>
<td width="50%" ><div id="<?php echo $schedule->depicao; ?>" class="metar">Getting Airport METAR</div> <br />
<a href="[url="http://flightaware.com/resources/airport/<?php"]http://flightaware.c...s/airport/<?php[/url] echo $schedule->depicao?>/weather" target="_blank">
View Weather Details</a>
</td>
<td width="50%" ><div id="<?php echo $schedule->arricao; ?>" class="metar">Getting Airport METAR</div><br />
<a href="[url="http://flightaware.com/resources/airport/<?php"]http://flightaware.c...s/airport/<?php[/url] echo $schedule->arricao?>/weather" target="_blank">
View Weather Details</a></td>
</tr>

<!-- Route -->
<tr style="background-color: #333; color: #FFF;">
<td colspan="2">Route</td>
</tr>
<tr>
<td colspan="2">
<?php
# If it's empty, insert some blank lines
if($schedule->route == '')
{
echo '<br /> <br /> <br />';
}
else
{
echo strtoupper($schedule->route);
}
?>
</td>
</tr>

<!-- Notes -->
<tr style="background-color: #333; color: #FFF;">
<td colspan="2">Notes</td>
</tr>
<tr>
<td colspan="2" style="padding: 6px;">
<?php
# If it's empty, insert some blank lines
if($schedule->notes == '')
{
echo '<br /> <br /> <br />';
}
else
{
echo "{$schedule->notes}";
}
?>
</td>
</tr>


</table>

<table width="98%" align="center" padding="2">
<tr style="background-color: #333; color: #FFF; padding: 5px;">
<td>Additional Data</td>
</tr>
<tr>
<td><a href="[url="http://flightaware.com/analysis/route.rvt?origin=<?php"]http://flightaware.c...vt?origin=<?php[/url] echo $schedule->depicao?>&destination=<?php echo $schedule->arricao?>">View recent IFR Routes data</a></td>
</tr>
</table>

<h3>Procedures and Information</h3>
<table width="98%" align="center">

<tr style="background-color: #333; color: #FFF;">
<td>Charts for <?php echo $schedule->depicao?></td>
<td>Charts for <?php echo $schedule->arricao?></td>
</tr>
<tr align="center">
<td width="50%" valign="top">
<a href="[url="http://www.airnav.com/airport/<?php"]http://www.airnav.com/airport/<?php[/url] echo $schedule->depicao?>#ifr" target="_blank">
<img border="0" src="[url="http://flightaware.com/resources/airport/<?php"]http://flightaware.c...s/airport/<?php[/url] echo $schedule->depicao?>/APD/AIRPORT+DIAGRAM/png"
width="387px" height="594px" alt="No chart available" /></a>
</td>
<td width="50%" valign="top">
<a href="[url="http://www.airnav.com/airport/<?php"]http://www.airnav.com/airport/<?php[/url] echo $schedule->arricao?>#ifr" target="_blank">
<img border="0" src="[url="http://flightaware.com/resources/airport/<?php"]http://flightaware.c...s/airport/<?php[/url] echo $schedule->arricao?>/APD/AIRPORT+DIAGRAM/png"
width="387px" height="594px" alt="No chart available" /></a>
</td>

</tr>
</table>

<h3>Weather</h3>
<div align="center">
<p><img src="[url="http://flightaware.com/resources/wx/us_depiction.gif"]http://flightaware.c..._depiction.gif"[/url] /></p>
<p><img src="[url="http://flightaware.com/resources/wx/surface_analysis.gif"]http://flightaware.c...e_analysis.gif"[/url] /></p>
<p><img src="[url="http://flightaware.com/resources/wx/national_radar.gif"]http://flightaware.c...onal_radar.gif"[/url] /></p>
<p><img src="[url="http://flightaware.com/resources/wx/us_high_level_weather_12z.gif"]http://flightaware.c...eather_12z.gif"[/url] /></p>
<p><img src="[url="http://flightaware.com/resources/wx/severe_outlook_day_1.gif"]http://flightaware.c...look_day_1.gif"[/url] /></p>
<a href="[url="http://flightaware.com/resources/weather_maps/"]http://flightaware.c.../weather_maps/"[/url] target="_blank">View additional weather graphs</a>
</div>
<div align="right" style="font-size: small;">Data Courtesy of <a href="[url="http://flightaware.com"]http://flightaware.com"[/url] target="_new">FlightAware</a></div>
<br />

Link to comment
Share on other sites

  • Members

The airport diagrams come from flightaware and flightaware does not support airports outside the US

What you could do is upload your own charts and show them on the briefing page but this is not allowed from jeppesen and it will be up to you if you want to do it or not

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