Events Made Easy › Forums › Generic › submitting and editing all-day events and events with start or end only
- This topic has 8 replies, 2 voices, and was last updated 7 years, 7 months ago by Franky.
-
AuthorPosts
-
Thu 19 Nov 2015 at 17:47 #55125AnonymousInactive
There may be events which one likes to submit with EMEFS without giving information on begin- oder end-time, only with a date, e.g. an event which happens on a single day with unknown, not planned durance.
The problem is: An event, once submitted by someone, is sent to / saved in EME with the time of the moment of submitting. While reviewing this new event, the editing user has no change to decide wether the time form field was really filled or simply intentionally left blank.
Is it possible to handle theses case more1 carefully in a future version of EMEFS or did I missed an apprioprate config option?
I´m posting this feature request as a follow-up to https://wordpress.org/support/topic/submitting-events-without-time?replies=2#post-7427388
Thanks in advance!Thu 19 Nov 2015 at 20:16 #55126FrankyKeymasterWell, for new events in EME, the time is 0:00 if left blank. That should also be done via EMEFS if not entered, so I’ll take a look at it.
Thu 19 Nov 2015 at 20:45 #55127FrankyKeymasterI tested this: when leaving empty, 0:00 is also used for EMEFS. Is this not the case for you?
Wed 25 Nov 2015 at 17:41 #55139AnonymousInactiveI have to correct the description.
Allday Events (events withouth any time, only dates) are saved with 00:00 Begin-/End-Time.
For events with an end-time, the begin-time is set to 00:00.
But for events with a begin-time, the end-time is set to the begin-time – that´s not OK.The emefs part in form.php is
<fieldset id="event_start"> <legend><?php _e('Start','emefs'); ?> <small><?php _e('required','emefs'); ?></small></legend> <div class="input"> <label for="event_start_date"><?php _e('Date','emefs'); ?></label> <?php EMEFS::field('event_start_date'); ?> <?php EMEFS::error('event_start_date'); ?> </div> <div class="input"> <label for="event_start_time"><?php _e('Time','emefs'); ?></label> <?php EMEFS::field('event_start_time'); ?> <?php EMEFS::error('event_start_time'); ?> </div> </fieldset> <fieldset id="event_end"> <legend><?php _e('End','emefs'); ?></legend> <div class="input"> <label for="event_end_date"><?php _e('Date','emefs'); ?></label> <?php EMEFS::field('event_end_date'); ?> <?php EMEFS::error('event_end_date'); ?> </div> <div class="input"> <label for="event_end_time"><?php _e('Time','emefs'); ?></label> <?php EMEFS::field('event_end_time'); ?> <?php EMEFS::error('event_end_time'); ?> </div> </fieldset>
The output in EME is defined with
<p><strong>Beginn:</strong> #_STARTDATE #_24HSTARTTIME Uhr<br /></p> <p><strong>Ende:</strong> #_ENDDATE, #_24HENDTIME Uhr<br /></p>
Wed 25 Nov 2015 at 23:01 #55140FrankyKeymasterWell … discussions were had on that years ago, and since the end time can never be lower than the start time (and 0:00 can’t be assumed as end time too), I put the end time the same as the start time if not supplied.
If you want to hide the end time if it is the same as the start time, use conditional tags.Thu 13 Oct 2016 at 18:44 #55816AnonymousInactive<p><strong>begin:</strong> #_STARTDATE [eme_if tag="#_24HSTARTTIME" value="00:00"] - sorry, time unkown<br /></p> [/eme_if] [eme_if2 tag="#_24HSTARTTIME" notvalue="00:00"] #_24HSTARTTIME Uhr<br /></p> [/eme_if2] <p><strong>end:</strong> #_ENDDATE [eme_if3 tag="#_24HENDTIME" value="23:59"] - sorry, time unkown<br /></p> [/eme_if3] [eme_if4 tag="#_24HENDTIME" notvalue="23:59"] #_24HENDTIME Uhr<br /></p> [/eme_if4] </p>
Fri 21 Oct 2016 at 01:13 #55819FrankyKeymasterThe next version of EMEFS allows to manipulate more event options, in this case the all_day property:
EMEFS::property(‘all_day’,’binary’)The readme.txt will show more info
Thu 23 Mar 2017 at 15:25 #56062AnonymousInactiveThank you, but we don´t have problems with all-day events, we have a problem when a event is submitted without Start/Endtime.
So I try conditional tags:<p><strong>Start:</strong> #_STARTDATE [eme_if tag="#_24HSTARTTIME" value="00:00"] UNKNOWN<br /></p> [/eme_if] [eme_if2 tag="#_24HSTARTTIME" notvalue="00:00"] #_24HSTARTTIME Uhr<br /></p> [/eme_if2] <p><strong>End:</strong> #_ENDDATE [eme_if3 tag="#_24HENDTIME" value="23:59"] UNKNOWN<br /></p> [/eme_if3] [eme_if4 tag="#_24HENDTIME" notvalue="23:59"] #_24HENDTIME Uhr<br /></p> [/eme_if4] </p>
…but this does not work, why?
Thu 23 Mar 2017 at 15:48 #56064FrankyKeymasterIf no time is given, it is “00:00”
-
AuthorPosts
- The forum ‘Generic’ is closed to new topics and replies.