![]() |
Vbadvanced - Weather Channel Module
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%"> 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 |
Will this work for overseas as well? or just US members?
|
You can look at overseas forcast, but for the zipcode i'm not sure.
Give it a try and tell me how it goes? boo |
ok I installed this and Ive been wanting someone to write this up I couldnt get it to work correctly.
I have one problem now though, my quicklinks doesnt work it just reloads the page. When I shut it off the quicklinks works fine. Any suggestions? |
what do you mean by quick links?
the navbar? |
The idea is nice, and I used it, but you should tell people that it's attached to your site and that they should register for thier own on http://www.weather.com I also removed the ads.
Great idea though. Dennis PS - Since you have some problems (the script seems to be in twice or something.) Here is my template code PHP Code:
|
its fine with me if they run it off my account...
btw how did you remove adds? would you like to help in fixing some of these problems? ok updates are being made read top of post |
Quote:
Then replaced your script (the second one) with the one weather.com gave me. I edited it with the changes you made (the user zip field and so forth) and saved. |
Quote:
If I enable this and I click on that button it reloads the page. When I shut it off everything works fine again. I have no idea why that would happen. **edit** I also have people from overseas, is there a way to get this to work for them? |
ok i tryed your code and it didn't work for me it said i needed to enter zipcode?
did you get that error |
Quote:
|
Quote:
EDIT: Now I have to find a way to force it to be a smidge smaller. |
Quote:
This hack went nowhere near it. |
haha my bad i didn't add field6
let me check 1 sec edit: An error has occurred. Invalid location code provided. Please notify the webmaster. i get that now after changing field |
Quote:
Thanks! |
Quote:
|
Quote:
I have no idea what I'm doing either. :banana: |
Quote:
everythings right still get error * lol giving me support for my hack * |
Quote:
I cleaned it up some more. Try this new version. Make sure you edit all of the field5's. PHP Code:
|
ty i'll give that a shot
if this works mind if i upload it to main post? |
ahh awesome it works
care if i upload it? |
Quote:
Might want to remove the note too. And change the attached file. One more thing, works fine in either column. LOL |
ok updated
|
Quote:
|
thanks for the help man
|
Ok to get it working for overseas people go to www.weather.com or to http://uk.weather.com/ and look up your post code.
To test it go to http://uk.weather.com/ and look up Manchester, United Kingdom. Now look at the address in the bar it should say http://uk.weather.com/weather/local...92?from=popular use the UKXX0092 as the zip code this should make it work fine. :) Thanks for writing this again guys great work! :) |
nice hint there ^^
and np |
This works great wit overseas weather forecasts.
Thanks alot :) |
Quote:
|
Quote:
|
Quote:
I thing so! |
Yes, US members. :p
I thing so! |
Installed works nicely when loged in, but this is the url I get when unregistered: http://www.myforums.com/home/%1$s/register.php
It should be myforums.com/forums/register.php Anyway to fix this?? |
To show thanks I went ahead and got the style codes for more options. I didn't care for the default look and wanted something to fit in the center a little better.
Horizontal, best for center blocks Ticket Holder = EVNTH Wild Flowers = LAWNH Winter Blues = COLDH Green Paint = HOMEH Golfers Sunrise = GOLFH Grass Fields = ALERH Sunday Drive = DRIVH The Weather Channel = GENXH Outdoor Enthusiast = OTDRH In Flight = TRVLH Vertical, best for side blocks Ticket Holder = EVNTV Wild Flowers = LAWNV Winter Blues = COLDV Green Paint = HOMEV Golfers Sunrise = GOLFV Grass Fields = ALERV Sunday Drive = DRIVV The Weather Channel = GENXV Outdoor Enthusiast = OTDRV In Flight = TRVLV Change style in this line of code. Code:
<script src='http://voap.weather.com/weather/oap/$bbuserinfo[field5]?template=PLACE 5 DIGIT CODE HERE Also here is a photo of styles. |
Quote:
|
can try vbadvanced.com ;)
|
Tried, no help either. I fixed it though.
|
I did post something for you over there, and I'm pretty sure you got it fixed.
Even though this isn't really my hack. Boo is on a trip for a week or so. |
doesnt work:
An error has occurred. Invalid location code provided. Please notify the webmaster. |
Quote:
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|