Page 51 of 54

Re: Now available: AJAX/PHP multilingual website templates

Posted: Mon 18 Mar 2013 1:16 am
by BCJKiwi
Ken, That matches the list previously posted by Mark (mcrossley) and is the same, or almost the same as the list numbered to 200, posted some time back by actionman which I found has numerous repeated items.

As you advise there are missing items. These have been included in the recent work by me (BCJKiwi) and actionman and is on-going.

Re: Now available: AJAX/PHP multilingual website templates

Posted: Tue 19 Mar 2013 6:37 pm
by PaulMy
Hi Ken,
I am trying to get a couple additional radar sites to run from the .ca site flyout-menu but they don't show -
wxradar.php (using default ec-radar.php and set to 'WSO' displays correctly) http://www.komokaweather.com/wxradar.php
ec-radar-wkr.php (a new file by editing ec-radar.php at line 30 from WSO to WKR) displays from URL http://www.komokaweather.com/ec-radar-wkr.php
and a similar new ec-radar-nat.php also displays from URL

I also added a new wxradar-wkr.php (by editing in line 54 from WSO to WKR) http://www.komokaweather.com/wxradar-wkr.php but this defaults to display the WSO site and the same for a wxradar-nat.php

Can you suggest what I might have omitted or where I need to make further edit(s) so that each show the correct radar site?

Thanks,
Paul

Re: Now available: AJAX/PHP multilingual website templates

Posted: Tue 19 Mar 2013 6:48 pm
by saratogaWX
In the ec-radar-wkr.php script, change

Code: Select all

if (isset($SITE['ecradar'])) 	{$siteID = $SITE['ecradar'];}
to

Code: Select all

// if (isset($SITE['ecradar'])) 	{$siteID = $SITE['ecradar'];}
so your Settings.php does not override what you have set in the script for $siteID

Best regards,
Ken

Re: Now available: AJAX/PHP multilingual website templates

Posted: Tue 19 Mar 2013 9:22 pm
by PaulMy
Thanks again Ken, that is what I was missing,

Paul

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 20 Mar 2013 3:59 am
by PaulMy
I now have all the Canadian EC radar sites added.

Now on another small matter, at the footer there is a Contact Us link that shows http://www.komokaweather.com/(my email) which is not valid in this format.
I have changed Settings.php line 106 $SITE['email'] = 'my email';
Have I done this wrong, or is there another setting I have missed?

Thanks,
Paul

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 20 Mar 2013 7:32 am
by William Grimsley
PaulMy wrote:I now have all the Canadian EC radar sites added.

Now on another small matter, at the footer there is a Contact Us link that shows http://www.komokaweather.com/(my email) which is not valid in this format.
I have changed Settings.php line 106 $SITE['email'] = 'my email';
Have I done this wrong, or is there another setting I have missed?

Thanks,
Paul
Hi Paul,

Currently, when I click on the Contact Us it directs me to the URL: http://www.komokaweather.com/paul@komokaweather.com

You need to change the URL (in your footer.php file) from:

http://www.komokaweather.com/paul@komokaweather.com

To:

mailto:paul@komokaweather.com

Hope this helps...

William

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 20 Mar 2013 11:45 am
by gemini06720
PaulMy wrote:I now have all the Canadian EC radar sites added.
Paul, I cannot believe that you have created 32 different templates to display 32 different radar sites :shock: you could have easily learned and use the '<form>' tag to create an HTML form for user input (or user selection) for those 32 different radar sites... :roll:

The setting for the global variable '$SITE['email']' should simply be 'mailto:paul@komokaweather.com'. ;)

Re: Now available: AJAX/PHP multilingual website templates

Posted: Thu 21 Mar 2013 2:16 am
by PaulMy
Paul, I cannot believe that you have created 32 different templates to display 32 different radar sites :shock: you could have easily learned and use the '<form>' tag to create an HTML form for user input (or user selection) for those 32 different radar sites... :roll:
I do, and learn, things one step at a time, and that radar page was 32 little steps. I thought there probably was a better and easier way as I was doing them but I was on a roll!

I will read about your linked 'form' and see if I can understand for a next time. I use w3schools site to check on usage of tags, etc. but unfortunately I find much of it quite challenging and not necessarily "easily learned".

