![]() |
|
#1
|
||||
|
||||
|
This will add a weather module to your CMPS...
(If your visitor isn't a member it tells them they must register to show the weather. If they are a member but haven't filled in the Zip Code field it tells the user they must edit their profile to add a zip code. If they have a zip code in their profile it will show a 5 day forecast of the weather in their area.) 1) In your Admincp - User Profile Fields - Select "Add New User Profile Field" - Choose single line text box - Create new field titled "Zip Code". 2) Still in your Admincp - User Profile Fields - Open "User Profile Field Manager" and look for the Zip Code field number - In this case it was field 5. 3) Stay in your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_weather". Insert 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 conditions here.<br /><br /><phrase 1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span> <else /> <if condition="$bbuserinfo[field5] !=''"> <a href="http://www.weatherroom.com/forecast/$bbuserinfo[field5].html"><img src="http://www.weatherroom.com/weather?forecast=zone&hwvtc=black&hwvbg=E1E4F2&pands=$bbuserinfo[field5]&config=png&alt=hwivzone&daysonly=1" alt="Weather for $bbuserinfo[field5] provided by weatherroom.com." border="0"></a> <else /> <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Add Zip Code</A> to show weather conditions. </if> </if> </span> </td> </tr> </table> <br/> IMPORTANT! Change all instances of $bbuserinfo[field5] to whatever your field number is. If it is number 10 change it to $bbuserinfo[field10]. If you forget this step it will not work! 4) Still in your Admincp - vBa CMPS - Add Module - Module Title - Weather - Module Identifier - Leave blank - OR Template to Include - weather - Activate and select the column you want it in. - Save and you are done. Based upon IndyWebDesign's Weather Module. Have fun, cLord
Last edited by cLord; 10-15-2009 at 05:46 AM. |
|
#2
|
|||
|
|||
|
Thank You!!!!!!!!!!!!!
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#3
|
|||
|
|||
|
just added this, nice and easy
|
|
#4
|
|||
|
|||
|
does this only work for us sites?
|
|
#5
|
||||
|
||||
|
No, this works for non US sites also.
1) Go here: http://www.weatherroom.com/cgi-bin/w...ss&pass=tafINT 2) Select your country and city 3) Click "display Forecast/Conditions" 4) Top right you will see this "ICAO Used:" followed by a code - Place this code in your zip code field and you will see your local international forecast. cLord
|
|
#6
|
|||
|
|||
|
ellent, thanx.
|
|
#7
|
|||
|
|||
|
Is possible give to users the posibility of CHOOSE weather conditions on their locations?
|
|
#8
|
|||
|
|||
|
using this, thanks
|
|
#9
|
|||
|
|||
|
Thank you. Very much appreciated.
|
|
#10
|
|||
|
|||
|
Thanks for the effort to make this block.
Skip |
|
#11
|
||||
|
||||
|
I installed that. Then deleted it. It seemed to be working but would only display Seattle WA but when clicked when to the correct zipcode.
|
|
#12
|
|||
|
|||
|
COOL, i just installed!!!!!
Thanks You!!! |
|
#13
|
|||
|
|||
|
Gosh this is awesome and I installed it but it slowed my page load time waaay down because it took a bit to pull the graphic from weatherroom.com
WAHHHH!!!
|
|
#14
|
|||
|
|||
|
Is weatherroom still working as iam getting zonecurrently unavailable, iam in scotland iam i doing something wrong
|
|
#15
|
||||
|
||||
|
Works as usual...
cLord
|
|
#16
|
||||
|
||||
|
thanks man
|
|
#17
|
|||
|
|||
|
Very nice and easy to add , I was wondering is there a way to change the background color without redoing everything , so it would match your style colors?
|
|
#18
|
|||
|
|||
|
this is very cool i just added it to one of my sites
|
|
#19
|
|||
|
|||
|
Quote:
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 conditions here.<br /><br /><phrase 1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span> <else /> <if condition="$bbuserinfo[field5] !=''"> <a href="http://www.weatherroom.com/forecast/$bbuserinfo[field5].html"><img src="http://www.weatherroom.com/weather?forecast=zone&hwvtc=black&hwvbg=E1E4F2&pands=$bbuserinfo[field5]&config=png&alt=hwivzone&daysonly=1" alt="Weather for $bbuserinfo[field5] provided by weatherroom.com." border="0"></a> <else /> <A HREF="$vboptions[bburl]/profile.php?do=editprofile">Add Zip Code</A> to show weather conditions. </if> </if> </span> </td> </tr> </table> <br/> |
|
#20
|
|||
|
|||
|
i have a question about the code above....
if say we don't use a solid color, and instead use images, is there a way to make the background transparent, so the background would show thru? i was also thinking about hosting the different pictures locally so they would load faster, as well as being able to perhaps change them to slightly higher quality images....and the text is a little small on my 1600x1200 resolution for the temps. small gripes really.... a really cool addition to the website :thumbsup: |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Weather Block Module | joeychgo | Troubleshooting / "How do I..." Questions | 6 | 01-13-2006 04:31 PM |
| [Suggestion] Option needed when adding module to Homepage | bluesteel | Feedback & Suggestions | 3 | 05-20-2004 08:34 PM |
| Weather Add-On | Chuckie | Add-On Modules & Modifications | 0 | 05-17-2004 05:24 PM |