vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Weather: Current Conditions (https://vborg.vbsupport.ru/showthread.php?t=159638)

calorie 10-05-2007 10:00 PM

Weather: Current Conditions
 
Display current weather conditions, updated hourly. See the attached screenshot.

Requirements:
  • file_get_contents, fopen, fwrite, fclose
  • rss feed from the weather.gov website
This means that you need PHP configured to allow you to use the listed functions.

Plus the only feed tested with this mod is from weather.gov which is not worldwide.

Lionel 10-06-2007 08:53 PM

Man you are on the roll. It's nice to see you back in force.

iogames 10-06-2007 09:54 PM

You're on Fire! ;)

Doctor Death 10-06-2007 09:54 PM

This is a nice mod, but I would much rather it access for EACH user their zip code (user defined field) and tell what their weather is/will be on a separate template.

Problem is, with users scattered all over the US, they dont care about weather here.

Would this be hard to do?

Thanks much

calorie 10-06-2007 11:29 PM

Thanks for the thanks.

@Doctor Death: haven't thought about it, current weather is probably best for a community site, though you might try checking the "Similar Mod" box in this thread for ideas.

Shazz 10-06-2007 11:37 PM

Would like to see how accurate it is :)

Doctor Death 10-07-2007 12:00 AM

There is nothing that does what I suggested... I would think that having a user defined field of zip code and if there is something in it, use that as the index lookup, and if not, use the server zip code.

Oh well. Thanks anyway.

ChU v2 10-07-2007 03:09 AM

Here is code to add a link. Maybe someone else can figure out how to get it to actually display. This link is for your navbar.

HTML Code:

<tr><td class="vbmenu_option">
<if condition="$bbuserinfo[fieldXX]">
<a href = "http://www.weather.com/weather/local/$bbuserinfo[fieldXX]?lswe=$bbuserinfo[fieldXX]&lwsa=WeatherLocalUndeclared&from=whatwhere">weather</a>
</if>

Replacing XX with the field that you set in the ACP.

Magnumutz 10-07-2007 04:17 AM

Dude, that's great. I'm gonna use it right now.

Dragons76 10-07-2007 05:23 AM

It's only for USA ?

Not for France !!


All times are GMT. The time now is 02:08 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.01004 seconds
  • Memory Usage 1,726KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete