There's still some work to do, some things (Display temperature in Fahrenheit) don't work correctly yet and I have no Idea what to do with thise CVS files...
If you don't mind, I'd like to suggest some modifications:
constants should be written in uppercase, I guess ("echo aktuelleswetter" confused me a little at first)
leave the default server path empty, or set it to $_SERVER['upload_tmp_dir'], or, even better: $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE (don't know if this actually works, but you should give it a try)
add lang includes for UTF-8!!
and maybe you can find a way to translate the weather conditions to other languages?
These are only my suggestions, for the next version maybe Or, you could try to bundle it with our current weather plugin?
Looks nice, basically. It doesn't yet show anything more than the current s9y weather plugin, does it?
Maybe you'd like to show your code to us?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
No, it doesn't show anything else - but it helps people like me who are not able to install this server plugin you need - my hoster does not allow that, for instance. The whole code is inside the zip file I posted above.
@Mattsches: Thanks for the suggestions! But what has to be inside the UTF-8-Files? I am actually working on a translation right now .
No, it doesn't show anything else - but it helps people like me who are not able to install this server plugin you need - my hoster does not allow that, for instance. The whole code is inside the zip file I posted above.
You can download the PEAR::Weather file and just put the files into your bundled-libs/ subdirectory of s9y, though.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
About the weather plugin: How did you call your files/directories? If you extracted the Weather directory/files not as
bundled-libs/Services/Weather.php
etc.
then it can't work. But else it should.
lamy wrote:Hm, how can I somehow define arrays as constants?
That's not possible.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/