vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-25-2004, 07:49 AM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Arrow Weather Module

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/>
Save the template!

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  
Old 05-25-2004, 12:25 PM
joeychgo joeychgo is offline
Senior Member
 
Join Date: Mar 2004
Posts: 227
Default Re: Weather Module

Thank You!!!!!!!!!!!!!
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners!

Lincoln vs Cadillac : Mopar Forum : Car Audio Talk
  #3  
Old 05-25-2004, 07:20 PM
Zedd Zedd is offline
Member
 
Join Date: May 2004
Posts: 35
Default Re: Weather Module

just added this, nice and easy
  #4  
Old 05-25-2004, 08:32 PM
Zedd Zedd is offline
Member
 
Join Date: May 2004
Posts: 35
Default Re: Weather Module

does this only work for us sites?
  #5  
Old 05-25-2004, 09:48 PM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Wink Re: Weather Module

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  
Old 05-26-2004, 04:57 PM
Zedd Zedd is offline
Member
 
Join Date: May 2004
Posts: 35
Default Re: Weather Module

ellent, thanx.
  #7  
Old 05-26-2004, 06:59 PM
Acido Acido is offline
Member
 
Join Date: Jan 2004
Posts: 60
Default Re: Weather Module

Is possible give to users the posibility of CHOOSE weather conditions on their locations?
  #8  
Old 05-30-2004, 06:45 PM
machino machino is offline
webmaster in training
 
Join Date: Mar 2004
Posts: 6
Default Re: Weather Module

using this, thanks
  #9  
Old 05-31-2004, 01:19 AM
Preech Preech is offline
Junior Member
 
Join Date: Mar 2004
Posts: 15
Default Re: Weather Module

Thank you. Very much appreciated.
  #10  
Old 06-05-2004, 04:49 PM
Skipsoutdoors Skipsoutdoors is offline
Junior Member
 
Join Date: Apr 2004
Posts: 13
Default Re: Weather Module

Thanks for the effort to make this block.

Skip
  #11  
Old 06-05-2004, 05:00 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Weather Module

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  
Old 06-09-2004, 03:52 AM
yl88 yl88 is offline
Junior Member
 
Join Date: Jun 2004
Posts: 13
Default Re: Weather Module

COOL, i just installed!!!!!

Thanks You!!!
  #13  
Old 06-09-2004, 02:23 PM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Weather Module

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  
Old 06-10-2004, 07:09 AM
Blackbeard Blackbeard is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default Re: Weather Module

Is weatherroom still working as iam getting zonecurrently unavailable, iam in scotland iam i doing something wrong
  #15  
Old 06-10-2004, 08:35 AM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Default Re: Weather Module

Works as usual...

cLord
  #16  
Old 06-10-2004, 01:56 PM
poseidon's Avatar
poseidon poseidon is offline
Member
 
Join Date: May 2004
Location: Missouri
Posts: 80
Default Re: Weather Module

thanks man
  #17  
Old 06-12-2004, 03:31 PM
TheSauceMaster TheSauceMaster is offline
Junior Member
 
Join Date: May 2004
Posts: 19
Default Re: Weather Module

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  
Old 06-16-2004, 03:35 PM
Bailx Bailx is offline
Junior Member
 
Join Date: Mar 2004
Posts: 19
Default Re: Weather Module

this is very cool i just added it to one of my sites
  #19  
Old 06-17-2004, 12:19 AM
58sniper 58sniper is offline
Member
 
Join Date: Apr 2004
Posts: 80
Default Re: Weather Module

Quote:
Originally Posted by TheSauceMaster
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?
Change the highlighted part to your preferred color code:

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  
Old 06-18-2004, 05:48 PM
Bailx Bailx is offline
Junior Member
 
Join Date: Mar 2004
Posts: 19
Default Re: Weather Module

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 12:06 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.