• Resolved jcl44

    (@jcl44)


    Hello,

    First of all, sorry for the mistakes, but I’m french and use au French localised version of event manager…

    In the page that display my events, I use the #_ATTENDEESLIST placeholder, it works fine, but I would like to diplay the number of spaces each person has booked next to the name. For exemple :

    My name is (2)
    My name is (1)
    My name is (4)

    In the support files, I found I have to use the #_BOOKINGSPACES placeholder but I dont kow I to use it.

    After searching this forum, I found this topic :
    <https://wordpress.org/support/topic/plugin-events-manager-display-attendees-in-a-page?replies=34&gt;

    I don’t “speak” PHP fluently and this toping is 3 years old. I understand I have to modify the attendeeslist.php file, but I can’t go further, it’s to complex for me to follow the thread.

    Here his the content of the file :

    <?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
    $guest_bookings = get_option(‘dbem_bookings_registration_disable’);
    $guest_booking_user = get_option(‘dbem_bookings_registration_user’);
    foreach( $EM_Bookings as $EM_Booking){
    if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
    $people[] = $EM_Booking->get_person()->ID;
    echo ‘

    • ‘. $EM_Booking->get_person()->get_name() .’
    • ‘;
      }elseif($EM_Booking->booking_status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){
      echo ‘

    • ‘. $EM_Booking->get_person()->get_name() .’
    • ‘;
      }
      }
      ?>

      <?php
      }

      Can someone tell what have have to add/modify just to add the number of space next to the name ?

      Thanks a lot and best regards from France,

      https://wordpress.org/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding "BOOKING SPACES" next to name in #_ATTENDEESLIST’ is closed to new replies.