Shape 5

Joomla Free Extensions => Weather Module - Free => : jonahh March 10, 2009, 10:11:50 PM



: 1 Day Weather Forcast
: jonahh March 10, 2009, 10:11:50 PM
To do this open up the weather.class.php file look for and remove the below code:

:
for($pos = 0; ($pos = strpos($data, 'yweather:forecast', $pos)) !== false; $pos+=2) {
$attr = explode('"', substr($data, $pos, strpos($data, '/>', $pos)-$pos));
if($metric) {
$attr[5] = number_format(($attr[5] - 32) / 1.8, 0);
$attr[7] = number_format(($attr[7] - 32) / 1.8, 0);
}
$day = array();
$day['when'] = $attr[1];
$day['low'] = $attr[5].'°'.$units[0];
$day['high'] = $attr[7].'°'.$units[0];
$day['text'] = $attr[9];
$day['image'] = $attr[11];
$ret[] = $day;
}


: Re: 1 Day Weather Forcast
: sligo May 10, 2009, 03:48:08 PM
Just what I was looking for, thanks!


: Re: 1 Day Weather Forcast
: lon3wolf May 18, 2009, 05:09:15 AM
Thanks a lot  :)


: Re: 1 Day Weather Forcast
: ncleator August 08, 2013, 12:20:29 PM
HI there
I recently downloaded this template, is there code for 3 day forcast
Tks a mil


: Re: 1 Day Weather Forcast
: jonahh August 08, 2013, 12:41:46 PM
Yes there is, just be sure to change  number of days in admin to 3.