vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mini Calendar (https://vborg.vbsupport.ru/showthread.php?t=68117)

PUPSTAHS 08-12-2004 04:50 PM

Quote:

Originally Posted by Colin F
I also don't use ranged events on my calendar :)

But I'll look into it aswell when I get home this evening.

Hehe... yea, it'd just be a cool feature to have. Also having the preview text for the day's events when you hover over the link would be damn cool.

If you don't get around to it I might give it a shot down the line.

Colin F 08-12-2004 05:27 PM

Can you try it with this file?

I did something for the ranged events...

Eventpreview is kind of complicated. What should I do if there are 5 events? which one is the first?

PUPSTAHS 08-12-2004 06:32 PM

I'd say ignore the ordering... it's more of a nice small feature than anything that should be robust, in my opinion... so just grab the events so people can see what's going on.

As for the ranged events... very close to working. The one bug I have seems to be related to timezone offset. Since I'm PST (-8), any event 4pm or after is showing up for the next day instead.

Colin F 08-12-2004 07:03 PM

Any event that starts 4pm or after is showing up for the next day....

Can you check if this is only for ranged events or also for recurring events?
If so, then it's most probably the utc field in the database...

Colin F 08-12-2004 07:10 PM

Here's an updated file, try this and tell me if it works please...

PUPSTAHS 08-12-2004 08:43 PM

Hmm, that just seems to have pushed the threshold back an hour, to 5pm. The bug happens with any event that allows you to schedule a time.

Anytime that's 5pm or after appears for the next day. So if I have a single-day ranged event from 9pm-11pm on August 10th, the link will appear on August 11th.

Colin F 08-13-2004 04:17 AM

Quote:

Originally Posted by PUPSTAHS
Hmm, that just seems to have pushed the threshold back an hour, to 5pm. The bug happens with any event that allows you to schedule a time.

Anytime that's 5pm or after appears for the next day. So if I have a single-day ranged event from 9pm-11pm on August 10th, the link will appear on August 11th.

Now that's unusual... I have no idea why it should push it back only 1 hour...

spence2 08-13-2004 05:46 AM

Daylight Savings Time?

Colin F 08-13-2004 10:12 AM

I don't see how it can be daylight savings time, as I "actually" didn't touch anything that has to do with that. Thanks for the input though...

Why dont you try changing the three occurences of $theday = date( to $theday = gmdate(

I'll also look into changing the thing checking the date, if that doesn't solve the problem.

PUPSTAHS 08-13-2004 07:44 PM

Ok it has to be a time-zone bug. Because when you enter calendar event data it allows you to choose the timezone, so vbulletin must be doing some additional calculations based on the user's own timezone selection, and the timezone for which the event was added.

Pacific Time (for both event and user setting):
August 14th 8am - 4:30pm ---works fine
August 14th 8am - 5:00pm ---links the 15th as well


All times are GMT. The time now is 11:04 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.01210 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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