Al,
The difference is in the type of info the NWS is giving out.
the rss-top-warning.php script processes only "Advisory", "Warning" and "Watch" types .. not "Alert". So it displays nothing for an "Alert" as it is written.
The rss-advisory displays 'No watches, warnings or advisories for zone ssZnnn' if there are no entries in the rss feed for that zone, then will display the title/link for each "Advisory", "Warning", "Watch", or "Alert" is issued. Since the RSS feeds don't contain "Short Term Forecast" or "Hazardous Weather Outlook", neither script can display that (not the script's fault, NOAA just doesn't include them in their RSS feed).
If you want the rss-top-warning.php script to display "Alert" type messages, then change it's code from //Next if there are none of the above found. Display the first statement message.
if ($flag == 0) {
$i = 0;
while ($i < count($warnheaders)):
$WLink = $i-1;
if (preg_match("/Statement/i", $warnheaders[$i]) and !preg_match("/National/i", $warnheaders[$i])) {
$warnscroll = '<div class="advisoryBox"><a href="' . $myadvisorypage . "#WL$WLink" . '" style="color: #000000;">' . $warnheaders[$i] .' In Effect ... [Click here for more]</a></div>';
$flag = 1;
break;
}
$i++;
endwhile;
}
to //Next if there are none of the above found. Display the first statement message.
if ($flag == 0) {
$i = 0;
while ($i < count($warnheaders)):
$WLink = $i-1;
if (preg_match("/Statement/i", $warnheaders[$i]) and !preg_match("/National/i", $warnheaders[$i])) {
$warnscroll = '<div class="advisoryBox"><a href="' . $myadvisorypage . "#WL$WLink" . '" style="color: #000000;">' . $warnheaders[$i] .' In Effect ... [Click here for more]</a></div>';
$flag = 1;
break;
}
$i++;
endwhile;
}
//Next if there are none of the above found. Display the first statement message.
if ($flag == 0) {
$i = 0;
while ($i < count($warnheaders)):
$WLink = $i-1;
if (preg_match("/Alert/i", $warnheaders[$i]) and !preg_match("/National/i", $warnheaders[$i])) {
$warnscroll = '<div class="advisoryBox"><a href="' . $myadvisorypage . "#WL$WLink" . '" style="color: #000000;">' . $warnheaders[$i] .' In Effect ... [Click here for more]</a></div>';
$flag = 1;
break;
}
$i++;
endwhile;
}
and reset your wxindex.php to have $useTopWarning = true;
Best regards,
Ken