Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kingofpain

    (@kingofpain)

    and possibly set 0 to unlimited spaces

    yes, please see template file at wp-contents/plugins/events-manager/templates/forms/event-editor.php

    to use templates files: http://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter kingofpain

    (@kingofpain)

    thanks i have now copied the event-editor to my theme but im having trouble figuring out which bit of code i need to change to make bookings required

    here is the booking part:

    <?php if( get_option('dbem_rsvp_enabled') && $EM_Event->can_manage('manage_bookings','manage_others_bookings') ) : ?>
    		<!-- START Bookings -->
    		<h4><?php _e('Bookings/Registration','dbem'); ?></h4>
    		<div class="inside event-form-bookings">
    			<?php em_locate_template('forms/event/bookings.php',true); ?>
    		</div>
    		<!-- END Bookings -->
    		<?php endif; ?>

    sorry, I forgot to mention that you also need this file forms/event/bookings.php in your theme also;

    1. make sure that this line is checked
    <input id="event-rsvp" name='event_rsvp' value='1' type='checkbox' <?php echo ($EM_Event->event_rsvp) ? 'checked="checked"' : ''; ?> />

    2. remove this css style display:none; at <div id="event-tickets" style="<?php echo ($EM_Event->event_rsvp) ? '':'display:none;' ?>">

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Require registration!’ is closed to new replies.