Support

Home Forums Event Espresso Premium Associate an event with a user with the Add Attendee button

Associate an event with a user with the Add Attendee button

Posted: December 7, 2012 at 1:33 pm

Viewing 0 reply threads


Noah Purves-Smith

December 7, 2012 at 1:33 pm

I have solved this, but wanted to post this for communal knowledge.

In espresso-members/my_events_page.php it searches for events based on user ID instead of user email (which is equally unique). So I just switched the variables to $current_user->user_email instead of $current_user->ID in the SQL, lines 53 and 59.

53 should be changed to this:

$wpdb->get_results("SELECT id FROM ". EVENTS_ATTENDEE_TABLE . " WHERE email = '" . $current_user->user_email . "'");

and the SQL starting on 55 should include a.email and end with a WHERE statement:

WHERE a.email = '" . $current_user->user_email . "'");
Viewing 0 reply threads

The support post ‘Associate an event with a user with the Add Attendee button’ 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