Shape 5

Joomla Free Extensions => Weather Module - Free => : sephius June 19, 2009, 03:34:45 AM



: just Now and tomorrow
: sephius June 19, 2009, 03:34:45 AM
Hi, can someone tell me how i can remove the today's box, just leave the "Now" and "tomorrow" boxes?
Thanks  :)


: Re: just Now and tomorrow
: nutt318 June 25, 2009, 09:41:25 AM
I would also like to know how to do this.


: Re: just Now and tomorrow
: jonahh June 25, 2009, 11:56:37 PM
You can narrow it down to one day but to skip the current day would require some custom coding:

Only 1 day:

http://www.shape5.com/component/option,com_smf/Itemid,75/topic,4550.0/


: Re: just Now and tomorrow
: adydeejay July 12, 2009, 05:35:00 AM
You can narrow it down to one day but to skip the current day would require some custom coding:

it is possible to be done some custom changes, to skip the current day and leave just "now" and "next day"?


: Re: just Now and tomorrow
: adydeejay July 17, 2009, 10:28:10 AM
i have found a easy way to fix this.  :)

editing the weather.class.php and change the field $ret[] = $day; to $ret[1] = $day;

the result it will be like this (on this image "now" is "friday"):
(http://img263.imageshack.us/img263/6089/20090717192257.jpg)

anyway, i still have a small problem because "Visibility" is allways  0 km for me...  :D


: Re: just Now and tomorrow
: nevreme July 17, 2009, 01:30:03 PM
Thanks ady. This will be useful to me too.

Btw, the visibility stays at 0 on my site too ???.


: Re: just Now and tomorrow
: vaibhav431 June 07, 2010, 04:46:01 AM
Thanx adydeejay

It works fpr me also,

but same prob. with visibility.

do u hav any soln.?
pls...


: Re: just Now and tomorrow
: daftdog June 16, 2010, 02:19:53 AM
My visibility was always zero, so i just commented out the code for that on mod_s5_weather.php .

Line 66:::   echo 'Visibility: '.$day['visibility'].'
'; to //echo 'Visibility: '.$day['visibility'].'
';

Perfect if you don't need the visibility forecast to show anyway..