Home › Forums › Calendar Products › Events Calendar PRO › Single day view, displaying past day events.
- This topic has 12 replies, 2 voices, and was last updated 11 years, 5 months ago by Barry.
-
AuthorPosts
-
November 18, 2012 at 7:23 am #28220SandroParticipant
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?
November 18, 2012 at 8:19 am #28221SandroParticipantI noticed also upcoming events widget shows 1 day past events!
http://holiday.ge/events/category/tbilisi/Something is wrong…
November 18, 2012 at 8:26 am #28222SandroParticipantEasiest 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/November 20, 2012 at 1:41 am #28269SandroParticipantHi,
This is kind of urgent… please!
November 20, 2012 at 7:51 am #28282BarryMemberHi 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?November 20, 2012 at 8:43 am #28285SandroParticipant1. 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.
November 20, 2012 at 9:14 am #28287BarryMemberI 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.
November 20, 2012 at 9:15 am #28288SandroParticipantGreat! btw search isn’t very powerful on this forum 🙂 I can’t find anything usually.
November 20, 2012 at 9:41 am #28291BarryMemberYou’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:
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.
November 24, 2012 at 9:50 am #28417SandroParticipant“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 amWhen 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.
November 26, 2012 at 10:36 am #28466BarryMemberYeah 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?
November 26, 2012 at 10:42 am #28468SandroParticipantglad 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.
November 26, 2012 at 10:47 am #28469BarryMemberFor 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.
-
AuthorPosts
- The topic ‘Single day view, displaying past day events.’ is closed to new replies.