• Resolved geofffaulder

    (@geofffaulder)


    Hi all, nearly there but just can’t find one thing I’d like to add. Im building a website for my small club. We are about 50 members and every body knows everybody. I’d like members who are logged in to be able to see a list of who has already registered for an event. But I don’t want to give them access to the admin area. That is, I’d like to add a “Who’s Booked Already” list to an event. Can this be done?

Viewing 1 replies (of 1 total)
  • Go to Events > Settings then select the Formatting tab and enable Super Advanced mode then select the Events section and add the following after line 45 in the single event page format:

    				<h3>
    SIGNUPS (#_BOOKEDSPACES signups)
    </h3>
    #_ATTENDEESLIST

    In addition I added the number of spaces reserved for each attendee by changing the attendees list template. I created the directory wp-content/plugin-templates/events-manager/placeholders then I copied wp-content/plugins/events-manager/templates/placeholders/attendeeslist.php to that directory then I modified the copied version of the file so it looks like this:

    <?php
    /* @var $EM_Event EM_Event */
    $people = array();
    $EM_Bookings = $EM_Event->get_bookings();
    if( count($EM_Bookings->bookings) > 0 ){
    ?>
    <ul class="event-attendees">
    <?php
    foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */
    $spaces = $EM_Booking->get_spaces();
    $spaces_str = $spaces > 1 ? '(' . $spaces . ')' : "";
    if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
    $people[] = $EM_Booking->get_person()->ID;
    echo '<li>'. $EM_Booking->get_person()->get_name() . $spaces_str .'</li>';
    }elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){
    echo '<li>'. $EM_Booking->get_person()->get_name() . $spaces_str .'</li>';
    }
    }
    ?>
    </ul>
    <?php
    }
    • This reply was modified 7 months, 3 weeks ago by joneiseman.
Viewing 1 replies (of 1 total)

The topic ‘Create a shared booking list’ is closed to new replies.