View Full Version : world weather center block
nineball
07-16-2004, 04:43 PM
If you have installed the latest verson of the vb world weather
http://www.vbulletin.org/forum/showthread.php?t=67084&page=1&pp=15
this will create a center block similiar to what displays on forumhome
Use the attached weather.php for your module name and create a new template adv_portal_world_weather.
NOTE: you must have installed the forumhome update to this hack for this to work. This is on page 8 of the thread above.
This is a hack which will displays weather from all over the world in your usercp. It does take about 30 minutes to install.
Great work. Thought this could be done. But it doesn't display anything on my site.
nineball
07-17-2004, 10:27 AM
I forgot to mention that you need to change the field numbers in the module to match your field numbers.
I already had a custom field, so I am using 6,10. If you didn't then you would use 5,9
// special tags you need to change ( 2 -> field_start, field_end )
$w_fields = array ( '6', '10' );
Does it display on your forumhomepage?
Yes, it does. I changed the field numbers. Do I have to change it in weather.php, too?
Acido
07-18-2004, 11:38 AM
Big Thanx ! :)
Realist
07-18-2004, 01:15 PM
You should of already updated the weather.php file in the first place to get it to work.
Yes, it does. I changed the field numbers. Do I have to change it in weather.php, too?
Well, I did it afterwards and got then other errors. I stick with forumhome for now.
Ted S
07-26-2004, 04:27 PM
I have modified weather.php to change to $w_fields = array ( '10', '14' ); , installed the template and added the module but when I load my portalhome I do not see the weather or a box telling me to setup my weather options. A check of the soruce code reveals the following html:
<link rel="stylesheet" type="text/css" href="/forecast/css/main.css" />
<table width=100%>
<!-- the weather condition -->
<!-- / the weather condition -->
</table>
The weather hack works fine on forumhome for the same user account, what could be making it fail on both if statements (i have tried them seperately but there is no data being set).
Lostnode
08-04-2004, 08:38 PM
For some readson, it just shows me the weatehrgif icon, no actual weather :( and yes it does show up in my forums....
www.domain.com/index.php = portal main page
www.domain.com/forums/index.php = forums main page
Same problem
It shows in forumhome, but not the CMPS module.
any ideas?
thanx
midnite
10-30-2005, 10:47 PM
I have a this weather hack on my forum but everytime I add a zipcode to a members profile it still does not POST a weather INFO box for thier zip instead it asks for the zipcode still ... ANYONE ???
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.