vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Weather Mk. 2 (https://vborg.vbsupport.ru/showthread.php?t=41842)

JJR512 08-05-2002 09:26 PM

I guess you didn't do Steps 2 and/or 3 in the instructions.

JJR512 08-05-2002 09:32 PM

Quote:

Originally posted by chris2707
This is brilliant and I got it working straight away!

One question, I notice that if I choose London, United Kingdom, the time of last update is showing the USA timezone rather than the boards timezone setting. Is the update value being picked up directly from MSN? Can it be changed so it matches the boards selected timezone?

Many thanks for a great addition (and you know what the English are like for weather!)

Chris

Yes, I know what English weather is like: When I was researching the new raw data layout for this hack, I had to find what a bunch of different forecasted-weather-type codes meant (how a code number in the raw data translated to meaningful text, which is what you see in the forecast under the icons). I did this by randomly checking weather forecasts for various cities on the MSNBC weather page, then looking at the raw data for the same city to see what code was associated with what description. Well, I solved a lot of that by looking up cities in England, which is where I got most of the rain-related codes, LOL! "AM Showers", "AM Light Rain", "Light Rain/ Wind", haha...about a dozen variations of what we in the US just call "rain"! :D

As for your actual question...The time comes straight from MSNBC; it's part of the raw data. I'll see if there's a way I can make it localized.

JJR512 08-05-2002 09:36 PM

The raw data has this bit in it:

08/05/2002 18:00:00

As you can see, I just echo that in the display. I don't even know what time zone it is, so I'm wondering how you can tell?

chris2707 08-06-2002 06:35 AM

On MSNBC is says ET somewhere near the time so I guess that's Eastern Time (shouldn't that be EST?).

Anyway, I guess there must be a way to convert the text back to time format and re-format it. I'll have a go and see if I can get it working.

Thanks again,
Chris

JJR512 08-06-2002 04:12 PM

It probably says ET so it's correct if it's EDT or EST. Yeah, there's a way to convert it into a workable time format; I looked into it once, but never did anything with it.

Boofo 08-06-2002 04:17 PM

Is there a way to have the Last Update Time set to the timezone and time/date format of our sites? :)

Quote:

Originally posted by JJR512
It probably says ET so it's correct if it's EDT or EST. Yeah, there's a way to convert it into a workable time format; I looked into it once, but never did anything with it.

JJR512 08-06-2002 04:20 PM

You have read Post #s 60 and 63-66, right?

reifegerste 08-06-2002 04:22 PM

Hi,

When i click to Detailed Forecast or Change Settings i see the following error code:

Fatal error: Cannot redeclare convert_temp() in /home/username/www.forum.de/vbulletin/weather_functions.php on line 4

what can i do?

greetz
Lars

Boofo 08-06-2002 04:31 PM

Yes, I read all of that. What I meant was, is there a way you can parse the time after you collect the raw data (instead of just echoing it) to match that of the site so everything stays in a site standard format.

Quote:

Originally posted by JJR512
You have read Post #s 60 and 63-66, right?

JJR512 08-06-2002 04:32 PM

Did you upload the new weather.php? It sounds like you are still using the old one. Get the new one out of the ZIP file and upload it to your forums directory. Also, in your forums directory, delete the file named weather_functions.php, which is not used anymore.


All times are GMT. The time now is 08:07 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.01425 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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