Information sur les auteurs & la licence
Changement du fichier d'activités pour weather version 1.41
Retour à la page principale des auteurs
/***********************************************************************************/
/* */
/* weather version 1.40 (Weather goes templating) */
/* Maintained by Jean-Michel Védrine (aka Ramses I) */
/* vedrine@vedrine.net */
/* Support forum (french and english) : */
/* http://www.vedrine.net/module-pnForum-viewforum-forum-6.html */
/* */
/***********************************************************************************/
/* */
/* weather version 1.30, 1.31, 1.32, 1.33, 1.34 (The adventure continue) */
/* Maintained by Ramses I */
/* ramses.the1st@free.fr */
/* Support forum (french and english) : */
/* http://www.vedrine.net/PNphpBB2-viewforum-f-6.html */
/***********************************************************************************/
/* */
/* WeatherCenter version 1.26 */
/* Maintained by Randy Schad (rschad@sagacio.com) */
/* http://www.sagacio.com */
/* */
/***********************************************************************************/
/* */
/* Previously Weather version 1.25 */
/* Converted by C. Grote (cmgrote@thethird.net) */
/* http://www.thethird.net */
/* */
/* Based on PNWeather version 0.71b */
/* Converted by JNJ (jnj@infobin.com */
/* http://www.infobin.com */
/* */
/* Based on MyWeather version 1.0 */
/* PHP and mySQL Code changes by Richard Benfield aka PcProphet */
/* http://www.pc-prophet.com */
/* http://www.benfield.ws */
/* */
/* Html and Graphic work by Chris Myden */
/* http://www.chrismyden.com/ */
/* */
/* MyWeather version 1.0 based on World_Weather version 1.1 */
/* By NukeTest.com team */
/* http://www.nuketest.com */
/* */
/***********************************************************************************/
/* */
/* Previously part of PHP-NUKE Add-On 5.0 : Weather AddOn */
/* ====================================================== */
/* Brought to you by PHPNuke Add-On Team */
/* Copyright (c) 2001 by Richard Tirtadji AKA King Richard (rtirtadji@hotmail.com) */
/* http://www.nukeaddon.com */
/* */
/***********************************************************************************/
/* */
/* Original code based on METEO live v1.0 */
/* By Martin Bolduc at martin.bolduc@littera.com */
/* License : Free, do what you want, but please, let my name in reference. */
/* */
/***********************************************************************************/
v1.41
Small update needed because The weather Channel changed the requested fields in the XML feed
url so all previous versions were no more working.
This version try to better comply with the Weather Channel licence agreement available at
http://download.weather.com/web/xoap/sdk.zip
* New versions of the Weather channel logo are now used
* You can switch to the new icon sets prvided in the sdk. These are pgn files instead of
gif so I had to add a new setting to allow extension selection.
* logo is displayed in block as requested by the licence agreement
* As stated (several times in red !!) in the licence agreement no longitude/latitude of
locations is now displayed
Please note that if you want to fully comply with the licence agreement you should also
increase cache time above 12600 in the weather module administration (previous default
value was 3600)
Disclaimer : I do my best to release a module that comply with the Weather Channel licence
agreement. I can't be held responsible if your weather channel xml subscription is terminated
because of any uncompliance of the weather PostNuke module with this licence nor can I be
held responsible by the Weather Channel of any weather module users having modified the
weather module's settings or code in an uncompliant way.
V1.40
The module is now fully templated. Read "How to customize templates.txt" to learn how
to customize the forecast and block templates.
The module initialization process now use adodb datadict library so should work with
no problem under MYSQL 5.
A lot of new data are available (but only with weather.com, not with MSNBC)
- wind direction in degree
- wind speed, direction in 5 days forecast
If no package are installed or no default city choosen, the module and block now display
my city weather forecast rather than returning an error. I hope this will greatly reduce
support demand
It is now possible to suppress all packages installed in one cick.
The "Install ALL packages" now gracefully recover from a timeout and is able to retreive
uncompletely installed packages.
V1.34
Maintenance release to fix a small compatibility problem with PostNuke .761
V1.33 (12/10/2004)
Maintenance release :
- corrected pntitle file for Joerg Napp pntitle hack (the one included in 1.32 only works
with PostNuke .750)
- Corrected datafiles for Brazil, China, Jordan
- Added the possibility to use a proxy for connexion to weather.com or MSNBC.
This is only needed in rare cases. For MOST users just left these fields empty.
- snoopy library upgraded to 1.2
- prevent clash with other modules using snoopy.
- updated script get_country_data.php in docs
- improved HTML compliance of output
V1.32 (04/25/2004)
Maintenance release :
The only change is that the name of the 'real' field of the cache table have been changed to 'flike' for those having problem with phpMyAdmin to rebuild this table. Others users don't need to upgrade. Run on PostNuke .726, .726 +XTE and .750 Gold.
V1.31 (04/25/2004)
- Added a spanish translation by Hache (www.dev-postnuke.com)
- Added a german translation (Juergen Hofmann)
- Added an italian translation (TiMax - Winesalento - agotar)
- Added a nederlandese tranlation (Geert Janssen info AT geertjanssen DOT com)
- Added a danish translation (Jacob Aulbjerg Nielsen)
- Added a lot of new countries including complete set of files for Canadian provinces
(some files are users contributions, see files for the details)
- Corrected missing record for Canada, Nunavut in database
- Added new countries missing from the database
- Corrected incomplete path in pnuser.php and weather.class.php not working on
some servers
- Modify block "weather" where you can choose at block creation either to use default
city (user default if he choose one, or site default) or a city given by its code
(In this version you must know the code for the city you want to choose, so go to
MSNBC or weather.com, find the desired city and look for the code in the adresse bar
of your browser.).
Runnig multiple instances of this block you can have as many weathers as you like
on your website (warning : each block will need a connexion to MSNBC or weather.com
to upgrade so beware the "time to cache" setting and in fact there is a limit in the
number of city blocks anyway !!).
- Added pntitle.php to give the page a meaningfull title if used with Joerg Napp's
pnTitle hack available from http://lottasophie.sourceforge.net.
- Added display of barometer variation as a little arrow
- Added display of latitude, longitude, sunset, sunrise (only works with weather.com,
not MSNBC) if you want to deactivate some of these displays see comments in
pnuser.php file
- Added unit m/s for wind speed display (suggested by Jacob Aulbjerg Nielsen
because in denmark and i suppose in others countries this is the preferred unit
for wind speed)
- Added the needed strings to lang files so that times, dates, coordinates get
correctly translated in user language.
IMPORTANT CHANGE : This module had a problem with upercase/lowercase because the directory
name was weather but the module's name (for permissions, blocs, variables, ...) was Weather.
The documentation available (that each developper should read, isn't it ?) clearly stated
"This directory must be created under the 'modules' directory in the PostNuke install,
and must be created with the name of your module as registered at the PostNuke modules site"
So the module was incoherent, but it worked. Now with the release of Xanthia Templating
Environment (XTE) version RC3 and the upcoming release of PostNuke .750 (the "Golden"
release) it is clear that something MUST be changed to bring directory and module
names in phase. I took the decision to change all Weather to weather because it was the
easiest to handle for the users (it's not easy to do a module upgrade if you change the
diectory name so everybody would need to unistall/reinstall if I choosed Weather)
The upgrade procedure should take care of all the changes and most of you won't even
notice the change but a few precaution must be taken :
- if you have set any permissions rules for this module, don't forget to change them
from Weather to weather
- go to Administration > Blocks click on "Show all blocks" and delete any block with Weather
(uppercase W) in the Module column
v1.30 (01/22/2004)
AS the module seems orphan one more time, and everyone is complaining that it
don't work anymore. I took the decision to produce this new release.
- The module now use the Snoopy library class for connexion, this will hopefully
prevent connexions problems for a certain time (borowed the idea from xp-weather
the XOOPS port of the pn-weather module)
- add a lot of controls to avoid the display of empty values, the -18° temp
syndrom, and the famous .gif not found. Not sure that I catch them all !!
- add icons for the wind directions (adapted from PHP Weather)
- add new icons collections (23x23 and 36x36 came from MSNBC and all the others
including cool intl series with no english words from The Weather Channel).
IMPORTANT IMPORTANT
WARNING Some icons of the olds sets are no more corresponding to the ones MSNBC
now uses (namely 11, 31 and 41) so you must seriously think to switch to one
of the new ones !!
The upgrade process will NOT change your icons dirs. You must do it youself in
the module administration
- the module now display the date/time of observation as transmitted by MSNBC
rather than the date/time of caching in the database. This needed a new column
in the cache table so the upgrade process will delete all the data in the cache
table. But no city nor user preference will be deleted.
- MSNBC changed the codes they uses for all the cities from the old 4 lettres
format to a new 4 letters + 4 or 5 digits format. A lot of cities are already in
this release (including Western Europe, all USA States, Canada and Brazil)
but there is a lot of work left to do. If you wanted to contribute, please read
the "how to add a new country" textfile in this folder.
- as I consider this module as no so legal, after all we are "ripping"
MSNBC data without their consent !! So I took the decision to rework the module
to permit the choice between 2 methods of getting the data
the old one : grabbing the data from MSNBC (but I added the MSNBC logo on the
module's display)
the new one : use the Weather Channel's XML feed avaible at xoar.weather.com
this method need a partner ID and an autorisation key, you can obtain for free
at http://registration.weather.com/registration/xmloap/step1. this metod will
not work without this.
A new link in the module's administration panel allow to choose the connexion
method and enter partner ID and authorisation key.
- Added a german translation (thanks to Juergen Hofmann [jh@jh-edv.com])
v1.25 (6/25/2002)
- Added a button to the administration menu that allows you to attempt to install
all of the city packages available at once.
- Added a Bulgarian translation provided by Yassen Yotov
- Added a Czech translation provided by Martin Soucek
- Added a Greek translation provided by Kostis Pigounakis
- Added a new image set "fresh_verbose" provided by Colman Lalka. Kind of a
cross between the more verbose "orig" set, and the more pretty "fresh" set.
Very nice! =)
- Added several new city packages: All of Australia, New Zealand, South America,
Central America, Asia, Haiti, and Bulgaria
v1.2 (6/15/2002)
- Added a packaging system of sorts for cities. Administrators can now add and
remove a set of cities from a particular locale at any time.
(Mostly this was prompted by the fact that the pninit.php file, which previously
inserted all of these on its own, had grown to more than 500KB - and was doing
more than 3000 inserts to the database. Some users with low memory limitations
were thus unable to install the module.)
- Added a link to the forecast over the image in the block (per lalkacr@yahoo.com's
suggestion)
v1.12 (6/08/2002)
- NEW! Cities provided by darryn@chcs.co.uk including:
+ Austria
+ Belgium
+ Denmark
+ France
+ Germany
+ Ireland
+ Italy
+ Netherlands
+ Norway
+ Portugal
+ Spain
+ Sweden
+ Switzerland
+ UK
- NEW! French translation provided by pagen6@wanadoo.fr
- FIX: fixed a bug that prevented cities whose name contained an apostrophy (') from
properly obtaining and caching weather data.
- FIX: fixed a minor issue that caused names of certain countries to be duplicated
when looking at the forecast.
v1.1 (5/30/2002)
- NEW! interface in the administration menu to add locations / ACCIDs to the
weather module (they still need to be valid ACCIDs from MSNBC).
- NEW! interface in the administration menu to remove locations / ACCIDs
from the weather module (useful in case you add one that's invalid =)
- Moved the image for the user menu (in "My Account") over to be within the
module's directories; making it easier to distribute as one tidy little package
- Added a very stripped down index.php file to the package for backwards compatibility
with the old module system. If possible, use the new method (see FAQs at
http://www.thethird.net for details on how) since this index.php will simply redirect
you to the new way (slower than going there directly).
- Removed the hard-coded English language from the default block (we all get lazy
sometimes, right? =P
- NEW! Polish translation provided by rafaellop@poczta.onet.pl
- NEW! Polish cities provided by rafaellop@poczta.onet.pl
- NEW! Elementary permissions system now implemented
v1.0 (5/28/2002)
- Fixed the bug with not being able to update the cache time correctly through
the administration interface.
v0.9 (5/26/2002)
- Rewrote module using the new .71x series module API
- Moved cached weather data into the database to avoid possible security implications
of world-writeable directories necessary for caching data in files on the filesystem
- Added separate admin interface using the .71x series admin API so that administrators
can change the default ACCID, the image directories for the blocks / forecasts, and
the amount of time data is cached before being refreshed from MSNBC
- Moved all configuration data out of config.php and into the database
// ALL following changes were done by a different developer than this release.
v0.5b (3/7/02)
- PHPNuke to PostNuke Rogue coding differences
- MOdified variable names
- Removed upper ASCII characters in sheets
- Changes to functions
v0.6b (3/8/02)
- Updated block-pnweather.php
- Corrected folders (\html\blocks should have been \html\includes\blocks)
v0.7b (3/9/02)
- Added documentation and formatting consistent with PN Community standards
for modules.
- Moved SQL folder over to /modules/pnweather
- Moved IMAGES folder over to /modules/pnweather, updated folder names to be
more reflective of types of images.
v0.71b (3/9/20)
- Modified "uid" and "uname" variables to "pn_uid" and "pn_uname" respectively.
This was in response to conflicts reported by 2 users shortly after the PN
0.71 release. This is not a problem in all installations however this drop-in
update will not affect existing users.
// ALL above releases done under different developer
/***********************************************************************************/
Known Issues:
- None
Future Development:
- Send suggestions to cmgrote@thethird.net!
/***********************************************************************************/