Weather by You!
Templates and Projects support => Html Templates => Topic started by: avoorpool on August 09, 2012, 12:51:24 PM
-
Hi Jacques,
I managed to implement the EC radar image (from ec-radar.php script, Ken True).
See: http://altonaweather.ca/ecradar.php
However, I would like to implement a second image (National Radar) on the same page (template).
I've used your .PHP implementation like in WUforecast.php, however I can't get a second .PHP file on the same page.
Any suggestions?
Thanks,
Arthur
-
Hi Arthur,
I don't know how you do it!
You have to be more specific to show, what you're doing:
- Which file your are using,
- Where do you "include" it?
Maybe a bit of code?
Regards,
Jacques
-
HI Jacques,
I have uploaded to webserver */radar/ the file ec-radar.php (downloaded from Ken True).
Modified the setting to WKR (= Ontario)
Modified my html file into: ecradar.php with the following code:
<h3 align="center"><u>Live Radar Update for South Western Ontario.</u></h3>
<br />
<?php
// That is what we call a php file inclusion
// WU forecast is takin place in that "hole" in your page
include('ec-radar.php');
?>
<br />
</div>
This image now shows perfectly in the WB template with address:
http://altonaweather.ca/ecradar.php
I would like to add another radar image which is setup in the file:ec-radarnat.php (also uploaded to the server directory */radar/ec-radarnat.php
The question is of how to combine both into the WB template (= ecradar.php) file.
thanks,
Arthur
-
Hi Arthur,
I'll have to check your script, but usually, you just have to duplicate
"include" to achieve your goal.
Regards,
Jacques
-
Hi Jacques,
Since I'm not sure if it is possible to have 2 of the very same scripts running on the same page, I added a 2nd tab in the submenu: [Radar Ontario] and [Radar Canada]
In this way it's clearly divided and the Canada Radar (ec-radar-NAT.php) is a nice cliackable map where you can select every radar station in the country to see a detailed radar map.. :)
On days like this (and the coming weekend) it's good to see these images, since we've already had >55mm of rain so far.....It looks like there is more to come...
Have a nice weekend,
Cheers,
Arthur