Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Display Member Weather Details »»
Display Member Weather
Mod Version: 1.00, by AWMGolfer (Contributor) AWMGolfer is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (3 votes - 5.00 average) Installs: 9
Released: 25 Sep 2009 Last Update: Never Downloads: 0
Supported Template Edits Re-usable Code Translations External Content  

This is the first time I have done anything like this but it will allow you to display your members local weather using weather.com.

First you need to create a new profile field that is a single-line text box called Zip Code. It can remain a private or public field, whatever you would like. Make note of the field number.

Then, go to http://www.weather.com/services/oap/...r-widgets.html and choose from the two variations and put in just anything for a location, then select get code. You will be given something like this:

<script type="text/javascript" src="http://voap.weather.com/weather/oap/04758?template=GENXV&par=3000000007&unit=0&key=twciweatherwidget"></script></div>

You need to replace the zip code with this, $bbuserinfo[fieldXX]

Make sure to change the XX to the field number.

Then go into your templates and place the following code anywhere you want the weather to be displayed.

<if condition="$bbuserinfo['fieldXX']">
<script type="text/javascript" src="http://voap.weather.com/weather/oap/$bbuserinfo[fieldXX]?template=GENXV&par=3000000007&unit=0&key=twciweatherwidget"></script></div></if>

Again, don't forget to change both of the red parts to match the field number.

Hope people find this of use, be kind as this is the first time I've done this

Here is a screenshot!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
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

  #16  
Old 27 Sep 2009, 14:54
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Originally Posted by apiasto View Post
it looks ok ,i guess now you have to make entry in the field by going to your cp panel and putting your zip code.it should be available where you saved it in profile field catagory like edit your details

mine is working here
That got it working. Thank you.
Reply With Quote
  #17  
Old 27 Sep 2009, 14:58
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
no problem
Reply With Quote
  #18  
Old 27 Sep 2009, 15:15
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
Glad you got it working BigDog and thanks Apiasto!
__________________
http://www.maineforums.net
Reply With Quote
  #19  
Old 28 Sep 2009, 07:02
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Real name: Edward
how about adding this to our profile page....is this possible?
__________________

My vBulletin Mod Hacks
Along With Some Helpful vB.Org Genious Coders & Designers, I Release This Modification...Please Don't Hesitate To PM Me For Support As Long As I Can.
Reply With Quote
  #20  
Old 28 Sep 2009, 09:58
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Another question. Does this only work for the U.S. and Canadian members?
Reply With Quote
  #21  
Old 28 Sep 2009, 11:06
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Originally Posted by princeedward View Post
how about adding this to our profile page....is this possible?
yes it is open memberinfo template scroll down to

<div id="sidebar_container">
<!-- sidebar -->
$template_hook[profile_right_first]
$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
$template_hook[profile_right_last]
--------------------
<!-- / sidebar -->
add the code before <!--/ sidebar -->
Reply With Quote
  #22  
Old 28 Sep 2009, 13:45
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
BigDog, http://www.vbulletin.org/forum/showp...07&postcount=9

That will work for any location in the world! I am trying to find an easier way to do it though!
__________________
http://www.maineforums.net
Reply With Quote
  #23  
Old 28 Sep 2009, 15:32
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Real name: Edward
Originally Posted by apiasto View Post
yes it is open memberinfo template scroll down to

<div id="sidebar_container">
<!-- sidebar -->
$template_hook[profile_right_first]
$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
$template_hook[profile_right_last]
--------------------
<!-- / sidebar -->
add the code before <!--/ sidebar -->
thanks apiasto...great
__________________

My vBulletin Mod Hacks
Along With Some Helpful vB.Org Genious Coders & Designers, I Release This Modification...Please Don't Hesitate To PM Me For Support As Long As I Can.
Reply With Quote
  #24  
Old 02 Oct 2009, 15:55
segwayon segwayon is offline
 
Join Date: Mar 2008
Assuming a new zipcode field gets added, how does that field become populated with data?
Reply With Quote
  #25  
Old 02 Oct 2009, 17:30
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
When the user enters in that information in their profile.
__________________
http://www.maineforums.net
Reply With Quote
  #26  
Old 03 Oct 2009, 22:26
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Originally Posted by Xhaiden View Post
BigDog, http://www.vbulletin.org/forum/showp...07&postcount=9

That will work for any location in the world! I am trying to find an easier way to do it though!
Thank you! I have a member from England that can't get it to work. Most likely her end. I'll try and fix it for her.
Reply With Quote
  #27  
Old 05 Oct 2009, 16:17
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
No problem, just let me know if they can't get it working!
__________________
http://www.maineforums.net
Reply With Quote
  #28  
Old 10 Oct 2009, 21:04
s-p0k's Avatar
s-p0k s-p0k is offline
 
Join Date: Jun 2009
ok i got the code..but now wat.....
Reply With Quote
  #29  
Old 11 Oct 2009, 16:59
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
You need to put it in wherever you want it to be displayed.
__________________
http://www.maineforums.net
Reply With Quote
  #30  
Old 27 Oct 2009, 01:34
Gav-n-Tn Gav-n-Tn is offline
 
Join Date: Sep 2009
I added it into the member's profile. You can also change the style of it by changing the code slightly. Cool and easy.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 13:50.

Layout Options | Width: Wide Color: