Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Weather: Current Conditions Details »»
Weather: Current Conditions
Version: 1.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 10-05-2007 Last Update: Never Installs: 19
Uses Plugins
Additional Files  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-07-2007, 05:19 PM
Doctor Death Doctor Death is offline
 
Join Date: Dec 2005
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChU v2 View Post
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.
Anyone who gets this functionality working please let me know as I would like their advice/assist in implementing it in mine.

Thanks much, very exciting!
Reply With Quote
  #13  
Old 10-07-2007, 10:29 PM
Scooterpig Scooterpig is offline
 
Join Date: Feb 2005
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great and thanks but yea for my site we are scattered all over Australia and no point in having just the 1 location weather showing, so need the option of looking elsewhere, but great idea though thank you.
Reply With Quote
  #14  
Old 10-07-2007, 10:35 PM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting an error that reads.
Warning: fopen(/home/public_html/includes/cron/extras/weather.txt) [function.fopen]: failed to open stream: No such file or directory in /includes/cron/extras/weather.php on line 75

Warning: fwrite(): supplied argument is not a valid stream resource in /includes/cron/extras/weather.php on line 76

Warning: fclose(): supplied argument is not a valid stream resource in /includes/cron/extras/weather.php on line 77
Reply With Quote
  #15  
Old 10-07-2007, 11:03 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works great! I wonder, though, is it at all possible to have multiple location capability, or even like Doctor Death was asking, be able to use a field? We already have a zip code field on my website, would be awesome to be able to use that with this product.
Reply With Quote
  #16  
Old 10-07-2007, 11:08 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stone0075 View Post
I keep getting an error that reads.
Warning: fopen(/home/public_html/includes/cron/extras/weather.txt) [function.fopen]: failed to open stream: No such file or directory in /includes/cron/extras/weather.php on line 75

Warning: fwrite(): supplied argument is not a valid stream resource in /includes/cron/extras/weather.php on line 76

Warning: fclose(): supplied argument is not a valid stream resource in /includes/cron/extras/weather.php on line 77
The description for Weather File is a little misleading... it should read:

Enter into this box the full server path to the weather.txt file and make sure you change the weather.txt file to have 777 permissions. Note that a server path is not an HTTP link. Example: /home/username/public_html/domain/forum/includes/cron/extras/weather.txt

Where "username" is the username you use to login to your backend control panel for your web server, cpanel, for example. I kept getting the same error, so I did a search of all of my settings that had "public_html" in it, and found a little better explanation under the Error Handling and Logging section.
Reply With Quote
  #17  
Old 10-08-2007, 06:48 PM
chuchukuttie chuchukuttie is offline
 
Join Date: Jan 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be an amazing mod if it was world-wide weather cast, but good work though.
Reply With Quote
  #18  
Old 10-08-2007, 08:45 PM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by meissenation View Post
The description for Weather File is a little misleading... it should read:

Enter into this box the full server path to the weather.txt file and make sure you change the weather.txt file to have 777 permissions. Note that a server path is not an HTTP link. Example: /home/username/public_html/domain/forum/includes/cron/extras/weather.txt

Where "username" is the username you use to login to your backend control panel for your web server, cpanel, for example. I kept getting the same error, so I did a search of all of my settings that had "public_html" in it, and found a little better explanation under the Error Handling and Logging section.
Thanks meissenation, I'll give this a better look over to see where I went wrong....
Reply With Quote
  #19  
Old 10-09-2007, 12:03 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn, it doesn't work with Europe at all...
Reply With Quote
  #20  
Old 10-13-2007, 10:42 PM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I finally got this to work but now what? could someone please explain how to make this go horizontal instead of vertical? thanks!
Reply With Quote
  #21  
Old 10-19-2007, 01:59 AM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump! is there a way? anybody?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04733 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete