Single day view, displaying past day events.

Home Forums Calendar Products Events Calendar PRO Single day view, displaying past day events.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #28220
    Sandro
    Participant

    post-28173 follow up.

    http://holiday.ge/events/2012-11-17/
    http://holiday.ge/events/2012-11-18/

    There is something wrong with single day view. I see events that started and finished 1 day early.
    For example on http://holiday.ge/events/2012-11-18/ I see events that started 17th.

    I’ve cutoff time specified in backend as 6:00 AM, so shouldn’t this take care of this?

    #28221
    Sandro
    Participant

    I noticed also upcoming events widget shows 1 day past events!
    http://holiday.ge/events/category/tbilisi/

    Something is wrong…

    #28222
    Sandro
    Participant

    Easiest way to see the problem:

    Lists 2 events: http://holiday.ge/events/2012-11-12/
    Calendar lists only 1 for 12 nov http://holiday.ge/events/

    #28269
    Sandro
    Participant

    Hi,

    This is kind of urgent… please!

    #28282
    Barry
    Member

    Hi Sandro. Are your server’s date/time settings correct and does this occur if you follow the standard troubleshooting steps of:

    – Ensuring all of your Modern Tribe plugins are up to date
    – Disabling all other plugins and also switching to a default, unmodified theme such as Twenty Eleven?

    #28285
    Sandro
    Participant

    1. Server time was off, so I had to set in wordpress correct timezone. Now timing on upcoming events seems to be correct! So this solved.

    2. I’m still having issues with multiday events. For calendar it works fine, I set 6AM as multiday cutoff time. But on list view this setting doesn’t seem to have effect.

    For example: http://holiday.ge/events/2012-11-18/
    You can see here events that start 17, 2012.

    I’m checking plugins but till now didn’t notice anyplugin conflict.

    #28287
    Barry
    Member

    I seem to recall this being brought up a few times in the recent past, and the solution involves a slight change to your list.php template. I’ll see if I can dig up one of the previous threads on this subject.

    #28288
    Sandro
    Participant

    Great! btw search isn’t very powerful on this forum 🙂 I can’t find anything usually.

    #28291
    Barry
    Member

    You’re right and I think we’d all benefit from better search tools – I believe some improvements are in the works – and actually I was unable to locate the thread I was thinking of 🙁

    However! … I did knock this together as it is fairly straightforward code in principle and pretty much replicates what I was trying to find:

    http://pastebin.com/QT4yDRV7

    This would be inserted within list.php after the while loop opens and is a simple workaround. What you are describing however is actually the expected behaviour: the Multiday Event Cutoff setting is only intended to affect gridviews, not upcoming events.

    #28417
    Sandro
    Participant

    “Multiday Event Cutoff setting is only intended to affect gridviews, not upcoming events.”

    But shouldn’t upcoming events be filtered according to current time?
    http://holiday.ge/en/events/upcoming/

    How is it possible that system displays to me events for
    Start: November 23, 2012 10:00 pm
    End: November 24, 2012 5:00 am

    When current time is: November 24, 2012 9:48 pm?
    Event ended almost 12 hours ago, and is surely not “upcoming”.

    Can you confirm again that this is expected behaviour? Seems very strange to me.

    #28466
    Barry
    Member

    Yeah I’d guess that’s an oversight. This doesn’t seem to be a problem in the 3.0 codebase, though, so while the workaround I provided isn’t perfect in terms of pagination etc perhaps it would fill the gap until 3.0 is released publicly?

    #28468
    Sandro
    Participant

    glad to hear it is being improved in 3.0

    I tried code you provided, but it had some problems, it would skip multiday events from the list.

    I changed start date to end date. So if event ends before cutoff date it is not listed. My final code is something like: http://pastebin.com/U6Dp3nBd

    I could not make it work on upcoming events page, hence the conditional… on upcoming events page past and future events would not display correctly.

    #28469
    Barry
    Member

    For multiday events that start before the cutoff point but finish after the current time? Yeah it doesn’t cater for that, you’d need to expand upon the conditional statement, the comparison would need to take in both the start and the end date.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Single day view, displaying past day events.’ is closed to new replies.