Looks like you forgot to make the changes in admin/functions.php that were listed in the instructions.
Find:
PHP Code:
// ###################### Start doshutdown #######################
And above that add:
PHP Code:
// ###################### Weather Functions #######################
function convert_temp($number,$tpc) {
$number *= 1;
if ($tpc == 0) {
$number = (5/9) * ($number-32);
$number = round($number);
return "$number?C";
} else {
return "$number?F";
}
}
function convert_press($number,$tps) {
$number *= 1;
if ($tps == 0) {
$number = $number *33.86;
$number = round ($number);
return "$number mbar";
} else {
return "$number inHg";
}
}
function convert_length($number,$tps) {
$number *= 1;
if ($tps == 0) {
$number = $number * 1.609;
$number = round ($number);
return "$number km";
} else {
return "$number mi";
}
}
function convert_speed($number,$tps) {
$number *= 1;
if ($tps == 0) {
$number = $number * 1.609;
$number = round ($number);
return "$number km/h";
} else {
return "$number mph";
}
}
function getdayofweek($numbers) {
if ($numbers == "1") {
$dayofweek="Sunday";
return "$dayofweek";
} elseif ($numbers == "2") {
$dayofweek="Monday";
return "$dayofweek";
} elseif ($numbers == "3") {
$dayofweek="Tuesday";
return "$dayofweek";
} elseif ($numbers == "4") {
$dayofweek="Wednesday";
return "$dayofweek";
} elseif ($numbers == "5") {
$dayofweek="Thursday";
return "$dayofweek";
} elseif ($numbers == "6") {
$dayofweek="Friday";
return "$dayofweek";
} else {
$dayofweek="Saturday";
return "$dayofweek";
}
}
function getweathertype($type) {
if ($type == '1') {
$weathertype="Cloudy";
return "$weathertype";
} elseif ($type == '3') {
$weathertype="Mostly Cloudy";
return "$weathertype";
} elseif ($type == '4') {
$weathertype="Partly Cloudy";
return "$weathertype";
} elseif ($type == '13') {
$weathertype="Light Rain";
return "$weathertype";
} elseif ($type == '14') {
$weathertype="Showers";
return "$weathertype";
} elseif ($type == '18') {
$weathertype="Rain";
return "$weathertype";
} elseif ($type == '19') {
$weathertype="AM Showers";
return "$weathertype";
} elseif ($type == '20') {
$weathertype="Scattered Showers";
return "$weathertype";
} elseif ($type == '21') {
$weathertype="Few Showers";
return "$weathertype";
} elseif ($type == '22') {
$weathertype="Mostly Sunny";
return "$weathertype";
} elseif ($type == '24') {
$weathertype="Sunny";
return "$weathertype";
} elseif ($type == '26') {
$weathertype="AM Clouds/ PM Sun";
return "$weathertype";
} elseif ($type == '27') {
$weathertype="Isolated T-Storms";
return "$weathertype";
} elseif ($type == '28') {
$weathertype="Sct T-Storms";
return "$weathertype";
} elseif ($type == '29') {
$weathertype="PM Showers";
return "$weathertype";
} elseif ($type == '32') {
$weathertype="Few Snow Showers";
return "$weathertype";
} elseif ($type == '33') {
$weathertype="Cloudy/ Wind";
return "$weathertype";
} elseif ($type == '36') {
$weathertype="Rain/ Thunder";
return "$weathertype";
} elseif ($type == '37') {
$weathertype="Partly Cloudy/ Wind";
return "$weathertype";
} elseif ($type == '40') {
$weathertype="Light Rain/ Wind";
return "$weathertype";
} elseif ($type == '41') {
$weathertype="Showers/ Wind";
return "$weathertype";
} elseif ($type == '43') {
$weathertype="T-Showers";
return "$weathertype";
} elseif ($type == '44') {
$weathertype="Mostly Sunny/ Wind";
return "$weathertype";
} elseif ($type == '49') {
$weathertype="Sct Flurries/ Wind";
return "$weathertype";
} elseif ($type == '51') {
$weathertype="PM T-Storms";
return "$weathertype";
} elseif ($type == '53') {
$weathertype="T-Storms";
return "$weathertype";
} elseif ($type == '55') {
$weathertype="Sunny/ Wind";
return "$weathertype";
} elseif ($type == '56') {
$weathertype="AM T-Storms";
return "$weathertype";
} elseif ($type == '80') {
$weathertype="AM Light Rain";
return "$weathertype";
} elseif ($type == '84') {
$weathertype="Snow Showers";
return "$weathertype";
} elseif ($type == '90') {
$weathertype="Snow/ Wind";
return "$weathertype";
} elseif ($type == '98') {
$weathertype="Light Snow";
return "$weathertype";
} elseif ($type == '100') {
$weathertype="PM Snow";
return "$weathertype";
} elseif ($type == '103') {
$weathertype="Light Snow/ Wind";
return "$weathertype";
} elseif ($type == '106') {
$weathertype="Light Wintry Mix";
return "$weathertype";
} elseif ($type == '109') {
$weathertype="Snow";
return "$weathertype";
} elseif ($type == '133') {
$weathertype="PM Snow Showers/ Wind";
return "$weathertype";
} elseif ($type == '153') {
$weathertype="PM Light Snow/ Wind";
return "$weathertype";
} elseif ($type == '155') {
$weathertype="PM Snow Showers";
return "$weathertype";
} elseif ($type == '175') {
$weathertype="PM Light Snow";
return "$weathertype";
} elseif ($type == '181') {
$weathertype="AM Snow/ Wind";
return "$weathertype";
} else {
$weathertype="Unknown Type";
return "$weathertype";
}
}