Forum Support

Shape 5
March 06, 2021, 07:26:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 1 Day Weather Forcast  (Read 1241 times)
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« 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

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
sligo
Jr. Member
**
Offline Offline

Posts: 1



« Reply #1 on: May 10, 2009, 03:48:08 PM »

Just what I was looking for, thanks!
Logged
lon3wolf
Jr. Member
**
Offline Offline

Posts: 1



« Reply #2 on: May 18, 2009, 05:09:15 AM »

Thanks a lot  Smiley
Logged
ncleator
Jr. Member
**
Offline Offline

Posts: 53



« Reply #3 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
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #4 on: August 08, 2013, 12:41:46 PM »

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

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
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.