Support

Home Forums Event Espresso Premium Who's attending?

Who's attending?

Posted: July 23, 2014 at 11:30 pm

Viewing 3 reply threads


dave segal

July 23, 2014 at 11:30 pm

Hi there,

I have a multi ticket setup and wouldlike to output specific infomration on a webpage.
i.e.
Event A Attendees
John smith, phone number, Country
Sarah Smith, phone number, Country

Event B Attendees
etc

is this poss?

ee4
current wordpress


Tony

  • Support Staff

July 24, 2014 at 5:05 am

Hi Dave,

This would require some custom development but we have an attendee list function which could be adapted to do the above, currently it pulls the FName, LName and Email address from the database but could be adapted to pull the extra information you are requesting.

The function is available on our EE4 Useful PHP Snippets page.

Dean also adapted this to be used as a shortcode which would suit your needs a little better: https://eventespresso.com/topic/front-end-attendee-list-page-ee4/


dave segal

July 28, 2014 at 10:47 pm

Thanks Tony,

This is the output I receive when i use the method of creating a plugin and adding a page with shortcode [display_those_attendees eventid=”1774″]. see here http://burtongarran50th.org/?page_id=1855

I have a multiticket setup and wish to show the names of people attending each of the ticketed events within the ticket.

Below is the code I used to make the widget.
Ideally it would show the name of the individual sub ticket and who is attending.

<?php
/*
Plugin Name: Site plugin for EE4plugin home made
Description: Site specific code for burtongarran50th.org
*/
/* Begin Adding Functions Below This Line */

add_shortcode(‘display_those_attendees’, ‘ee_attendee_list’ );

function ee_attendee_list($atts){
global $wpdb, $post;

$EVT_ID = $atts[‘eventid’];
$post = get_post( $EVT_ID );

echo ‘<ul class=”attendee-list”>’;

$sql = “SELECT ATT_fname, ATT_lname, ATT_email “;
$sql .= “FROM {$wpdb->prefix}esp_attendee_meta “;
$sql .= “INNER JOIN {$wpdb->prefix}esp_registration “;
$sql .= “ON {$wpdb->prefix}esp_attendee_meta.ATT_ID = {$wpdb->prefix}esp_registration.ATT_ID “;
$sql .= “WHERE {$wpdb->prefix}esp_registration.EVT_ID = %d”;

$attendees = $wpdb->get_results( $wpdb->prepare( $sql, $post->ID ));

foreach($attendees as $attendee){
$fname = $attendee->ATT_fname;
$lname = $attendee->ATT_lname;
$email = $attendee->ATT_email;
$gravatar = get_avatar( $email, ’64’, ‘identicon’ );
$html = ‘

  • ‘. $gravatar .'<span>’. $fname .’ ‘. $lname . ‘</span>
  • ‘;
    echo $html;
    }

    echo ‘‘;

    return;

    }
    /* Stop Adding Functions */


    Dean

    July 29, 2014 at 2:42 am

    Hi Dave,

    That would require further customisation involving pulling in various database tables to find out what datetimes are available on the event, what tickets are associated with each datetime and then display the attendees associated with each ticket.

    This goes beyond support and into the realms of customisation as it would take us time to work it all out, test etc.

    You could contact one of our recommended developers (https://eventespresso.com/developers/event-espresso-pros/ ) or submit a customisation request (https://eventespresso.com/contact/customization-request-form/).

    Viewing 3 reply threads

    The support post ‘Who's attending?’ is closed to new replies.

    Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

    Event Espresso