Events Made Easy Forums Generic submitting and editing all-day events and events with start or end only

Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #55125
    Anonymous
    Inactive

    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!

    #55126
    Franky
    Keymaster

    Well, 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.

    #55127
    Franky
    Keymaster

    I tested this: when leaving empty, 0:00 is also used for EMEFS. Is this not the case for you?

    #55139
    Anonymous
    Inactive

    I 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>
    
    #55140
    Franky
    Keymaster

    Well … 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.

    #55816
    Anonymous
    Inactive
    <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>
    #55819
    Franky
    Keymaster

    The 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

    #56062
    Anonymous
    Inactive

    Thank 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?

    #56064
    Franky
    Keymaster

    If no time is given, it is “00:00”

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top