PDA

View Full Version : [Module] Weather Channel Module


Pages : 1 [2]

kevnj
01-20-2007, 12:34 PM
works perfectly with a fresh install of 3.6.4

directions are perfect

thank you!

theczech
01-21-2007, 10:03 AM
There's a very similar weather module in which you can choose from different sizes: http://www.vbadvanced.com/forum/showthread.php?t=19786

It is very much the same - you still have to modify the profile field for ZIP code. But, in this module if the user doesn't have one or if the user isn't logged in/registered, it tells them that they could be seeing their local weather and gives them a link to their control panel to enter their ZIP.

You can see it installed here: www.TeamMR.com (bottom of the left column)

Our Sponsors
 

John_770
02-15-2007, 02:20 AM
installed on 3.6.4 and 2.2.1 - working great!

Thanks

mikelbeck
02-15-2007, 09:18 PM
Installed this. Very nice, thanks!

Our Sponsors
 

joe_s2k
02-16-2007, 09:47 PM
I installed this today and my forum members liked it very much. Thanks.

dholt
02-28-2007, 08:40 AM
worked like a charm, many thanks

Ohiosweetheart
03-19-2007, 01:22 PM
The instructions in the first post were sooooooooooooooooooooo confusing :( :( :(

The code that I got when I registered for the acct at weather.com is totally different from what the first post says it should look like. This is what I got -

<div id="wx_module_5347">
<a href="<A href="http://www.weather.com/weather/local/44512">Youngstown">http://www.weather.com/weather/local/44512">Youngstown Weather Forecast, OH (44512)</a>
</div>
<script type="text/javascript">
/* Locations can be edited manually by updating 'wx_locID' below. Please also update */
/* the location name and link in the above div (wx_module) to reflect any changes made. */
var wx_locID = '44512';
/* If you are editing locations manually and are adding multiple modules to one page, each */
/* module must have a unique div id. Please append a unique # to the div above, as well */
/* as the one referenced just below. If you use the builder to create individual modules */
/* you will not need to edit these parameters. */
var wx_targetDiv = 'wx_module_5347';
/* Please do not change the configuration value [wx_config] manually - your module */
/* will no longer function if you do. If at any time you wish to modify this */
/* configuration please use the graphical configuration tool found at */
/* https://registration.weather.com/ursa/wow/step2 */
var wx_config='SZ=160x600*WX=FHW*LNK=SSNL*UNT=F*BGI=spring*MAP=null|null*DN=www.agel esslove.com*TIER=0*PID=1034872651*MD5=678841164b00aede8e62ab04b1b9a515';
document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
</script>

The Bish
04-01-2007, 10:47 AM
Perfect! Thank you!

angkor408
05-22-2007, 08:05 PM
is there a way to change the width?

angkor408
05-23-2007, 12:08 PM
nevermind , i got it to work :)

sinistergaming
05-23-2007, 02:48 PM
hey thats pretty cool and was easy to install

towermatt
07-11-2007, 10:40 AM
Great hack, worked perfect.

I also really appreciated the international instructions.

sqzdog
11-10-2007, 01:27 PM
My first time adding a module since installing vbulletin/vbadvanced. Works great. Thanks for all the support!

robgeo
07-05-2008, 09:14 PM
Thanks, I love this mod!!!

e7saas
07-31-2008, 03:49 AM
Thanks

jcerious
08-06-2008, 10:59 PM
I used to use the weather channel's thing but it loaded very slowly quite frequently and it would hold up the rest of the page from loading. I looked around for something else and found WEATHERFORYOU.COM - which has loaded perfectly almost every time for 6 months now! I'd highly recommend it if weather.com doesn't work for you. Also, they had a smaller size which was more appropriate for my site. The weather channel's version kind of wanted to take over the whole site by only offering what I thought were fairly large images that we had to use.

e7saas
09-05-2008, 09:30 PM
Thanks for the second time after the experiment

dismas
11-14-2008, 11:00 PM
Thanks! Works a charm!! :)

A71AN
12-01-2008, 06:32 AM
How to add a simple weather channel script to your website.

Set one, go to https://registration.weather.com/registration/wxmagnet/step2

Fill out the info, select your version and hit the next button.

It will give you some code that looks like this

<script src='http://voap.weather.com/weather/oap/YOURZIPCODE?template=DRIVV&par=null&unit=0&key=3dc6c226f523c9e82075f7b42caca1b1'></script>

This is important, you are going to need it next.

Step One: Go to your vBa CMPS in you ACP

Step Two: Click Add Module > Select Template Module

Module Title: Weather
Template to Include: weather

Template Content: << ENTER THE FOLLOWING>>

<tr>
<td class="$bgclass">
<span class="smallfont">

<if condition="!$bbuserinfo['userid']">
<span class="smallfont">Registered members can see their local weather forcast here.<br /><br /><phrase

1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span>
<else />
<if condition="$bbuserinfo[field6] !=''">

Place your html snippet from above here. You will need to replace YOUR ZIP CODE WITH $bbuserinfo[field6]


<else />Add your <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Zip Code</A> to show weather forcast.
</if>
</if>
</span>
</td>
</tr>

Pay attention to the above highlighted in red. You need to insert your html snippet from The Weather channel in that spot replacing your zip code with $bbuserinfo[field6]

Now where it says field6 you will need to create a new profile field. I am going to assume you know how to do this. Do that, and if the field number is 6 or 22 you'd enter it like so.

EXAMPLE: <script src='http://voap.weather.com/weather/oap/$bbuserinfo[field6]?template=DRIVV&par=null&unit=0&key=3dc6c226f523c9e82075f7b42caca1b1'></script>

Hit save and you're now done.


Iam very sorry my English is not very good to understand how to do this although it is very important for Hams to know the weather condition at all times, I will approciate it if you could help me doing it on my site please, thank you and wishing you all of the best from Qatar

A71AN
12-01-2008, 07:06 AM
How to add a simple weather channel script to your website.

Set one, go to https://registration.weather.com/registration/wxmagnet/step2

Fill out the info, select your version and hit the next button.

It will give you some code that looks like this

<script src='http://voap.weather.com/weather/oap/YOURZIPCODE?template=DRIVV&par=null&unit=0&key=3dc6c226f523c9e82075f7b42caca1b1'></script>

This is important, you are going to need it next.

Step One: Go to your vBa CMPS in you ACP

Step Two: Click Add Module > Select Template Module

Module Title: Weather
Template to Include: weather

Template Content: << ENTER THE FOLLOWING>>

<tr>
<td class="$bgclass">
<span class="smallfont">

<if condition="!$bbuserinfo['userid']">
<span class="smallfont">Registered members can see their local weather forcast here.<br /><br /><phrase

1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span>
<else />
<if condition="$bbuserinfo[field6] !=''">

Place your html snippet from above here. You will need to replace YOUR ZIP CODE WITH $bbuserinfo[field6]


<else />Add your <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Zip Code</A> to show weather forcast.
</if>
</if>
</span>
</td>
</tr>

Pay attention to the above highlighted in red. You need to insert your html snippet from The Weather channel in that spot replacing your zip code with $bbuserinfo[field6]

Now where it says field6 you will need to create a new profile field. I am going to assume you know how to do this. Do that, and if the field number is 6 or 22 you'd enter it like so.

EXAMPLE: <script src='http://voap.weather.com/weather/oap/$bbuserinfo[field6]?template=DRIVV&par=null&unit=0&key=3dc6c226f523c9e82075f7b42caca1b1'></script>

Hit save and you're now done.


When ever I do this it keep telling me something in line 5 is missing and the mdule will not work unless this is sorted out, thank you my friend

wmlvb
12-13-2008, 03:06 PM
how do you set default zip for those that do not have zip or are guest?

MadClikr
02-10-2009, 01:05 PM
This is terrific, thank you! :-)

