-
- enregistré depuis:
- novembre 2006
- Status:
- hors ligne
- dernière visite:
- 07.11.06
- Messages:
- 3
Hi all,
thank you for great module.
Other than 1 location showing at the block how to hack to show few location on the block.
if batter can be linked to forecast as well..
need help.
thank you! -
- rang:
-
Site Admin
- enregistré depuis:
- décembre 2003
- Status:
- hors ligne
- dernière visite:
- 21.07.08
- Messages:
- 261
Hello,
In fact the solution is very simple: create several weather blocks but give a diffrent city code when creating each one.
Of course there is a limit to the number of cities that you can show on the same page because your server will have to fech data from weather.com for each one, but as the results are cached, I have been able to display 8 cities on the same page when I did some tests.
In my opinion , using left and right columns is OK for 2 or 3 cities, but if you want to show more places, you should use the block as a center block, in the same way I did it for the RSS block here: http://www.vedr...e-Start.html
The timing problem when a page must fetch a lot of data from external sources is very noticeable on this page because my server must query 8 RSS servers to build the page, but if another visitor (or you) ask again for the same page a few minutes later, the page is immediatly displayed because the results are cached. You will see exactly the same thing if you put 8 weather blocks on the same page. -
Invité
- rang:
- 1
- enregistré depuis:
- décembre 2003
- Status:
- hors ligne
- dernière visite:
- 06.03.05
- Messages:
- 0
thank you for your reply.
I know using block can do the job but when using block I'll waste so many spacing for up and down space.
I'm not worry to much about the admin config because i must be easy just edit the php file because we don't need after added the static location.
Any idea other than adding multi block?
Thank you in advance. -
- enregistré depuis:
- novembre 2006
- Status:
- hors ligne
- dernière visite:
- 07.11.06
- Messages:
- 3
thank you for your reply.
I know using block can do the job but when using block I'll waste so many spacing for up and down space.
I'm not worry to much about the admin config because i must be easy just edit the php file because we don't need after added the static location.
Any idea other than adding multi block?
Thank you in advance.








