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)

Doctor Death 10-07-2007 05:19 PM

Quote:

Originally Posted by ChU v2 (Post 1354551)
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!

Scooterpig 10-07-2007 10:29 PM

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.

johnrizz 10-07-2007 10:35 PM

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

meissenation 10-07-2007 11:03 PM

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.

meissenation 10-07-2007 11:08 PM

Quote:

Originally Posted by stone0075 (Post 1355102)
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.

chuchukuttie 10-08-2007 06:48 PM

This would be an amazing mod if it was world-wide weather cast, but good work though.

johnrizz 10-08-2007 08:45 PM

Quote:

Originally Posted by meissenation (Post 1355123)
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....

Magnumutz 10-09-2007 12:03 PM

Damn, it doesn't work with Europe at all...

johnrizz 10-13-2007 10:42 PM

Ok I finally got this to work but now what? could someone please explain how to make this go horizontal instead of vertical? thanks!

johnrizz 10-19-2007 01:59 AM

Bump! is there a way? anybody?


All times are GMT. The time now is 02:54 PM.

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.01102 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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