![]() |
|
|
Mod Options |
Weather Channel widget that uses members zip code Details »»
|
|||||||||||||||
|
Weather Channel widget that uses members zip code
Developer Last Online: Feb 2013
This adds the Weather Channel widget to your CMS, pulling the weather from the user's zip code.
- Create a new style template titled "vbcms_widget_weather". - Create a new profile field named "zip code". Take note of the profile field number. - Insert the following into the new template, changing $bbuserinfo[fieldXX] to the correct field number ($bbuserinfo[field8] in my case):
- Create a new widget with type "Static HTML". - Title it "Weather" or whatever else you want. - Save it. - Configure the widget to use the "vbcms_widget_weather" template. - Add the widget to your CMS where ever you like. You can customize the Weather Channel widget including F/C, background image, etc: http://www.weather.com/services/oap/...r-widgets.html EDIT: Some users are having a difficult time following my instructions. It makes sense to me, but I guess I'm the only one. Here's Octavius' version of the instructions:
Originally Posted by Octavius.
Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
The following members like this post: WendM
|
|||||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| vB Weather: Give your members current weather and forecasts! | JJR512 | vBulletin 2.x Full Releases | 143 | 15 Aug 2002 20:12 |
| Comments |
|
#2
|
|||
|
|||
|
is it possible to use another country?
No members have liked this post.
|
|
#3
|
|||
|
|||
|
Sure is.
For instance, here's Munich: http://voap.weather.com/weather/oap/...iweatherwidget Instead of a zip code, you need to go to www.weather.com and search for your city/country. It will return a URL like: http://www.weather.com/weather/today/Munich+Germany+GMXX0087?x=0&y=0 GMXX0087 is the code you need to put in your user profile field which this widget is referencing. Probably not the easiest way to do this, but it works. If you have a specific country in mind, I can see what I can do. No members have liked this post.
|
|
#4
|
|||
|
|||
|
thanks for the tip
No members have liked this post.
|
|
#5
|
||||
|
||||
|
Thanks! I've been looking for this!
No members have liked this post.
|
|
#6
|
|||
|
|||
|
One star, but nobody has posted any negative comments for me to follow up on. Sweet.
No members have liked this post.
|
|
#7
|
|||
|
|||
|
It might also help to give specific details on setting it up for those that are less knowledgeable about the new vB... To the average user, it's even confusing, and I've been using vB since 2008...
![]() No members have liked this post.
|
|
#8
|
|||
|
|||
|
Hi Ben! This looks like a nice addition. Unfortunately, it's not working for me yet. I did everything per instructions, with the possible exception of this part:
- Configure the widget to use the "vbcms_widget_weather" template. I don't know how/what you mean by the above, and this may be why it's not working for me yet. Thanks! Victoria No members have liked this post.
|
|
#9
|
|||
|
|||
|
I got it installed, voted 5 stars!!
No members have liked this post.
|
|
#10
|
|||
|
|||
|
tell me whats the point in creating a profile field for zip code when it doesn't even work? weather.com will give the html code to put in your weather configuration after you enter "your own" city. which will appear to all members in my site, if they wanna know their weather they have to enter their zip code in that "go" box. so whats the point for the profile field tell me
No members have liked this post.
|
|
#11
|
|||
|
|||
|
Originally Posted by mimi123
No idea what you're talking about.
This passes your zip code to the url, so users with their zip code entered in the profile field will just see their weather without having to type in their zip code each time. Try it, you'll see what I mean. No members have liked this post.
|
|
#12
|
||||
|
||||
|
*subs*
No members have liked this post.
|
|
#13
|
||||||||
|
||||||||
|
FWIW, I had to change this line:
to this:
to fix the link in the widget when there is no zip code showing. (VB4.0.7) Thanks! No members have liked this post.
|
||||||||
|
#14
|
||||
|
||||
|
Works great! Dude gave bad directions though.
No members have liked this post.
|
|
#15
|
||||
|
||||
|
Found it a little hard to understand also.
Would you please be so kind as to maybe clear up the details?
__________________
If you're thinking of closing your site, would still like your members to have a home, but still want to keep ownership of your software for possible later use, please contact me. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 01:31.







