Vbadvanced - Weather Channel Module
This modification is in the archives.
thanks to dsboyce8624 to fixing this code
This code is based around cLord's weather module All i did was some simple changes to his code and added the weather channels code What Does It do? This gives users a field to add the ZIP CODE once added they will see there local weather on your main Vba 1. In your Admincp - User Profile Fields - Goto "Add New User Profile Field" - Choose single line text box - Create new field titled "Zip Code". 2. Admincp - User Profile Fields - Click "User Profile Field Manager" and look for the Zip Code field number - In my forums its 6. 3. Admin CP - Styles & Templates - Style Manager - Add a new template called "adv_portal_weather". Now put this code into the template: Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr> <td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Weather Conditions</b></span></td> </tr> <tr> <td class="$getbgrow"><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[field5] !=''"> <script src='http://voap.weather.com/weather/oap/$bbuserinfo[field5]?template=GENXV&par=null&unit=0&key=05afc55b05db4d084c1497353310d74b' alt="Weather for $bbuserinfo[field66] provided by that-sucks.net." border="0"></a></script> <else />Add your <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Zip Code</A> to show weather forcast. </if> </if> </span> </td> </tr> </table> <br/> Now Last Step 4. Admincp - vBa CMPS - Add Module Module Title - Weather Module Identifier - keep blank OR Template to Include - weather Activate - yes Select the column *Right or Left* DONE Download This modification is archived and cannot be downloaded. Screenshots
|
Similar Mods
Weather Block for vBadvanced | vBulletin 3.0 Full Releases |