Weather by You!
Templates and Projects support => Templates and Projects discussion => Topic started by: CrasHBoneS on August 12, 2012, 09:12:56 AM
-
In this post I will write all the modification to weather blues v2 template file
today_txt.php file
Before
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_press.'</td><td>'.$pressTH.' '.$pressunit.'</td><td>'.$TpressTH.'</td>'; ?>
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_press.'</td><td>'.$pressTL.' '.$pressunit.'</td><td>'.$TpressTL.'</td>'; ?>
After
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_pressTH.'</td><td>'.$pressTH.' '.$pressunit.'</td><td>'.$TpressTH.'</td>'; ?>
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_pressTL.'</td><td>'.$pressTL.' '.$pressunit.'</td><td>'.$TpressTL.'</td>'; ?>
-
thisyear_txt.php
Before
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_rmonth.'</td><td>'.$rmonth.' '.$rainunit.'</td><td> </td>'; ?>
After
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_ryear.'</td><td>'.$ryear.' '.$rainunit.'</td><td> </td>'; ?>
-
records_txt.php
Does not appear the time the record has been recorded
There is a "F" after every webtag
Before
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_tempH.'</td><td>'.$tempH.' '.$tempunit.'</td><td>'.$TtempHF.'</td>'; ?>
After
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_tempH.'</td><td>'.$tempH.' '.$tempunit.'</td><td>'.$TtempH.'</td>'; ?>
-
Hi Crash,
The F at the end of many timestamp is not an error, it is a "F"ormatted timestamp.
Some webtag timestamp have "at" in front of time, and/or "on" for date!
These "new" webtags are for standarize things and help translation needs as "at" and "on"
could be translated (replaced) to suit any needs.
At begining of wt_data_inc.php file, they're 2 variable to configure: pre_date and pre_time.
Regards,
Jacques
-
On Monthly data window data wraps long lines causing data to exceed window and flows out of boundries.
thismonth_txt.php
Before
Line 11: <col width="150" />
After
Line 11: <col width="140" />
-
trends.php
at the bottom of the file are duplicated these lines
<script type="text/javascript" src="lib/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="lib/jquery.nivo.slider.pack.js"></script>
the page does not load trends images, deleting these 2 lines the page loads trends images
in the page weatherbyyou.com/demo/Weather_blues_v2/trends.php
the 2 line above are not duplicated at the bottom
-
gauges.php
<script language="JavaScript1.2" type="text/javascript">
var mo = new Array("","","","");
var tempunits = "<?php echo $tempunit; ?>";
var tempos = new Array("<?php echo $RCtemp.'","'.$RCtempTL.'", "'.$RCtempTH.'", "'.$temptrendtext.'", "'.$temptrendenglish; ?>");
var tempis = new Array("<?php echo $RCintemp; ?>","","","");
var tempex1 = new Array("","","","");
var tempex2 = new Array("","","","");
var tempdp = new Array("<?php echo $RCdew; ?>","","","");
var temphi = new Array("<?php echo $RCheatindex; ?>","","","");
var tempwc = new Array("<?php echo $RCwchill; ?>","","","");
var humos = new Array("<?php echo $RChum; ?>","","","");
var humis = new Array("<?php echo $RCinhum; ?>","","","");
var humex1 = new Array("","","","");
var humex2 = new Array("","","","");
var cloudbase = "<?php echo $cloudbase; ?>";
var raintoday = new Array("<?php echo $RCrfall.'", "'.$rainunit.'", "'.$RCrrate.'", "'.$RCrrateTM; ?>");
var winddata = new Array("<?php echo $RCwgust.'", "'.$bearing.'", "'.$RCwspeed.'", "'.$avgbearing.'", "'.$RCwgustTM.' '.$windunit.'", "'.$bearingTM.'&#176; at '.$TwgustTM; ?>");
var hwdir = new Array(<?php echo $wdirdata; ?>);
var hwspd = new Array(<?php echo $wspddata; ?>);
var wsu = "<?php echo $windunit; ?>";
var bardata = new Array("<?php echo $RCpress.'", "'.$pressunit.'", "'.$presstrend.'", "'.$RCpressTH.'", "'.$RCpressTL.'", "'.$presstrendenglish; ?>");
var TempColor = "";
var HumColor = "";
var RainColor = "";
var WindAvgColor = "";
var WindGustColor = "";
var WindHistColor = "";
var CloudTextColor = "";
var AnalogBaroTextColor = "";
var AnalogBaroNeedleColor = "";
var ExtraSensor1Name = "";
var ExtraSensor2Name = "";
</script>
weather blues template gauges.php does not read the value from wt_data_inc.php and so does not display correct value
<script type="text/javascript">
var mo = new Array("","","","");
var tempunits = "°C";
var tempos = new Array("0","999.0","-999.0","Steady","Steady");
var tempis = new Array("0","","","");
var tempex1 = new Array("","","","");
var tempex2 = new Array("","","","");
var tempdp = new Array("0","","","");
var temphi = new Array("0.0","","","");
var tempwc = new Array("0","","","");
var humos = new Array("0","","","");
var humis = new Array("00","","","");
var humex1 = new Array("","","","");
var humex2 = new Array("","","","");
var cloudbase = "0 ft";
var raintoday = new Array("0","mm","0","0.0");
var winddata = new Array("0","0","0","0","0 km/h,0° at 00:00");
var hwdir = new Array(0);
var hwspd = new Array(0,0);
var wsu = "km/h";
var bardata = new Array("0000","hPa","Steady","0.0","9999.0","Steady");
var TempColor = "";
var HumColor = "";
var RainColor = "";
var WindAvgColor = "";
var WindGustColor = "";
var WindHistColor = "";
var CloudTextColor = "";
var AnalogBaroTextColor = "";
var AnalogBaroNeedleColor = "";
var ExtraSensor1Name = "";
var ExtraSensor2Name = "";
</script>
-
records_txt.php
Does not display the name which all time high monthly rain occured
Before:
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_rfallmH.'</td><td>'.$rfallmH.' '.$rainunit.'</td><td>'.$TrfallmHF.'</td>';
?>
After
</tr><tr class="td_data">
<?php echo '<td>'.$Tr_rfallmH.'</td><td>'.$rfallmH.' '.$rainunit.'</td><td>'.$TrfallmH.'</td>'; ?>