Page 29 of 54

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 07 Sep 2011 6:17 pm
by nitrx
Thank Ken works fine for The Netherlands, maybe time to look for other forecasts like yr.no, wunderground is getting annoying

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 07 Sep 2011 6:43 pm
by josebp
Hi Ken, running smoothly.
The translation to Spanish sure that it can be improved... but surely using a translator as I do for the English language. :lol:
Thank you very much for your work. :clap:
Best regards,
José
-----------------------------------------------------------------------------------------------------------------------------------------
Hola Ken, funcionando sin problemas.
La traducción a Español seguro que se puede mejorar... pero seguro que utilizan un traductor como yo para el idioma inglés. :lol:
Muchas gracias por su trabajo. :clap:
Saludos,
José

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 07 Sep 2011 8:06 pm
by SouthUistWX
Hi Ken, many thanks for your grand effort in fixing this :clap:

Re: Now available: AJAX/PHP multilingual website templates

Posted: Wed 07 Sep 2011 9:39 pm
by miki41254
Hi Ken, thank you very much for the solution very fast.
Mick

Re: Now available: AJAX/PHP multilingual website templates

Posted: Thu 08 Sep 2011 12:07 am
by JennyLeez
and many thanks from me for fixing this so fast. I had a big hole on my page :(

You are correct with the much longer short description. When running a coupler of cycles it is now basically repeating itself.

C'est la Vie guess removing the text description will fix that.

Thanks again :)
Jenny

Re: Now available: AJAX/PHP multilingual website templates

Posted: Thu 08 Sep 2011 9:28 pm
by miki41254
Hi all, my website, between 23.00 and 00.00 always shows 01:00
foto.jpg
How can I fix?

Mick

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 09 Sep 2011 1:25 am
by saratogaWX
miki41254 wrote:Hi all, my website, between 23.00 and 00.00 always shows 01:00
foto.jpg
How can I fix?

Mick
I think the issue is with your time format in your weather PC. The tags are showing

Code: Select all

$WX['date'] = '09/09/2011';
$WX['time'] = '00.02 on 09 settembre 2011';
$WX['timehhmmss'] = '00.02.26';
Generally, both the PHP and the ajaxCUwx.js expect the time formatted as HH:MM:SS and not HH.MM.SS

I'd not encountered this mode of displaying time without the colon (:) before, but I can work up fixes to accommodate it.

Best regards,
Ken

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 09 Sep 2011 1:35 am
by saratogaWX
Try this for a quick fix in CU-defs.php in the function CU_fixupTime() change

Code: Select all

  $t = explode(':',$tfixed);
to

Code: Select all

  $t = explode(':',$tfixed);
  if(!isset($t[1])) { $t = explode('.',$tfixed); }
and let me know how that works out.
ajaxCUwx doesn't process the time at all.. just uses it from realtime.txt (which is in hh:mm:ss format already).

Best regards,
Ken

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 09 Sep 2011 7:42 pm
by saratogaWX
I've updated the CU-tags, CUdefs to have the time hh.mm fix, and beta tags current to 1.9.2beta Build-1011.

Also have fixed the 'duplicate-of-first-day' forecast issue with an update to WU-forecast.php

Updates from: update utility

Best regards,
Ken

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 09 Sep 2011 8:20 pm
by miki41254
I changed time format, on Windows control panel, from HH.mm.ss to HH:mm:ss

I'm waiting 23:00 to see if the problem is solved. If no, i try to change code or replace CU-tags, CUdefs.
I'll let you know how it works.
Cheers, Mick.

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 09 Sep 2011 9:06 pm
by miki41254
It's ok, only changing time format on control panel.

Mick

Re: Now available: AJAX/PHP multilingual website templates

Posted: Sat 10 Sep 2011 8:50 pm
by miki41254
Hi Ken, an additional issue: just open homepage the date format is ddMMYYYY
foto1.jpg
After few seconds showed a change: date format is MMddYY
foto2.jpg
I ask your help again.
Mick

Re: Now available: AJAX/PHP multilingual website templates

Posted: Sun 11 Sep 2011 12:01 am
by gemini06720
Mick, could you try changing the variable 'showDateMDY' in the file "ajaxCUwx.js" (in line 67 ... if you have not made any modification to the file) from 'true' to 'false' (set to false to show date as dd/mm/yyyy)...

Re: Now available: AJAX/PHP multilingual website templates

Posted: Sun 11 Sep 2011 7:53 am
by miki41254
Setting to false show date format ddmmYY, not ddmmYYYY.
Mick

Re: Now available: AJAX/PHP multilingual website templates

Posted: Sun 11 Sep 2011 11:41 pm
by JennyLeez
Hi,

Re WU-forecast 5 day layout.
Is there anyway I can stop it showing the short forecast under the icon please.
I have removed the predicted temperature but alas can not work out how to remove the short forecast.
Both the short and long forecast are repeating themselves.
Many thanks

Jenny