Shape 5

Joomla Templates => City Portal - January - Club => : barnesc March 24, 2009, 05:34:44 AM



: S5 Weather module
: barnesc March 24, 2009, 05:34:44 AM
The module will just not work for me. I have put in the correct ZIP code that I obtained from Yahoo Weather site but absolutely nothing is displayed except for the module title "S5 Weather Module".

Help please?


: Re: S5 Weather module
: wietsb March 25, 2009, 04:33:52 PM
Hi

Did you publish the module?


: Re: S5 Weather module
: barnesc March 25, 2009, 06:00:18 PM
YES the module is ENABLED.


: Re: S5 Weather module
: jonahh March 26, 2009, 10:04:27 AM
Can you post a URL of this?


: Re: S5 Weather module
: barnesc March 26, 2009, 04:03:47 PM
The S5 Weather Module is published to the second tab on the Tab Show at right hand side.

Interesting the title is displayed but no introduction text (which there is) and no Yahoo Weather.

I have followed the tutorial exactly.

http://www.cultivatensw.org.au



: Re: S5 Weather module
: jonahh March 30, 2009, 10:46:50 AM
That is very odd, would you be able to PM me Joomla login access?  I'm not sure really whats going on without taking a look at the backend.

Thanks,


: Re: S5 Weather module
: barnesc March 31, 2009, 01:30:33 AM
Have sent login via PM


: Re: S5 Weather module
: jonahh April 01, 2009, 12:17:37 PM
Please see my PM


: Re: S5 Weather module
: jonahh April 02, 2009, 11:26:19 PM
Hello,

After looking at the files and seeing the output I'm not really sure whats going on and why it isn't working.  The only thing I can suggest is try upgrading to the newest version of PHP on your server.


: Re: S5 Weather module
: gardjones October 15, 2009, 09:49:47 AM
I have the same issue. It works on one computer, but when everything is moved over to a different one the weather module is empty. Go figure.  ???


: Re: S5 Weather module
: gardjones October 19, 2009, 09:20:40 PM
Does anyone have an answer to this question? It is very frustrating to see it work on one development computer, but when I take it home to a different computer with the same operating system; the same versions of Apache, MySQL, and PHP it just won't do anything other than show "Weather" in the tab and a blank tab content. I do not have this on my production site yet, and will NOT move it into production until it works consistently.


: Re: S5 Weather module
: jonahh October 20, 2009, 12:21:47 AM
I am not sure why this would be happening without looking at it first hand.  It is something with PHP though as this is what generates the module.


: Re: S5 Weather module
: cokoli November 20, 2009, 08:12:46 PM
Dear Jonahh, I followed the instructions on how to set up the weather module and I still can't make it display anything else but this pre-written content of the weather.php ...?

see, what i've done:
1) i went to yahoo and located my city (http://weather.yahoo.com/thailand/chon-buri/pattaya-1226081/?unit=c)
2) then i edited the details on .../modules/mod_s5_weather/weather.class.php
     as follows:
 
     $pos = strpos($data, 'yweather:pattaya-1226081');
   $attr = explode('"', substr($data, $pos, strpos($data, '/>', $pos)-$pos));
   $ret[0]['pattaya-1226081'] = $attr[1].', '.$attr[3].', '.$attr[5];
   $ret[0]['when'] = 'Now';
3) then i copied the city code: 'pattaya-1226081' in the admin area of the module

... and then: ... no changes on the page occured

4) ... i found one more 'location' instance on:/modules/mod_s5_weather/mod_s5_weather.php
         so i tried to edit the 'location' in this code as well:
 (   
   echo "<strong>".$ret[0]['pattaya-1226081']."</strong>

";
   foreach($ret as $day)

... and ... still nothing happened on the frontPage ...

can u please tell me if u have spotted something i'm doing wrong, or what am i missing here?

ps ... i very wanted to use this module also on "elegance" (the city portal and elegance are sitting on the same server, just that the city is in a separate folder and on a separate database, as a subdomain ... in the "elegance" i'm facing the same problem (followed same instructions) as with the city portal ...? i don't think the problem can be caused by a "duplicate" use of the module? ... i tried to remove one of them, but it didn't help, so i uploaded and installed it back again ...
the link to to the city: http://www.city.pattaya-prestigeclub.com/
link to the main "elegance" site: http://pattaya-prestigeclub.com/)

thank you for any idea in advance,
iva