Ok, first of all I've got these 2 bits of code in my banner.php:
As you can see, I've deleted the "wspeed" tag and added the "wlatest" tag. I thought this makes sense.
Code: Select all
// Current field names (matches tag fields) used
$SITE['cvalues'] = array(
"date","time","temp","hum","dew","wlatest","wgust","avgbearing","rrate",
"rfall","press","wdir","beaufort","windunit","tempunit","pressunit","rainunit",
"windrun","presstrend","rmonth","ryear","rfallY","intemp","inhum","wchill",
"temptrendval","tempTH","TtempTH","tempTL","TtempTL",
"windTM","TwindTM","wgustTM","TwgustTM",
"pressTH","TpressTH","pressTL","TpressTL",
"cversion","cbuild");Code: Select all
// Print windspeed
$text = "Wind: " . ret_value("wdir") . " " . ret_value("wlatest") . ' ' . ret_value("windunit");
if ($SITE['usettf'] == "yes" ) {
$size = 10;
imagettftextbox($im, $size, 0, 0, 22, $green, $font1, $text, $SITE['image_width'], "left");
} else {
$size = 5;
imageWriteString($im, $size, $text, $green, "left", 23);
}Why has this happened?
Thanks
William