Re: Now available: AJAX/PHP multilingual website templates
Posted: Thu 19 Jan 2012 10:25 am
Hi!
Could this be a dot / comma issue?
Toddi
Could this be a dot / comma issue?
Toddi
Support forum for Cumulus weather station software
https://cumulus.hosiene.co.uk/
Code: Select all
When you've decided that the new site is to be made 'live', then use these steps to have it become the primary display.
Rename (on your local disk) wxindex.php to index.php
Edit flyout-menu.xml for flyout-menu to replace wxindex.php with index.php in the link.
Upload flyout-menu.xml and index.php to your website.Toddi did you make modifications to the files, other than the setting files, particularly to the files 'top.php' and 'include-style-switcher.php' - I am getting some PHP errors when I use the 'debug' command as in:Toddi wrote:Has tried to get the nice templates to work. It is a masterpiece , but may not get ajaxCUwx to work. Has tried in all possible ways. Can anyone please take a look.
Code: Select all
http://kystvind.no/wxindex.php?debugCode: Select all
var decimalComma = false; // =false for '.' as decimal separator, =true for ',' (comma) as decimal separatorYes, i fix it. A little problem with the domain namebeteljuice wrote:That page seems to be working OK - did you fix it ?
Yes, i fix it. A little problem with the domain namebeteljuice wrote:That page seems to be working OK - did you fix it ?
Thanks for haven a look!gemini06720 wrote:Toddi did you make modifications to the files, other than the setting files, particularly to the files 'top.php' and 'include-style-switcher.php' - I am getting some PHP errors when I use the 'debug' command as in:Toddi wrote:Has tried to get the nice templates to work. It is a masterpiece , but may not get ajaxCUwx to work. Has tried in all possible ways. Can anyone please take a look.I also noticed, in the 'ajaxCUwx.js' script, that you have not modified the 'decimalComma' variable:Code: Select all
http://kystvind.no/wxindex.php?debugYour main page is already using the ',' (comma) as a decimal separator.Code: Select all
var decimalComma = false; // =false for '.' as decimal separator, =true for ',' (comma) as decimal separator
Code: Select all
var tdate = ajaxdateraw.split("/");
if(typeof(tdate[2])=='undefined') {tdate = ajaxdateraw.split("-"); }
var ajaxdateformat = tdate[1]+"/"+tdate[0]+"/"+tdate[2];
Code: Select all
var tdate = ajaxdateraw.split("/");
if(typeof(tdate[2])=='undefined') {tdate = ajaxdateraw.split("-"); }
var ajaxdateformat = tdate[1]+"/"+tdate[0]+"/"+tdate[2];
Code: Select all
var tdate = ajaxdateraw.split("/");
if(typeof(tdate[2])=='undefined') {tdate = ajaxdateraw.split("-"); }
if(typeof(tdate[2])=='undefined') {tdate = ajaxdateraw.split("."); }
var ajaxdateformat = tdate[1]+"/"+tdate[0]+"/"+tdate[2];Your NOAA report shows the 62,8 km/h gust was on the 4th of January.meteotortosa wrote:Hi,
I think something is wrong..
In "Home" tab, we can find: Gust Month: 62,8 km/h January 1
but, this is wrong, you can see in NOAA reports (http://www.meteotortosa.cat/web3/wxnoaa ... eports.php)
Gust Month was on 3th Junary.
How can I fix it?
A lot of thanks
Code: Select all
<tr>
<td colspan="2" class="data1" align="center">
<?php langtrans('Gust Month'); ?>: <?php echo $mrecordwindgust. " $uomWind"; ?>
<?php if(isset($mrecordhighgustday)) { ?>
<?php echo $monthname . " " . $mrecordhighgustday; ?>
<?php } // $mrecordhighgustday ?>
</td>
</tr>
Code: Select all
$mrecordwindgust = $WX['MonthGustH'];
list($mrecordhighgustday,$mrecordhighgustmonth,$mrecordhighgustyear)=CU_getRecordDate($WX['MonthGustHD'],$WX['year']); // calculated value
Code: Select all
$WX['MonthGustH'] = '62,8';
$WX['MonthGustHT'] = '21:44';
$WX['MonthGustHD'] = '04 enero';
$WX['year'] = '2012';
Code: Select all
$SITE['monthNames'] = array(
'Gener',
'Febrer',
'Marc',
'Abril',
'Maig',
'Juny',
'Juliol',
'Agost',
'Setembre',
'Octubre',
'Novembre',
'Desembre',
);Code: Select all
$SITE['monthNames'] = array(
"Enero",
"Febrero",
"Marzo",
"Abril",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
);