Forum Support

 
Advanced Search


[1]

Offline jonahh
Free Member
Posts: 23789 WWW
Posted on: March 10, 2009, 10:11:50 PM

To do this open up the weather.class.php file look for and remove the below code:

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;
}
Logged

Offline sligo
Free Member
Posts: 1
Posted on: May 10, 2009, 03:48:08 PM

Just what I was looking for, thanks!
Logged

Offline lon3wolf
Free Member
Posts: 1
Posted on: May 18, 2009, 05:09:15 AM

Thanks a lot  Smiley
Logged

Offline ncleator
Free Member
Posts: 53
Posted on: August 08, 2013, 12:20:29 PM

HI there
I recently downloaded this template, is there code for 3 day forcast
Tks a mil
Logged

Offline jonahh
Free Member
Posts: 23789 WWW
Posted on: August 08, 2013, 12:41:46 PM

Yes there is, just be sure to change  number of days in admin to 3.
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.026 seconds with 20 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.