Page 1 of 2

WU-forecast.php

Posted: Mon 19 Dec 2011 4:42 pm
by Trainman
Is it possible to include the WU-forecast in a HTML document. I am redesigning my web site and would like to add forecasts, but I´m making the site in HTML. I can see in the PHP file there is a HTML section generating tables, I guess getting that part into my HTML document, will do the trick, but how?

Kenneth

Re: WU-forecast.php

Posted: Mon 19 Dec 2011 4:47 pm
by Trainman
Trainman wrote:Is it possible to include the WU-forecast in a HTML document. I am redesigning my web site and would like to add forecasts, but I´m making the site in HTML. I can see in the PHP file there is a HTML section generating tables, I guess getting that part into my HTML document, will do the trick, but how?

Kenneth

Sorry should have been posted in the Ajax template thread.. :oops:

Re: WU-forecast.php

Posted: Tue 20 Dec 2011 5:58 am
by gemini06720
Kenneth, a PHP script cannot be included into an HTML page/script/template!

First question: Why are you making the site in HTML - you are greatly limiting the possibilities of the site! You can do so much more with PHP... Does your host server not provide PHP?

OK, getting back to the 'WU-forecast.php' script. Other than a few lines of HTML code, did you not noticed all those other lines of code (PHP) that are needed to get the weather data from the Weather Underground web site near you (ie: Espergærde, the closest station to your location), to save the data into a cache file, to remove the unnecessary lines of code from the cache file, to possibly translate the weather information into another language and, finally, to produce a template that can either be 'included' into a PHP page/template or viewed by itself.

I am not trying to be difficult (nor to make your life difficult) but I need you to understand that more than HTML code is required to produce a WeatherUnderground forecast page - without the PHP code, there cannot be a WeatherUnderground forecast page.

Re: WU-forecast.php

Posted: Tue 20 Dec 2011 8:52 am
by MickinMoulden
I'd do a Google search on "add a weather forecast to my website". And just do a cut and paste.
That's what I did. :D
WU do do a 1 day forecast you can cut and paste (weather sticker).

Re: WU-forecast.php

Posted: Thu 22 Dec 2011 5:31 pm
by Trainman
Thank You Ray and Michael for Your input.

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 12:03 am
by MickinMoulden
Trainman wrote:Thank You Ray and Michael for Your input.
Just checkd your page. I was looking forward to seeing Yowindow, as I've only just starting seeing posts on it, unfortunately it didn't work (work in progress?) Is this like a forecast, to replace the WU forecast that you were after?

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 3:30 am
by gemini06720
Kenneth, you are using an old link for the YoWindow script - the following following line has been replaced:

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="800" height="400">
    	<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="800" height="400">
    	<param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
Please go to the YoWindow Weather Widget page to get the updated code for YoWindow - the new code renders the image somewhat quicker.

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 3:39 am
by gemini06720
MickinMoulden wrote:Just checkd your page.
Michael, whose pages were you looking at - mine were updated a few hours ago - the page seems to display correctly/properly into all browsers, including Internet Explorer 9 (which I do not support)?
MickinMoulden wrote:Is this like a forecast, to replace the WU forecast that you were after?
Michael, have a look at YoWindow starting with the main page and the proceeding to the YoWindow Weather Widget page where you can/will get the code required to place inside your page... ;)

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 8:43 am
by MickinMoulden
gemini06720 wrote: Michael, whose pages were you looking at
I replied to Kenneth "Trainman". And I've looked at YoWindow, looking at adding it myself, as it fits in with my theme very well. It seems Kenneth will be ditching the WU forecast option for YoWindow.

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 8:53 am
by gemini06720
MickinMoulden wrote:It seems Kenneth will be ditching the WU forecast option for YoWindow.
Indeed, YoWindow is somewhat more visual and a lot more modern looking than the 'WU-forecast.php' script has been and seems will ever be providing...

Michael, as the first page on your site loads, it displays the warning box 'Continue with content filter?' - unless either the 'OK' or the 'Cancel' button is clicked, the page remains frozen at that stage (stops loading/displaying).

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 9:35 am
by MickinMoulden
gemini06720 wrote:Michael, as the first page on your site loads, it displays the warning box 'Continue with content filter?' - unless either the 'OK' or the 'Cancel' button is clicked, the page remains frozen at that stage (stops loading/displaying).
That's right (you must of been viewing after 8pm!). I guess I could make the rest of the page load before that warning box. However, while I've got you here, what I would like it to do is countdown (say 5 seconds) before continuing automatically. Any idea's? (Sorry, now off topic - will now implement YoWindow!)

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 11:18 am
by gemini06720
MickinMoulden wrote:That's right (you must of been viewing after 8pm!).
Michael, what is different after 8pm (your time, not my time) and why the warning? Michael, this is Internet and not public television! :roll:

Do you not think you are going a bit 'overboard' with such a warning? If this is a requirement by/from the government of Australia, then that is an infringement on free speech - so far, no government has any control of the Internet, no matter how hard they are/have been trying - the Internet is not one country, the Internet is all of the countries of this 'stupid' planet, thus no one has and/or should have control of the Internet! (I 'smell' a debate coming up :twisted: )

Just because your site has a few pictures of lightly clad females does not make your site pornographic!

But then, why are lightly clad females needed on a weather site - they are certainly not going to improve the weather in any way... :roll:
MickinMoulden wrote:I guess I could make the rest of the page load before that warning box.
Simply get that warning (and the script producing the warning) out of your site ... there is no purpose for the warning, none! :evil:

Re: WU-forecast.php

Posted: Fri 23 Dec 2011 1:31 pm
by MickinMoulden
Sorry I asked. Feel free not to return.

Re: WU-forecast.php

Posted: Mon 02 Jan 2012 1:07 pm
by Trainman
gemini06720 wrote:Kenneth, you are using an old link for the YoWindow script - the following following line has been replaced:

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="800" height="400">
    	<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="800" height="400">
    	<param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
Please go to the YoWindow Weather Widget page to get the updated code for YoWindow - the new code renders the image somewhat quicker.

Thank you I´ll fixed it.

Re: WU-forecast.php

Posted: Mon 02 Jan 2012 9:07 pm
by serowe
gemini06720 wrote:Simply get that warning (and the script producing the warning) out of your site ... there is no purpose for the warning, none! :evil:
You must have upset him Ray - his site has now 'gone with the wind' :) (It's also one of the problems running web sites at home - IP changes, Dynamic DNS doesn't get updated, web site goes bye-bye or the provider found out :( )