![]() |
|
|
Mod Options |
Display Member Weather Details »»
|
|||||||||||
|
Display Member Weather
Developer Last Online: Mar 2013
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
No members have liked this post.
|
|||||||||||
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
|
|||
|
|||
|
Originally Posted by apiasto
That got it working. Thank you.
No members have liked this post.
|
|
#18
|
|||
|
|||
|
Glad you got it working BigDog and thanks Apiasto!
__________________
http://www.maineforums.net No members have liked this post.
|
|
#19
|
||||
|
||||
|
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. No members have liked this post.
|
|
#20
|
|||
|
|||
|
Another question. Does this only work for the U.S. and Canadian members?
No members have liked this post.
|
|
#21
|
||||
|
||||
|
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 --> No members have liked this post.
|
|
#22
|
|||
|
|||
|
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 No members have liked this post.
|
|
#23
|
||||
|
||||
|
Originally Posted by apiasto
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. No members have liked this post.
|
|
#24
|
|||
|
|||
|
Assuming a new zipcode field gets added, how does that field become populated with data?
No members have liked this post.
|
|
#25
|
|||
|
|||
|
When the user enters in that information in their profile.
__________________
http://www.maineforums.net No members have liked this post.
|
|
#26
|
|||
|
|||
|
Originally Posted by Xhaiden
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.
No members have liked this post.
|
|
#27
|
|||
|
|||
|
No problem, just let me know if they can't get it working!
__________________
http://www.maineforums.net No members have liked this post.
|
|
#28
|
||||
|
||||
|
ok i got the code..but now wat.....
No members have liked this post.
|
|
#29
|
|||
|
|||
|
You need to put it in wherever you want it to be displayed.
__________________
http://www.maineforums.net 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 13:50.