RedHacker
02-26-2009, 07:22 AM
Can say driver to create field6...? :(

foroalfaromeo
10-20-2009, 01:30 PM
Hi

I didn all the steps mentioned, but I couldn' get ir done

This is the code I have

<script src='http://voap.weather.com/weather/oap/ARDF0127?template=GENXV&par=1144641125&unit=1&key=2b7cb115fa795442ca22e2cf5319fb3c'></script>

I want everyone to use that code. I don t want the "field6" thing

Can anyone help me out?

Thanks

Ski-Whiz
12-27-2009, 11:01 AM
All you have to do is go to this link https://registration.weather.com/registration/wxmagnet/step2 then fill everything out.

It wil supply you with the code to put in the module template. Thats it... Nothing more.

engager
01-22-2010, 06:39 AM
for those in the UK, you get the weather widget from here:

http://www.metoffice.gov.uk/public/pws/components/

itzboosted01
02-24-2010, 10:49 PM
Ok i'm sure this will help everyone. How do you change the width from the 2 boxes you are supposively able to choose from? Right now its showing the really wide weather image, i want the narrow tall one. Please post if you figured this out. Thanks!

zombietom
03-01-2010, 07:43 AM
Installed..works great

JWL
04-15-2010, 12:56 PM
Doesnt add any field in Profile for ZIP in vBa 4 / VB4.02