TinyPortal

Development => Resources => Topic started by: globalreman on November 16, 2007, 04:56:11 PM

Title: Weather block based on IP???
Post by: globalreman on November 16, 2007, 04:56:11 PM
I am looking for a code that puts a users city specific weather in a block. I have a block with code that shows the user their IP address. If we can show a user their IP address, can we post the weather in a block based on their IP address?  Or, can we use their zip code from their profile to have a custom weather block (so they don't have to type in their zip code). Please let me know if this can be done,  Thanks -Aaron
Title: Re: Weather block based on IP???
Post by: Zetan on November 16, 2007, 05:15:16 PM
I would have a search on Google and see if there are any such scripts.
I've not seen any that do what you want.. but then, I've not really looked into weather blocks.
Title: Re: Weather block based on IP???
Post by: Crip on November 16, 2007, 05:32:27 PM
I do believe smf has a few (mods) you can use for such things as that   ?
Title: Re: Weather block based on IP???
Post by: stigmartyr on May 01, 2009, 09:17:39 AM
The one weather mod I could find @ SMF under the keyword weather, looks pretty lame.  Better if it was a block, and pulled infoz based on IP..

Easy for the mini profile to become too busy and crowded with junk.
Title: Re: Weather block based on IP???
Post by: Ianedres on May 01, 2009, 04:49:01 PM
My experience with attempting to provide weather with IPs is that you have to use a third-party geolocation database that generalizes the area based on providers. It required a subscription to use the geolocation services I had found, and wasn't a practical expense for such a block on my site.

I would think it would be better to use a custom profile field to store a member's ZIP code, and extract the weather from there. Not the perfect solution...
Title: Re: Weather block based on IP???
Post by: stigmartyr on May 01, 2009, 05:31:37 PM
The Weather BLock snippet (in another thread) - works rather well, but they're not pulling the forecast data that is already in the xml.  If it just had a link to pop open more details that would be awesome.

For a site who's members rely alot on weather it would be very nice indeed