------------------------------------------------------------------------ r73 | garett | 2006-04-18 14:25:06 -0600 (Tue, 18 Apr 2006) | 6 lines Fixed the bug listed here: http://www.viper007bond.com/wordpress-plugins/forums/viewtopic.php?pid=677 After messing up the fix in .72 ------------------------------------------------------------------------ r72 | garett | 2006-04-18 13:54:56 -0600 (Tue, 18 Apr 2006) | 4 lines Fixed GMT++1 bug described here: http://www.viper007bond.com/wordpress-plugins/forums/viewtopic.php?id=131 ------------------------------------------------------------------------ r71 | garett | 2006-04-18 13:44:56 -0600 (Tue, 18 Apr 2006) | 4 lines Fixed the no icon packs bug reported here: http://www.viper007bond.com/wordpress-plugins/forums/viewtopic.php?pid=670 ------------------------------------------------------------------------ r70 | garett | 2006-04-06 11:48:06 -0600 (Thu, 06 Apr 2006) | 5 lines Whatever. Blame VIM, it keeps auto-indenting with spaces. I think I could fix it, but I don't care enough to figue out if it is possible ;) Any, this commit is adding Dutch language support to WeatherIcon. Thanks Boogie. ------------------------------------------------------------------------ r69 | viper | 2006-03-31 19:47:06 -0600 (Fri, 31 Mar 2006) | 1 line Fixed variable mispelling (it's $myoptions, not $options). Also replaced mutliple spaces with tabs. Tabs are for alignment, not spaces! >_< ------------------------------------------------------------------------ r68 | garett | 2006-03-23 15:38:14 -0600 (Thu, 23 Mar 2006) | 3 lines Added the ability for the plugin call to alter the display options, for those who wish to get truly creative with output. ------------------------------------------------------------------------ r67 | garett | 2006-03-23 15:07:33 -0600 (Thu, 23 Mar 2006) | 5 lines Added a link on the configuration page to the debug page for each location. Removed the debug option as well (this may screw up some people should they have it on and upgrade, however the option is simply hidden, not removed. They just have to uncomment, unclick, and save to fix.) ------------------------------------------------------------------------ r66 | garett | 2006-03-23 14:41:32 -0600 (Thu, 23 Mar 2006) | 3 lines This _really_ isn't my day. Removed debugging code from last commit. ------------------------------------------------------------------------ r65 | garett | 2006-03-23 14:39:58 -0600 (Thu, 23 Mar 2006) | 3 lines Minor fix to last commit (oops) ------------------------------------------------------------------------ r64 | garett | 2006-03-23 14:33:51 -0600 (Thu, 23 Mar 2006) | 3 lines Added the icon packs for the black background gifs and the small gifs. ------------------------------------------------------------------------ r63 | viper | 2006-03-15 03:52:12 -0600 (Wed, 15 Mar 2006) | 3 lines Improvements to get_icon(). Now the IE hack will only be done if the browser is IE _AND_ if the image extension is ".png". This was done because there is no need for the image hack for GIFs and such. Also, as a result of this switch, I ended up having to switch around the logic so that the ELSE falls back to the tag, which is a good thing anyway. ------------------------------------------------------------------------ r62 | viper | 2006-03-14 17:43:04 -0600 (Tue, 14 Mar 2006) | 1 line Added an ID to the and tags to make it easier to control the image via CSS (add a border, center it, etc.) ------------------------------------------------------------------------ r61 | garett | 2006-03-14 11:44:02 -0600 (Tue, 14 Mar 2006) | 18 lines -- Fixed no icon problem when METAR has no condition or cloud information (now defaults to CLR). -- Fixed nilm/nilft problem. Now display like: Few Clouds with unknown cloud base. -- Fixed No Thunderstorm icon issue. -- Added fixed German i18n file from Gustav Miller. -- Updated i18n templates (Gustav has to update i18n file again) -- Added new test file for testing specific METAR data. -This line, and those below, will be ignored-- M i18n/template-filled.po M i18n/deutsch.mo M i18n/deutsch.po M i18n/template-blank.po A test/metar.php M WeatherIconMetar.php M WeatherIcon.php ------------------------------------------------------------------------ r60 | garett | 2006-03-09 14:14:40 -0600 (Thu, 09 Mar 2006) | 30 lines - Added height/width style on image to non-ie version as well (helps with centering the image) - Added WeatherIcon filter hook, allowing for post generation modifications. Example ------- Code: =============================================================================== function center_image($text) { return preg_replace('/Clouds: Few Clouds at 100ft Note the space before "". That space is now removed. ------------------------------------------------------------------------ r47 | viper | 2006-02-24 07:22:55 -0600 (Fri, 24 Feb 2006) | 1 line Missing alt on the img tag. ------------------------------------------------------------------------ r46 | viper | 2006-02-24 01:53:20 -0600 (Fri, 24 Feb 2006) | 11 lines Can't remember all the things I changed as I couldn't update the SVN between major changes (it was down), but here's the jist of this multi-item commit: - Added an almost complete WP-Dash widget and required in the file. Please test if you can. - Added a check to see if the argument for WeatherIcon() was blank. While !empty() covers this, we need to be able to set "FALSE", so isset() + != '' seems to be the best solution (right?). Did this because WeatherIcon would make nasty errors if this was done: WeatherIcon('station=') - Added a dirty (and possibly ugly) little hack to add a space in front of the visibility units if we're using "miles" (it just don't look right without a space when using miles). This doesn't actually affect anything (hopefully) as it only adjusts the output, not that actual unit settings or anything. - Replaced multiple spaces with tabs (spaces are not to be used for padding, Garett, tsk tsk! :P Besides not meeting the WordPress and general rule of thumb coding standards, they often don't even work as intended from PC to PC) - Each file had a line break after the final "?>", aka whitespace. This could be bad for when sending headers, so it was removed. ------------------------------------------------------------------------ r45 | garett | 2006-02-22 19:11:40 -0600 (Wed, 22 Feb 2006) | 3 lines Fixed upgrade from 2.x to 3.0 bug. ------------------------------------------------------------------------ r44 | garett | 2006-02-22 18:55:24 -0600 (Wed, 22 Feb 2006) | 3 lines Added coded to support use current time or use metar time. ------------------------------------------------------------------------ r43 | garett | 2006-02-22 18:45:07 -0600 (Wed, 22 Feb 2006) | 3 lines Windows bug fix (hopefully) ------------------------------------------------------------------------ r42 | garett | 2006-02-22 12:03:29 -0600 (Wed, 22 Feb 2006) | 8 lines Added language setting to Preset Locations. Known Bugs: a) Can not delete newly added locations b) No way to localize time (I think) c) Newly added rows do not alternate correctly. Should be easily fixed, but lazy. ------------------------------------------------------------------------ r41 | garett | 2006-02-21 18:14:44 -0600 (Tue, 21 Feb 2006) | 8 lines Major changes for this revison: a) Removed default settings and replace with preset locations Known Bugs: Doesn't support UTF-8 characters correctly (nor, apparently does SVN) b) Fixed sunrise/sunset times (reported in log of a previous revision) c) Updated test code. ------------------------------------------------------------------------ r40 | garett | 2006-02-20 11:38:59 -0600 (Mon, 20 Feb 2006) | 3 lines Updated German translation file. Fixed a minor bug. ------------------------------------------------------------------------ r39 | garett | 2006-02-19 16:42:30 -0600 (Sun, 19 Feb 2006) | 2 lines Fixed minor bugs after changing from time_zone to gmt_offset naming (namely in POST). Also added new debug information. ------------------------------------------------------------------------ r38 | garett | 2006-02-18 11:32:44 -0600 (Sat, 18 Feb 2006) | 10 lines Fixed a minor bug. Also updated test routines. I believe a bug exists in the sunrise/sunset time calculations, see: /wp-content/plugins/WeatherIcon/test/?station=RJTT&lat=35.68333&long=139.7667&gmt_offset=9 Tokyo is located at 35.68333 N and 139.7667 W. GMT_offset is +9. Airport code is RJTT. It believes sunrise time is at 2pm (GMT+9) and sunset is at 12am (GMT+9). I could be wrong, but I don't think those numbers are correct. ------------------------------------------------------------------------ r37 | garett | 2006-02-18 11:07:23 -0600 (Sat, 18 Feb 2006) | 3 lines Bloody hell! Forgot to get the old setting before "fixing" 'em ... wiped out all my settings. Fixed. ------------------------------------------------------------------------ r36 | garett | 2006-02-18 11:05:38 -0600 (Sat, 18 Feb 2006) | 2 lines Fixed the upgrade functions to use the new display_updatetime instead of display_metartime & display_metardate. Also added pre-release upgrade code to active display_updatetime if display_metartime or display_metardate were active. ------------------------------------------------------------------------ r35 | garett | 2006-02-18 10:59:08 -0600 (Sat, 18 Feb 2006) | 2 lines Accidentally deleted a line in METAR, 'caused icons not to resolve correctly. Also forgot the this-> part of $decoded_metar, which didn't save the icon information outside of the function (hence slowing debugging). Remove the entire date/time seperation. Now handled as one. Changed a bit of text, and update the german translation. ------------------------------------------------------------------------ r34 | garett | 2006-02-18 00:45:56 -0600 (Sat, 18 Feb 2006) | 3 lines Alright, sunrise/sunset times are now calculated, and the plugin now honours the ordering set on the configuration page. ------------------------------------------------------------------------ r33 | garett | 2006-02-17 23:36:52 -0600 (Fri, 17 Feb 2006) | 3 lines Did some really cool work on the configuration screen. Check it out. I'll implement the rest in the plugin sometime later. ------------------------------------------------------------------------ r32 | garett | 2006-02-17 13:15:11 -0600 (Fri, 17 Feb 2006) | 3 lines Updated german translation from Gustav Miller (a person who contacted me directly about some problems with the 2.3.1 and I'm currently using as a guinea pig for the 3.x line) Speaking of which, the 3.x code is almost stable enough for a public beta I think. -Garett ------------------------------------------------------------------------ r31 | garett | 2006-02-16 21:12:04 -0600 (Thu, 16 Feb 2006) | 3 lines Fixed the syntax errors in the Weather at post time routines. ------------------------------------------------------------------------ r30 | garett | 2006-02-16 17:29:47 -0600 (Thu, 16 Feb 2006) | 1 line Added code for current weather at default station on post publish. Viper007Bond's idea. Not sure if he pursued it any. It isn't overly sophisticated, but it is in there. No time to debug, so it might have horridly broken. l8r. ------------------------------------------------------------------------ r29 | garett | 2006-02-16 15:22:28 -0600 (Thu, 16 Feb 2006) | 3 lines Changed the cache functions to use gmdate rather than localized date. Will prevent accidental deletions. ------------------------------------------------------------------------ r28 | garett | 2006-02-16 14:49:44 -0600 (Thu, 16 Feb 2006) | 3 lines Fixed bug. Visibliity didn't honour users display option setting. ------------------------------------------------------------------------ r27 | garett | 2006-02-16 14:35:38 -0600 (Thu, 16 Feb 2006) | 3 lines Fixed minor sun never rises bug (replaced $wsunset with $sunset ... not sure when it emerged, but fixed) ------------------------------------------------------------------------ r26 | garett | 2006-02-16 14:22:35 -0600 (Thu, 16 Feb 2006) | 4 lines Whoops. Major bug. WIversion was defined twice. Once properly, and once not. Renamed the second to WIRemoteVersion as well as renaming WIhost and WIsource to WIRemoteHost and WIRemoteSource respectively. Also modified check version to _actually_ use these variables. -Garett ------------------------------------------------------------------------ r25 | garett | 2006-02-16 14:18:02 -0600 (Thu, 16 Feb 2006) | 4 lines A minor syntax error (missing ; added) and a logic error (> instead of <) fixed. Caching is functional. -Garett ------------------------------------------------------------------------ r24 | garett | 2006-02-16 14:12:54 -0600 (Thu, 16 Feb 2006) | 1 line Implemented database caching (I hope, will test on server as soon as committed). Required extensive alterations to the cache table, but the database caching (in very few lines) is much more efficient than the previous database caching (which was very poorly implemented). ------------------------------------------------------------------------ r23 | garett | 2006-02-16 12:32:02 -0600 (Thu, 16 Feb 2006) | 3 lines Fixed sunrise/sunset code. Function returned sunrise/sunset as a timestamp, converted into localized hours. Also removed obsolete cache directory and sunrise.php file. Also added stub code for metar caching and added the new localization info into the german translation. ------------------------------------------------------------------------ r22 | garett | 2006-02-16 11:37:55 -0600 (Thu, 16 Feb 2006) | 3 lines Various modifications in the i18n directory that weren't automagically done for me in revision 20. ------------------------------------------------------------------------ r21 | mcb | 2006-02-16 11:17:59 -0600 (Thu, 16 Feb 2006) | 3 lines I made a few cosmetic changes, fixed a few typos, etc. I also added the ability to determine sunrise/sunset for ma user specified latitude, longitude and time zone. The sunrise/sunset calculations are good but the daylight savings time function still needs some work. (Currently only works for US). You can specify lat & long on the settings page or as arguments to the call itself. --Midwestern City Boy ------------------------------------------------------------------------ r20 | garett | 2006-02-15 23:29:00 -0600 (Wed, 15 Feb 2006) | 11 lines Massive Revision Here: a) All text is now i18n-ized (some wasn't) except for the test page and the other debugging code. Since I (as an english speaking deveoper) am likely to have to read it, I figured I might as well not waste the time implementing it. b) Created a new template.po c) Created a german localization file to test (a fluent german speaker found to debug -- gustav) d) Incremented Version # (again, will try to do every revision ... well at least major ones) e) Other minor changes: Added a notification that settings had been updated. f) Moved non-supported i18n po's to a i18n/old i18n should be functionally as intended now. ------------------------------------------------------------------------ r19 | garett | 2006-02-15 15:40:19 -0600 (Wed, 15 Feb 2006) | 1 line Made initial fixed for i18n implementation ------------------------------------------------------------------------ r18 | garett | 2006-02-15 14:32:51 -0600 (Wed, 15 Feb 2006) | 8 lines Removed the word public from public function get_i18n_options() PHP5 syntax _not_ compatible with PHP4. Also increase version number to 18 (matching SVN build #) ------------------------------------------------------------------------ r17 | garett | 2006-02-03 01:06:30 -0600 (Fri, 03 Feb 2006) | 3 lines Fixed the N at 0km/h bug. Now properly reports a wind status of 'Calm'. ------------------------------------------------------------------------ r16 | garett | 2006-01-25 15:42:14 -0600 (Wed, 25 Jan 2006) | 3 lines Fix image problem in IE. Apple-ish icons are 80x124 ... the defaults are like 80x80 ... the images could vary. Added a function to retrieve image size from the image. This requires GD support to be compiled into PHP ... I used a function_exists command which should prevent it being called on systmes without GD support ... however this may not be the case. -Garett ------------------------------------------------------------------------ r15 | garett | 2006-01-25 14:24:45 -0600 (Wed, 25 Jan 2006) | 4 lines Readded the span for weather_info and weather_title. -Garett ------------------------------------------------------------------------ r14 | garett | 2006-01-19 17:17:42 -0600 (Thu, 19 Jan 2006) | 3 lines Fixed bug, changed variable from WIi8ndir to WIi18ndir ... this fixed the problem the with languages ... ------------------------------------------------------------------------ r13 | garett | 2006-01-18 13:03:26 -0600 (Wed, 18 Jan 2006) | 7 lines Restored the basic cloud information ... detailed was a little excessive ... but I've left it if someone wants it. I also added a display option for conditions. The plugin already honoured it, but we didn't have one so it just never displayed conditions. On another note, I'm actually using the plugin on my development site now. Take a peak over at http://dev.zy.ca/ if you're interested. ------------------------------------------------------------------------ r12 | garett | 2006-01-14 20:02:25 -0600 (Sat, 14 Jan 2006) | 3 lines Changed name of Options Tag to WeatherIcon from WeatherIcon Options. ------------------------------------------------------------------------ r11 | garett | 2006-01-14 19:59:46 -0600 (Sat, 14 Jan 2006) | 2 lines Fixed Implode and File Not Found errors originating from line 347 in WeatherIconCore. New checks added to the get_icon_packs function to ensure an icon pack file is in existance before considering the directory an icon pack. ------------------------------------------------------------------------ r10 | garett | 2006-01-12 14:40:57 -0600 (Thu, 12 Jan 2006) | 1 line Added the missing class="options" to three of the fieldsets on the configuration page ... fixed minor visual annoyance. ------------------------------------------------------------------------ r9 | garett | 2006-01-12 14:38:39 -0600 (Thu, 12 Jan 2006) | 1 line Removed additional version information on the configuration page. It really didn't work with the page and I realized it had no purpose there. ------------------------------------------------------------------------ r8 | garett | 2006-01-12 14:33:39 -0600 (Thu, 12 Jan 2006) | 3 lines Implemented fixed to the upgrade from 2.99.14 stuff ... I made a major logical error there ... Oh, and also fixed two minor coding bugs from before. ------------------------------------------------------------------------ r7 | garett | 2006-01-12 14:22:01 -0600 (Thu, 12 Jan 2006) | 1 line Another bug fix, removed the entire switch/case bit. ------------------------------------------------------------------------ r6 | garett | 2006-01-12 14:19:03 -0600 (Thu, 12 Jan 2006) | 1 line Bug Fix with new case function in WeatherIconCore.php ------------------------------------------------------------------------ r5 | garett | 2006-01-12 14:12:56 -0600 (Thu, 12 Jan 2006) | 10 lines Many changes this time around. - Changed how units are stored in $WI->settings - Changed upgrade routines to reflect this - Changed METAR class to use $WI->settings directly instead of as passed functions - Added display option of display_metardate ... changed the meaning of display_metartime. Made changes in WeatherIconMetar.php and upgrade routines to reflect this change. - Added configuration for units for pressure and cloud height as well as routines to honour them in WeatherIconMetar.php. - Added more version information to Configuration page ... no idea how that looks though. - Added style into WeatherIconConfig.php to compensate for Wordpress 2.0's changes to how it displays framesets (in comparison to wordpress 1.5.x anyway) ------------------------------------------------------------------------ r4 | viper | 2006-01-12 10:06:55 -0600 (Thu, 12 Jan 2006) | 1 line Using < and > in the plugin details was making the plugin page all funky. Replaced with [ and ]. ------------------------------------------------------------------------ r3 | viper | 2006-01-11 16:53:59 -0600 (Wed, 11 Jan 2006) | 1 line Replaced ugly explode()'ing with parse_str() ------------------------------------------------------------------------ r2 | garett | 2006-01-11 14:24:53 -0600 (Wed, 11 Jan 2006) | 3 lines Changed the README to test commit process ------------------------------------------------------------------------ r1 | garett | 2006-01-11 14:20:33 -0600 (Wed, 11 Jan 2006) | 4 lines Initial import of 3.0.0 development line. Includes the stable 2.3.1 branch. -- Garett ------------------------------------------------------------------------