• Resolved pvwylick

    (@pvwylick)


    I use some PHP code to display some more info on an event page.
    Since the last update this does not work anymore: no specific info on attendees is displayed. No name, no booking spaces, no booking comment. Has something changed?

    My code:
    <?php
    /* @var $EM_Event EM_Event */
    $people = array();
    $mail_string=””;
    $EM_Bookings = $EM_Event->get_bookings();
    if( count($EM_Bookings->bookings) > 0 ){
    ?>
    <table cellpadding=”0″ cellspacing=”0″ ><thead><tr><th>Nr.</th><th width=”195″>Naam</th><th width=”50″>Aantal</th><th>Opmerking</th></tr></thead><tbody>
    <?php
    $counter = 1;
    echo ‘‘.Deelnemers.’‘;
    foreach( $EM_Bookings as $EM_Booking){
    if($EM_Booking->status == 1 ){
    $people[] = $EM_Booking->get_person()->ID;
    echo ‘<tr valign=”top”><td>’. $counter . ‘</td>
    <td> get_person()->user_email. ‘”> ‘. $EM_Booking->get_person()->get_name() . ‘</td>
    <td>’. $EM_Booking->get_spaces() .’ </td><td> ‘ . $EM_Booking->booking_comment. ‘ </td></tr>’;
    $mail_string = $mail_string.$EM_Booking->get_person()->user_email.”, “;
    $counter++;
    }
    }
    ?>
    </tbody></table>
    <?php
    echo ‘<i>Wil je iemand een mail sturen, klik dan op zijn naam. Als je een mail naar alle deelnemers wil sturen, klik dan ‘;
    echo “name} ({$EM_Event->event_start_date})’><b>HIER.</b>“;
    echo ‘</i>’;
    ?>

    <?php
    }

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Own Php code not working anymore’ is closed to new replies.