I will continue to make changes and add-ons that my ability allows and trust that after I have looked, experimented and done a bit of search I can call on the helpful members for guidance and assistance.

Re the Contact Us, I have the correct email in Settings.php and have been looking in the files, including footer.php, from where the preceding www.komokaweather.com comes from but have not been successful.

Thanks for your responses,
Paul

Re: Now available: AJAX/PHP multilingual website templates

Posted: Thu 21 Mar 2013 11:26 am
by gemini06720
PaulMy wrote:Re the Contact Us, I have the correct email in Settings.php...
Paul, I have to disagree on the correct setting ... ;) ... it must be in the following format: 'mailto:somebody@somemail.org' - the 'mailto:' must be part of the '$SITE['email']' setting, such as:

Code: Select all

$SITE['email'] = 'mailto:paul@komokaweather.com';

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 22 Mar 2013 1:16 am
by PaulMy
Adding 'mailto:' did it! Thanks for the pointer Ray,

Paul

Re: Now available: AJAX/PHP multilingual website templates

Posted: Sun 24 Mar 2013 8:02 am
by Mark14
I installed the Saratoga script but I have some problems.

First, the weather from the nearest METAR station doesn't work. I have information: "unable to load EPPO data RC="
I have

Code: Select all

$SITE['conditionsMETAR'] = 'EPPO';
I should work but it doesn't...
Here there is my website http://pogodaslesin.ugu.pl/wxindex.php

Another thing is the time. I have still the starting timestamp, so 01/01/1970. I have set

Code: Select all

$SITE['tz'] = 'Europe/Brussels';
$SITE['timeFormat'] = 'd/m/Y H:i'; 
$SITE['timeOnlyFormat'] = 'H:i'; 
$SITE['dateOnlyFormat'] = 'd/m/Y';
I don't know where is the error.

Thanks for any help.

Re: Now available: AJAX/PHP multilingual website templates

Posted: Sun 24 Mar 2013 2:55 pm
by PaulMy
Hi Mark,
Sorry I can't help with the date and METAR station and forecast issues. But notice the date in your Status seems to be ok for Cumulus realtime, FTP and NOAA but not for 'Cumulus weather data', and any data displayed from 'realtime' seems fine.

Also your Flyout-menu links for Radar, Forecast & Advisories and Almanac don't seem to work (but the links work from your Website Map page). The data in your 'Weather Trends' link seems fine, including update date/time (which I think comes from Cumulus realtime).

Paul

Re: Now available: AJAX/PHP multilingual website templates

Posted: Mon 25 Mar 2013 8:10 am
by nitrx
Mark14 wrote:I installed the Saratoga script but I have some problems.

First, the weather from the nearest METAR station doesn't work. I have information: "unable to load EPPO data RC="
I have

Code: Select all

$SITE['conditionsMETAR'] = 'EPPO';
I should work but it doesn't...
Here there is my website http://pogodaslesin.ugu.pl/wxindex.php

Another thing is the time. I have still the starting timestamp, so 01/01/1970. I have set

Code: Select all

$SITE['tz'] = 'Europe/Brussels';
$SITE['timeFormat'] = 'd/m/Y H:i'; 
$SITE['timeOnlyFormat'] = 'H:i'; 
$SITE['dateOnlyFormat'] = 'd/m/Y';
I don't know where is the error.

Thanks for any help.
Are you sure the /cache folder is writeable ?

Re: Now available: AJAX/PHP multilingual website templates

Posted: Mon 25 Mar 2013 7:55 pm
by Mark14
DO you mean CHMOD values? I've set to 777 and nothing changed. In the CACHE folder I have index.html, USNO-moondata.txt, WU-forecast-0-en.txt, WU-forecast-0-pl.txt and uv-forecast.txt.

Re: Now available: AJAX/PHP multilingual website templates

Posted: Mon 25 Mar 2013 8:11 pm
by nitrx
Mark14 wrote:DO you mean CHMOD values? I've set to 777 and nothing changed. In the CACHE folder I have index.html, USNO-moondata.txt, WU-forecast-0-en.txt, WU-forecast-0-pl.txt and uv-forecast.txt.
Yes that was what I meant but this seems not to be the solution.