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)

Erwin 08-07-2002 12:29 AM

Sorry, server is at MT GMT -7
I am at Eastern Australian GMT +10

Currently I'm at 11:27 am
The weather still says 11:40 am.

JJR512 08-07-2002 12:48 AM

Well this is odd...when I set my test board to a server time offset of MT GMT -7, and set my own profile to GMT +10, it says my local time is 2:45pm...three hours later than what it aparently really is!

Erwin 08-07-2002 12:53 AM

LOL!

Actually, what you need to do is to keep your server time EXACTLY the way it was - but change your user time to GMT +10 - that should bring you to my time. (Our server offset would be different since our servers will be in different timezones).

Itworx4me 08-07-2002 12:56 AM

JJR512,

Is there anyway to just show different citys weather conditions without having them set as your own. Like if I wanted to see what the conditions were in New York? Have you ever looked at the newspaper and it shows the temps around the world. Anyway of doing something like that as a hack. Where you input the citys you want to see listed there. Not sure how hard this is to do? Could you give some feedback?

JJR512 08-07-2002 01:04 AM

You could see the weather for a different city, without having to set your settings to that city, by using a link like http://www.yourdomainhere.com/forums...ycode=xxxxxxxx where xxxxxxxx is the code for a city, like New York City is USNY0996. You can look up the code you want in the weather_city table.

Erwin, does your time zone go on daylight savings time? I set my server time zone back to what it should be, and I'm still an hour ahead of you. It says it's 12:56pm but I think it should be 11:56am, right? Plus, I don't think MT goes on daylight savings time at all, but ET does...GMT never does...it's so confusing. You may just want to change the line $time_lastup = strtotime($weatherdata[lastup]); to $time_lastup = strtotime($weatherdata[lastup])-3600;

Erwin 08-07-2002 01:11 AM

Mmm... I did the fix you suggested... it took the time last update back by 1 hour for me...

So it was 10:40 - looked good. But then I forced an update. The last time update now says 12:40 pm. But I am at 12:00 pm now. :)

It doesn't really matter - no biggie. Looks better than before anyway.

PhoenixBB 08-07-2002 01:12 AM

Hi again, Still not got it coming up on any other page but the index so far, but I'll figure that out at some point I hope.

What I'm still getting on the links is: ''url/forum/weather.php?s=&action=getdata'', but I noticed when I tested the one on your site it gave a string of digits after the '?s=' so it's not calling something. But what? Anyone got any ideas, coz that's the main problem at the moment.

JJR512 08-07-2002 01:14 AM

Attached is 2.gif. Everyone should add this to wherever you have uploaded the rest of the icons.

JJR512 08-07-2002 01:17 AM

Quote:

Originally posted by PhoenixBB
Hi again, Still not got it coming up on any other page but the index so far, but I'll figure that out at some point I hope.

What I'm still getting on the links is: ''url/forum/weather.php?s=&action=getdata'', but I noticed when I tested the one on your site it gave a string of digits after the '?s=' so it's not calling something. But what? Anyone got any ideas, coz that's the main problem at the moment.

The string of digits after s= is irrelevant. That's the session hash, and you might not see it on your own board if you are set to use cookies. The board gets the session hash from the cookie rather than through the URL. Completely irrelevant.

Itworx4me 08-07-2002 02:06 AM

Hello again,

Thanks for taking the time to look at my request. When I run your query it still show my current settings. Any ideas how to not have my saved settings interfer with using a different city setting?


All times are GMT. The time now is 03:55 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.01604 seconds
  • Memory Usage 1,736KB
  • 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)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