=== Weather Forecast - WP Wunderground === Tags: weather, weather.com, wunderground, weatherbug, forecast, widget, shortcode, Yahoo weather, Yahoo! Weather, wp-weather, wp weather, local weather, weather man, weather widget, cool weather, accuweather, get weather, wordpress weather Requires at least: 2.8 Tested up to: 3.5.1 Stable tag: trunk Contributors: katzwebdesign Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=zackkatz%40gmail%2ecom&item_name=WP%20Wunderground%20for%20WordPress&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8 Get accurate and beautiful weather forecasts powered by Wunderground.com for your content or your sidebar. == Description ==
"[WP Wunderground] is by far, the best weather plugin i've ever seen on a CMS before. Not even Joomla has something so powerful, good looking and yet easy to implement."
Robson
functions.php file:
add_filter('wp_wunderground_forecast_icon', 'use_custom_wunderground_icons');
function use_custom_wunderground_icons($content=null) {
$myIconFolder = 'http://www.example.com/images/';
$myFileType = '.gif';
$content = preg_replace('/http\:\/\/icons\-ecast\.wxug\.com\/i\/c\/[a-z]\/(.*?)\.gif/ism', $myIconFolder.'$1'.$myFileType, $content);
return $content;
}
add_filter('wp_wunderground_forecast', 'use_custom_wunderground_icons');
function use_custom_wunderground_icons($content=null) {
$myIconFolder = 'http://www.example.com/images/';
$myFileType = '.gif';
$content = preg_replace('/http\:\/\/icons\-ecast\.wxug\.com\/i\/c\/[a-z]\/(.*?)\.gif/ism', $myIconFolder.'$1'.$myFileType, $content);
return $content;
}
= I am unable to activate the plugin. =
This plugin requires PHP5, and Version 1.0 does not check for PHP compatibility. In future versions, it will show a more meaningful error and also support PHP 4.
For now, however, options are to upgrade the version of PHP (contact your web host) or to not use the plugin.
= I want to modify the forecast output. How do I do that? =
function replace_weather($content) {
$content = str_replace('Rain', 'RAYNNNNN!', $content);
$content = str_replace('Snow', 'SNNNOOOO!', $content);
return $content;
}
add_filter('wp_wunderground_forecast', 'replace_weather');
= What is the plugin license? =
* This plugin is released under a GPL license.
= Do I need a Wunderground account? =
Nope, no account needed.
= This plugin slows down my site. =
Version 1.1 of the plugin added forecast caching, so the forecast is only re-loaded every 6 hours.
For previous versions, it is recommended to use a caching plugin (such as WP Super Cache) with this plugin; that way the forecast isn't re-loaded every page load.
== Changelog ==
= 1.2.5.1 =
* Quick fix for icon issues: the icon images were broken.
= 1.2.5 =
* Fixed issue where checkbox state wasn't being reflected in settings (as mentioned in this support thread)
= 1.2.4 =
* Removed error generation when XML file cannot be read (Error on line 427, as reported). Now, it just outputs an HTML comment error message.
= 1.2.3 =
* Fixed bug where Degree Measurement select drop-down would not show saved state as Celsius, even though it was working properly. (thanks Robson)
* Added proper HTML escaping for High/Low formatting and temperature output
= 1.2.2 =
* Added GoDaddy compatibility by switching from `simplexml_load_file` to `wp_remote_fopen` and `simplexml_load_string` (thanks, rjune)
= 1.2.1 =
* Fixed issue with "Give thanks" link
= 1.2 =
* Improved data storage, fixing issues users were having with Celsius / Fahrenheit settings and setting the number of columns in a table
* A new `cache` option has been added to the shortcode. Add `cache=0` or `cache=` to the shortcode to disable storing forecasts. Not recommended; will dramatically slow down site.
* If you want to refresh the results, you can add `?cache=false` to your URL and the forecast will be updated.
* Added "width" option to shortcode to define table width. `100%` is the default. Use `width=0` or `width=` to disable hard-coding width in table.
* Changed the default high/low setting to add the degree symbol.
* Removed code whitespace when storing table for added speed
* Added CSS classes to forecast columns based on weather conditions. This will allow you to make "Partly Cloudy" columns gray, "Sunny" blue, etc.
* Added three new filters:
* `wp_wunderground_forecast_cache` - How long results are cached for. Default: 6 hours.
* `wp_wunderground_forecast_icon`
* `wp_wunderground_forecast_conditions`
* `wp_wunderground_forecast_temp`
* Rounded column width to two digits. Instead of `16.66666667%`, it's now `16.67%`
= 1.1 =
* Added data storage - the plugin will now store forecast tables for 6 hours. This should speed up the time it takes to load the forecasts.
* Added a check for PHP5 and `simplexml_load_file`, which are required for the plugin.
= 1.0 =
* Initial launch
== Upgrade Notice ==
= 1.2.5.1 =
* Quick fix for icon issues: the icon images were broken.
= 1.2.5 =
* Fixed issue where checkbox state wasn't being reflected in settings (as mentioned in this support thread)
= 1.2.4 =
* Removed error generation when XML file cannot be read (Error on line 427, as reported). Now, it just outputs an HTML comment error message.
= 1.2.3 =
* Fixed bug where Degree Measurement select drop-down would not show saved state as Celsius, even though it was working properly. (thanks Robson)
* Added proper HTML escaping for High/Low formatting and temperature output
= 1.2.2 =
* Added GoDaddy compatibility by switching from `simplexml_load_file` to `wp_remote_fopen` and `simplexml_load_string` (thanks, rjune)
= 1.2.1 =
* Fixed issue with "Give thanks" link
= 1.2 =
* Improved data storage, fixing issues users were having with Celsius / Fahrenheit settings and setting the number of columns in a table
* Many other updates & improvements - cheek the changelog.
= 1.1 =
* Added data storage - the plugin will now store forecast tables for 6 hours. This should speed up the time it takes to load the forecasts.
* Added a check for PHP5 and `simplexml_load_file`, whichare required for the plugin. Users will no longer get `Parse error: syntax error, unexpected '{' in {your-site}/wunderground.php on line 412` error
= 1.0 =
* Blastoff!