+1 Works great. Thanks!
Top job
I’m not sure what’s wrong, but on certain schedules with this plugin, the template breaks. I have however noticed a pattern, and it seems to happen on schedules in which airports have no NOTAMs. In this case, Esbjerg has no NOTAMs to display. Any ideas how this can be fixed?
EDIT:// Apologies for asking, got it sorted. If anyone has trouble with this in the future, here’s how you solve it. Replace the die() function which apparently kills off the page, with an echo, followed by a return, which will terminate our given target.
Replace this in notamarr.tpl and notamdep.tpl:
if (!isset($xml->channel->item)) {
die("Keine Items vorhanden");
}
with…
if (!isset($xml->channel->item)) {
$message = 'There are no NOTAMs available for this airport.';
echo $message;
return;
}
For anyone having trouble with the files not being in the same place, replace the:
<?php include('notamdep.tpl'); ?>
with:
<?php Template::Show('notamdep.tpl'); ?>
Do that with the second one, and it will work just fine.
Do we know why this doesn’t work anymore? It just defaults to no NOTAMs being shown, but the RSS feed is still there!
Works fine on my end (not using v2/v5 though), same source being used for the RSS feed… So it can be server/code related on your end.
