Events Made Easy › Forums › How do I … › Display today's event on calendar when 'Hide past events?' is checked
Tagged: calendar, Hide Past Events
- This topic has 16 replies, 3 voices, and was last updated 7 years ago by Anonymous.
-
AuthorPosts
-
Tue 14 Jun 2016 at 20:31 #55507AnonymousInactive
Forgive me if this is covered somewhere else – if it’s here, I couldn’t find it.
I’ve been trying to display the current day’s events on the calendar when ‘Hide past events?’ is selected in the settings.
While not optimal, the only solution I could figure out was to edit ’eme_calendar.php’, line 212, changing “$eme_date_obj_now” “$eme_date_obj_now->today()”
Is there more enduring way to do this?
Thu 16 Jun 2016 at 00:00 #55508FrankyKeymasterWell, currently the logic is that past events are those whose end-date is lower than the current date/time.
But now that I think about it, since I don’t take the hour into account, this might lead to less than desired results (even errors …). So your solution is in fact the correct one, by using the today function the hour/min/sec are set to 0, so then the comparison is correct.Fri 17 Jun 2016 at 04:07 #55511AnonymousInactiveMy client wanted folks to be able to sign up for her class up until class time. A same day class shows up on the class list (using today–this_month) but there’s no way to make that happen on the calendar without the change. IMHO, it does seem logical to display the current day’s offerings.
Thanks!
Fri 17 Jun 2016 at 10:18 #55512FrankyKeymasterDon’t worry, the change is in the dev-version and will be in the next release 🙂
Sat 18 Jun 2016 at 01:31 #55513AnonymousInactiveGreat! Thank you.
Fri 10 Nov 2017 at 02:13 #56923AnonymousInactiveFranky,
I am running into the same issue. I think there have been some releases which have changed the line numbers. Is there a new way to keep current day events showing until event time or end of day event day?
Fri 10 Nov 2017 at 09:46 #56926FrankyKeymasterCan you explain your problem? The mentioned change is already in the code for months (and in the released version). If you have a problem not identical to the one in this thread, please open a new one.
Fri 10 Nov 2017 at 16:34 #56927AnonymousInactiveIts the same. My current event stop displaying in my list of events before the event occurs. Maybe the calculations dont take the local time zone into account?
Fri 10 Nov 2017 at 17:54 #56928FrankyKeymasterThis thread talks about the calendar. If you’re using the calendar shortcode: which options are you using?
Sun 12 Nov 2017 at 01:38 #56947AnonymousInactiveOK. I guess this requires a new thread, but it seems like same issue. I am referring the the events list not the calender. eme_events_list’
Sun 12 Nov 2017 at 08:38 #56950FrankyKeymasterOk, now we know what shortcode you’re using. Which options are you using in it and what would you like to see as a result?
Sun 12 Nov 2017 at 16:59 #56952AnonymousInactiveI am displaying a list of events. Past events are hidden. Events scheduled on the day the list is being viewed are hidden before event time (events are hidden too early). I’d like events to display in list until event is over or atleast started.
Whatever you changed for the calendar should work if you change it for events listing. Its not taking into account time or time zone when deciding whether to hide?
Sun 12 Nov 2017 at 20:05 #56953FrankyKeymasterPlease answer this: “Which options are you using in it”
For all options in [eme_events], see:
http://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_events/
(by default only future events are shown, see the ‘scope’ parameter)Mon 13 Nov 2017 at 01:29 #56958AnonymousInactiveI am not using any shortcodes.
I have the Events page set to Schedule (my page to list events)This is my Default Event List Format:
<dt> #_LINKEDNAME</dt><dd>#F #j, #Y at #g:#i #a
<br>#_ADDRESS – #_TOWN </dd>Who is in:
[eme_attendees id=#_EVENTID template_id=1]Its should list all events and anyone who has RSVP’d yes.
‘Todays’ event tends to ‘hide’ early.Mon 13 Nov 2017 at 08:36 #56960FrankyKeymasterThen read the usage doc:
http://www.e-dynamics.be/wordpress/category/documentation/3-installation-and-usage/Fri 17 Nov 2017 at 01:46 #56996AnonymousInactiveI changed the Events page back to default.
I am calling the shortcode [eme_events], with no options, on my schedule page.The problem remains. Tonights 9pm event is gone from the list at 4:30pm.
Fri 17 Nov 2017 at 04:18 #56998AnonymousInactiveI figured out the problem.
Wordpress shows my revisions as: Eric, 1 min ago (November 17, 2017 @ 03:09:46)
Its November 16, 2017 at 7:13 pm in realty and on my computer.If anyone else runs into this, settings>general>Timezone
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.