iGavB Posted February 8, 2015 Report Share Posted February 8, 2015 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? Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 8, 2015 Report Share Posted February 8, 2015 Friend who tpl page you are referring to? which code you are using, can supposedly be something simple, more, to help you, we need to be direct. example. I have a problem in Pilot_list.tpl page. The error I'm facing is that. So we can evaluate the errors and help you, wait. Quote Link to comment Share on other sites More sharing options...
iGavB Posted February 8, 2015 Author Report Share Posted February 8, 2015 The page is **root**/index.php/schedules/brief/2 if that is what you mean? Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 8, 2015 Report Share Posted February 8, 2015 This is http://ukhorizonairways.com/index.php/schedules/brief/2 Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 8, 2015 Report Share Posted February 8, 2015 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. Quote Link to comment Share on other sites More sharing options...
iGavB Posted February 8, 2015 Author Report Share Posted February 8, 2015 So is there something I can change to make it work? Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 8, 2015 Report Share Posted February 8, 2015 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 /> Quote Link to comment Share on other sites More sharing options...
iGavB Posted February 8, 2015 Author Report Share Posted February 8, 2015 did that mate, still doesnt seem to work, although it did get rid of the weather map images lol.....any other ideas mate? Quote Link to comment Share on other sites More sharing options...
Fernando Posted February 8, 2015 Report Share Posted February 8, 2015 Well what we are arranging the is NOTAM, you want the charts is that? To update the images, you have to drive to a location that has Chartsfrom your parents, example here in Brazil we use the http://www.aisweb.aer.mil.br/?i=cartas site, gives me the website you can see the Chartsof their parents and I can correct the error. Quote Link to comment Share on other sites More sharing options...
iGavB Posted February 8, 2015 Author Report Share Posted February 8, 2015 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 /> Quote Link to comment Share on other sites More sharing options...
iGavB Posted February 9, 2015 Author Report Share Posted February 9, 2015 Anyone able to help with this? I cant figure out why its not working, I assume that it is just wrong links? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted February 10, 2015 Members Report Share Posted February 10, 2015 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 Quote Link to comment Share on other sites More sharing options...
iGavB Posted February 10, 2015 Author Report Share Posted February 10, 2015 Thanks Vangelis. Would anyone at JetVA.co.uk be able to advise how they sorted their charts? I know from using them that you have UK charts on the pilot brief? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.