Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 12, 2022, 09:31:40 AM

Login with username, password and session length
Members
  • Total Members: 3842
  • Latest: Kokoro
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 50
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 41
Total: 41

Author Topic: Weather Block  (Read 13848 times)

0 Members and 1 Guest are viewing this topic.

MetalHellsangel

  • Guest
Weather Block
« on: March 16, 2006, 09:43:06 PM »
Users enter their zip code and get a short weather report

Download & Support Here
« Last Edit: June 05, 2006, 01:46:16 PM by MetalHellsangel »

Mitch

  • Guest
Re: Weather Block
« Reply #1 on: March 16, 2006, 09:53:24 PM »
Too wide for my liking but none the less a good script.

MetalHellsangel

  • Guest
Re: Weather Block
« Reply #2 on: March 16, 2006, 09:54:56 PM »
You can add some php to resize it, feel free to edit it to suit your needs.

TwinsX2Dad

  • Guest
Re: Weather Block
« Reply #3 on: March 16, 2006, 09:55:43 PM »
Or just resize the script:

Code: [Select]
Displays a weather block where the user can input a zipcode and see the weather in that area

echo "<form id=\"weather\" name=\"weather\" method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">
  <label>Zip Code
  <input name=\"zip\" type=\"text\" size=\"5\"/>
  </label>
  <input type=\"submit\" name=\"Submit\" value=\"Submit\" />
  <label></label>
</form>";

$zipcode = $_POST['zip'];

echo  "<a href=\"http://www.weatherusa.net/forecasts/?pands=$zipcode\"><img src=\"http://www.weatherusa.net/forecasts/?forecast=hourly&alt=hwicc&config=png&pands=$zipcode&hwvdisplay=\" width=\"150\" height=\"100\" border=\"0\" title=\"weatherUSA.net\"></a>";

MetalHellsangel

  • Guest
Re: Weather Block
« Reply #4 on: March 16, 2006, 09:57:06 PM »
True you can change the height and width

TwinsX2Dad

  • Guest
Re: Weather Block
« Reply #5 on: March 16, 2006, 10:13:12 PM »
I did notice their graphic is too wide. You could resize via html or you could edit & rehost the graphic or, a simpler block would be to create a javascript/html block and insert the following:

Code: [Select]
<form target="weather" action=http://www.wunderground.com/cgi-bin/findweather/getForecast ><font color=#000000><p align="center"><font size="1">Find your Weather<br>Enter City, State, Zip, or Country</font></font><br><font color=#000000><input type=text name=query size=10><input type=submit value="Forecast"></font></form>
« Last Edit: March 16, 2006, 10:16:10 PM by TwinsX2Dad »

MetalHellsangel

  • Guest
Re: Weather Block
« Reply #6 on: March 16, 2006, 10:15:13 PM »
well here's where the graphic is if your interested in putting it on your site, but I'm not sure how it would work because it's a live graphic

http://www.weatherusa.net/wxonyoursite/

TwinsX2Dad

  • Guest
Re: Weather Block
« Reply #7 on: March 16, 2006, 10:16:47 PM »
Right again - I just went looking at that.

MetalHellsangel

  • Guest
Re: Weather Block
« Reply #8 on: March 16, 2006, 10:19:17 PM »
I have 200 wide side blocks, I suppost that why it looks differently on your site.

TwinsX2Dad

  • Guest
Re: Weather Block
« Reply #9 on: March 16, 2006, 10:30:10 PM »
Unfortunately, I have too many people still running around with their resolutions set at 640X480 - nice wide columns are out of the question.

640X480 computer users whine a lot.   ;D