vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Local weather widget? (https://vborg.vbsupport.ru/showthread.php?t=266935)

FlashJim 07-16-2011 12:13 PM

Local weather widget?
 
Is there a widget available that detects where the user is and displays their local weather? Maybe have it display a default location if the user doesn't have a location in their profile?

I've found the included widget and others that are available, but they all seem to use one single location.

FlashJim 07-18-2011 07:01 PM

I guess this can't be done. :(

kh99 07-18-2011 07:23 PM

At the Accuweather site (http://netweather.accuweather.com/ad...gnup-page1.asp) you can choose your configuration and it will build html that you can insert in a page (or a widget or whatever). When configuring it will ask you for a specific zip code, but it is pretty simple to replace the zip with a variable containing the user's zip code (which I suppose has to be added as a custon profile field).

I should mention though that I'm not sure if replacing the zip code with a variable is allowed by the license agreement that you're asked to accept.

Videx 07-22-2011 11:41 PM

Pretty simple? On what planet? On my forum most members don't even give a zip code in their profile, just random 'funny' things like "Main Street". Maybe you could somehow look up their IP and find a nearby zip code from that, but those of us using proxies would get random garbage.

It all sounds more like Rocket Science to me!

kh99 07-23-2011 01:23 AM

Quote:

Pretty simple? On what planet?
Well, I meant that doing the substitution in the code is simple. You're right, getting users to enter their zip code is harder, but then, if they want their local weather they'll do it. BTW, I saw this done on a site, I didn't think it up myself.

I realize that the OP actually asked for something that would figure it out automatically, but I'd consider that difficult if not impossible, so I thiought this idea might be useful.


All times are GMT. The time now is 08:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01077 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete