Version 2.0 - 01-Jan-2008 - fix: find default month, make sure it exist
added feature: verify inputted date file exist, use default if it does not
version 2 requires changes in the how to use section
refer to âHow to use it:â section at the top of the script
I tried to implement the script, but it does not display anything. I probably messed something up, but darned if I can see what it is. My page is [url][http://www.lesdiefenbach.org/wx/test-stats.phpurl]Can you see anything obvious? I only have December2007.htm available for data.
Did you first install the tnet scripts and get them working before trying my plugin?
You need to have installed the AvgExtract.php and the sample.php from the tnet site, get that working, and then finally install my plugin.
Someone pointed out to me a page header title inconsistency and I have the fix âŚ
January2007.htm page title was âDaily Report for the month of January 2007â
and January2008.htm page title was âDaily Report for the month of 01 2007â
Here is the fix that will use âJanuaryâ in both pages
inside AvgExtract.php
change
preg_match("/Daily report for (.*)\</U",$value,$found);
$month = $found[1];
to
// mchallis page title consistancy fix ....
// January2007.htm page title was "Daily Report for the month of January 2007"
// and January2008.htm page title was "Daily Report for the month of 01 2007"
$month = $mnthname[$monthnum -1 ] . " $yearnum";
I would guess that it has no effect on the script since the script looks for the information if it is there or not. Having it there all the time simply means it would find it each time.
Anyone tried to incoporate this script into Ken Trueâs templates, so it can be called from menu and be using the CSS already defined. Maybe it is easy, but Iâm not a guru with PHP and CSS.
I can work on integrating the style into my color theme switcher maybe Saturday or Sunday. I will be too busy today and tomorrow.
What I will do is make the style compatible, then make a sample page for the new templates and zip it up and send it to Ken to add to the distro.
Itâs strange though, because the rest of the site uses the same character set and all those pages display the symbol correctly. :roll:
Itâs great that there are people here who know what theyâre talking about to help those of us who blindly hack, slash, cut and paste bits of code into pages without knowing what half of it does
Try out the toggle 24 Hour Chart daily image feature (the image links are at the bottom of each daily table)
I have modified and repackaged AvgExtract.php into include-wxhistory.php
I am sending two files (wxhistory.php and include-wxhistory.php) to Ken to be used as a plugin for use in
the Weather Display/PHP/AJAX Website Template Set
Features / Changes:
Modified for style compatibility with my css theme switcher and to be used
inside of a wxhistory.php page in a Weather Display/PHP/AJAX Website Template set
Added if is_file check and toggle image feature for 24 hour chart images
also added other minor formatting changes like
This version of AvgExtract.php I have developed into include-wxhistory.php
At this time, is only designed to be used as a plugin for use in
the Weather Display/PHP/AJAX Website Template Set because it has css style changes inside include-wxhistory.php.
include-wxhistory.php should not be used outside of the Weather Display/PHP/AJAX Website Template Set or it will not work right.