PDA


View Full Version : Weather Module


Pages : 1 2 3 [4]

Mischievious
05-22-2006, 05:21 PM
Would someone please help me with the proper coding for my site? The forum is not located in the root. And my profile field number is 7.

P.S. I'm using the latest vBadvanced with vBulletin 3.5.4

hkeleher
06-29-2006, 11:13 PM
I'm using an older version of both VB and VBA but this is the code I configured for my site:

<if condition="$bbuserinfo[field7] !=''">
<a target="_blank" href="http://www.wx.com/myweather.cfm?ZIP=$bbuserinfo[field7]"><img src="http://www.wx.com/partnership/sticker.cfm?zip=$bbuserinfo[field7]&config=png&alt=hwivzone&daysonly=1" alt="Weather for $bbuserinfo[field7]" border="0"></a>
<else />
<a href="$vboptions[bburl]/profile.php?do=editprofile">Add your Zip Code</a> to show local weather conditions.

Be sure to change the field ID as appropriate. Mischievious you're using the same field so this should be an easy cut and paste for you.

Enjoy!

TYorke
07-04-2006, 06:53 PM
This works in VBA v2.x

Here's my template (Optimized for Canadian Users)


<tr>
<td class="$getbgrow" align="center"><span class="smallfont">

<if condition="!$bbuserinfo['userid']">
<span class="smallfont">Registered members can see their local weather conditions here.<br /><br /><phrase 1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span>
<else />
<if condition="$bbuserinfo[field5] !=''">
<script language=javascript>var LocationID = '$bbuserinfo[field5]';</script>
<script language=javascript src='http://www.theweathernetwork.com/weatherbutton/wxbutton.js'></script>
<else />
<a href="$vboptions[bburl]/profile.php?do=editprofile">Add City Code <span class="smallfont">(i.e. CAON0096)</span></a> to Show Weather Conditions.
</if>
</if>
</span>
</td>
</tr>


The code above fixes the double table header as well as the stretching mentioned previously.

cdoyle
07-20-2006, 12:35 AM
Does anyone know of one that has the 5 day forcast like the old version had?

I was using that weathercontent one, but it stopped updating. I've went to the WX one, but it only seems to display the current weather.

I really liked the 5 day forcast version.

myridespace
08-20-2006, 02:49 PM
awesome mod, thanks

rolando
08-23-2006, 06:56 PM
Is this legal to pull the data? Thanks, rg.

tvguy
09-04-2006, 09:12 PM
when i use above code from cLord all I get is a - Search White Pages & Yellow Pages... There is not weather enywhere and any link to it..


Thoughts anyone???

TVGUY:(

iamnofear
09-08-2006, 08:50 PM
I got
Weather for xxxx provided by weatherroom.com.
How can I display directly ?