NEW AtomFeed.php Program

Tony,

Are you doing something a little different by adding the WEATHER ALERT box above?

Michael

I changed what you PM’ed me Michael. Still the same. I was using $use_conversion = true; already.

I’m not sure whats up. I changed create $create_box = false; and the box is still there now LOL

Did you modify any code in the AtomFeed file?

AtomFeed, no sir

AtomFeed-config is what I’ve edited.

Try a fresh AtomFeed-config temporarily.

ok. As soon as i’m done engraving some frames at work 8)

I’m off today!! Use it or lose it vacation… :lol:

HAHA I dont really get any EVER.

'Cept Dec 28-Jan 6th Key West. Havent had a week off straight in like 10 years.

I put a fresh copy in there Michael. Changed just the first zone to my main one
and it wouldnt load the ajax-dashboard.

8O
This is a job for Curly! :slight_smile:

YUP

Thanks for the help Michael.

Just for info Curly, i got mine all working the way i wanted too… Thanks again for the script.

How’d you get your “Weather Alert” box up there? I had it and lost it again.

This is what Im using on my index page…



<?php
echo "<!-- AtomFeed Alert Box-->";
include("./atomalerts/AtomArray.php");
if($alert_box !== '') {
print '
<div>
<table border="0" cellspacing="0" cellpadding="0" style="width: 650px; margin: 0px auto 0px auto;">
<tr>
<td style="color: #FFFF99; background-color: #3AB; text-align: center">WEATHER ALERTS</td>
</tr>
<tr>
<td>'.$alert_box.'</td>
</tr>
</table>
</div>';
}
echo "\n<!-- end AtomFeed Alert Box-->\n";
?>




Well that woulda fixed the width problem I had before. Didnt realize there
was a width size within the code I have on my index page to print the warnings.

Except now I cant get the warning box and No Watches… to apear

I noticed in your view source the code isnt there…all i see is the start and end tags of the script…

Hmmm.

If you go to http://www.cnyweather.com/atomalerts/AtomFeed.php, viewing the source,
that shows it’s downloading the files. I’ll see what I did wrong when Curly gets on

My AtomArray.php shows nothing in view source now.

I see Mark has his AtomArray in his atomalerts folder. Mine is just in my root

Thats where the script put it by itself. Not really sure if that matters though. as long as you have your config file pointing to where ever it is.

Does the …/AtomArray.php mean that it isnt in the root folder, correct Mark?

Mine is in the root so I just changed it to just $file_output = "AtomArray.php

On the next cron job, i believe I will get an error on the site again.

The AtomArray.php is the data file that the web pages pull the information from and should be set to go into the root.
All of the web pages that are in the root use include("AtomArray.php"). Since the main AtomFeed files are in another folder, you need to use this setting:
$file_output = "../AtomArray.php";.
If you omit off the ’ …/ ', it will keep the AtomArray.php file in the sub folder and the include function for the web pages will not get the file and create an error.