• Resolved djlo

    (@djlo)


    Hi and thank you for this plugin.

    I wanted to know if there is a way to display who has registered to attend the event so that everyone else can also see.

    Thanks in advance.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author roundupwp

    (@roundupwp)

    Hey djlo,

    You’re welcome! I’m glad it’s working well for you.

    An attendee list is not yet possible but it will be in the next major update (in about a month or so)

    You will also be given the option of confirming the guest before their name appears for some added control.

    Let me know if you have any more questions!

    – Craig

    Thread Starter djlo

    (@djlo)

    Sounds good.
    Exactly what I’m looking for, thank you!

    Plugin Author roundupwp

    (@roundupwp)

    No problem! Have a great rest of your week.

    Plugin Author roundupwp

    (@roundupwp)

    Hey again,

    Just wanted to give you a heads up that version 1.6 gives you the ability to show the list above the registration form. Names will not appear in the list until you have reviewed them in the back end of the site and the “new” tag has disappeared.

    Thread Starter djlo

    (@djlo)

    Thank you!
    Just checked it out and it works great!

    That’s a big improvement and it looks great. But…there’s always that darn but….

    I’m using this on a site for a local photography club for members to sign up for field trips. What I’ve been doing was exporting registrations and putting them in a table above the form so that registrants not only see who else is registered, but whether they want to carpool (a custom field) and their contact info. Is there any way additional information from the form can be included in the “Currently Registered” display box?

    Thanks for an awesome plugin.

    Plugin Author roundupwp

    (@roundupwp)

    Glad you like the plugin!

    I hadn’t considered a use case like this but it makes a lot of sense! Most of the requests were just for a guest list type of feature.

    At the very least I can make customizations like this easier for you to set up as you need to in future updates. You could change the area of the code that displays the currently registered users to show other information from the database if you are handy with PHP.

    Are you handy with PHP? I could point you toward the functions you would want to use to do this if so in the mean time.

    I’m OK with PHP, so if you tell me where to look I can give it a shot.

    Thanks.

    Plugin Author roundupwp

    (@roundupwp)

    Sure! In that case I came up with a rough example that you should be able to tweak to what you need. You’ll need to add some styling and a table heading but I’ll give you code that will show all of the data in a table.

    1) Open up the file class-rtec-db.php in the inc folder.
    2) Find the get_registrants_data() method and change the line:
    $retrieve_fields = array( 'first_name', 'last_name' );

    to

    $retrieve_fields = array( 'first_name', 'last_name', 'email', 'phone', 'other', 'custom' );

    Note that you can remove fields that you don’t want to use.
    3) Open up the form-functions.php file in the inc/form folder.
    4) Change the block of code starting on line 32 to this:

    
    if ( $event_meta['show_registrants_data'] && ! $doing_shortcode ) {
    	$registrants_data = $db->get_registrants_data( $event_meta );
    
    	global $rtec_options;
    
    	$title = isset( $rtec_options['attendee_list_title'] ) ? $rtec_options['attendee_list_title'] : __( 'Currently Registered', 'registrations-for-the-events-calendar-pro' );
    	$title = rtec_get_text( $title, __( 'Currently Registered', 'registrations-for-the-events-calendar-pro' ) );
    	$return_html = '<div class="tribe-events-event-meta rtec-event-meta"><h3 class="rtec-section-title">' . esc_html( $title ) . '</h3>';
    		$return_html .= '<table>';
    		foreach ( $registrants_data as $registration ) {
    			$return_html .= '<tr>';
    			foreach ($registration as $key => $value ) {
    				if ( $key === 'custom' ) {
    					$custom_data = maybe_unserialize( $value );
    					if ( is_array( $custom_data ) ) {
    						foreach ( $custom_data as $custom_key => $custom_value ) {
    							$return_html .=  '<td>' . esc_html( $custom_value ) . '</td>';
    						}
    					}
    				} else {
    					$return_html .=  '<td>' . esc_html( $value ) . '</td>';
    				}
    			}
    			$return_html .=  '</tr>';
    		}
    		$return_html .= '</table>';
    	$return_html .= '</div>';
    }

    Like I said it will be rough but should get you started! I’ll have to look into making this easier in a future update.

    Awesome. Thanks so much. I’ll give it a go.

    Worked like a charm – thanks again

    Event Registration

    Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Ahh it looks very nice! Glad I could help you out. That should be more convenient than exporting and then copying and pasting.

    Have a great weekend!

    Plugin Author roundupwp

    (@roundupwp)

    Sorry for the wrong user name here. I also have a plugin with Smash Balloon.

    Have a great weekend!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Show Who’s Attending’ is closed to new replies.