Carterlake Plugin Page - Printable Weather Flyer by Mike Challis
Free PHP Scripts - www.642weather.com/weather/scripts.php
Download         - www.642weather.com/weather/scripts/wxflyer.zip
Live Example     - www.642weather.com/weather/local-flier.php
Contact Mike     - www.642weather.com/weather/contact_us.php
Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2319642  

Version: 1.12 - 06-Nov-2009 see changelog.txt for changes

Support thread at weather-watch forum:
http://www.weather-watch.com/smf/index.php/topic,28523.0.html

This is a Carterlake Plugin Page for the USA carterlake php template
http://saratoga-weather.org/template/index.php

-----------------------------------------
Installation (USA carterlake php template sites)
-----------------------------------------

Step 1)
You must already be running the USA carterlake php template
http://saratoga-weather.org/template/index.php

Before you install, you need to configure some settings inside wxflyer.php

Step 2) REQUIRED!
Install the  atom-advisory.php
http://saratoga-weather.org/scripts-atom.php#atomadvisory
Download:
http://saratoga-weather.org/atom-advisory.php?sce=view

Step 3)
Update to the latest testtags.txt file version 1.06 (included).
http://www.weather-watch.com/smf/index.php/topic,40861.0.html

Place the testtags.txt in your wdisplay/webfiles folder on your weather system PC.
In the WD main program page, goto Control Panel > Web files/Web page/realtime FTP/WDL > Custom Web page setup TAB.
In the bottom right you'll see a an area marked "Special File Conversion".
In the top text box enter "testtags.txt" (local file) then "testtags.php" (remote filename)
Now turn the switch to ON and click "test", then OK to exit the window.
This will convert the files to what you need, now we need to upload them to the website.

Upload:
Control Panel > Internet File Creation & Upload > Setup Page #2. Look down the list for File #29 "Special Custom File Convers." and click the "Set" button.
Click the "Show file create times" button and set the create interval, I have mine set to create every 5 minutes. Then click "Save Now" and then "Show file upload times" and set these to the same as the create times, click "Save Now" and turn the switch to ON if it's not already there, then click OK to exit the window.
Then please allow 5-6 minutes for the testtags.php to be uploaded with the changes:


Step 4)

Upload these files to your web server:
cwp_logo.gif
wxflyer.php

Step 5) 
test your page:
www.yoursite.com/wxflyer.php

Note:
Windows users will sometimes have file permissions problems with the forecast or forecast discussion cache files:
Here are some tips for that:
(Do this only if you are having file permissions errors!)
Create these two files in Notepad or similar text editor. The files can be empty. 
forecast.txt
nws-forecast-discussion.txt
Upload them to your server and CHMOD them to 777

You may continue to have problems if your server has "safemode on" or other restrictions on file create, file write functions.
In that case, please consult your web host tech support.

-----------------------------------------
Live Example
-----------------------------------------
You can see my Flyer in use here:
http://www.642weather.com/weather/local-flier.php

-----------------------------------------
Bonus Features
-----------------------------------------
Nickname: 
You can edit an IP entry in the whos-online table and add a friends name to the "nickname" field.
When your friend is on your site with the same IP address the name will show next to the IP address.
(note that sometimes IP addresses change, this feature might not always be accurate)


-----------------------------------------
Donate
-----------------------------------------
A paypal donate button is on my scripts page
www.642weather.com.com/weather/scripts.php

--------------
Notes:
--------------

wxflyer.php requires two helper files
advforecast2.php and rss-advisory.php (these two files can be configured inside)
advforecast2.php and rss-advisory.php is already uncluded in the USA carterlake php templates

The weather-print.css has a doNotPrint tag that helps the flyer display properly, it hides the menu when you print.


