Support

Home Forums Event Espresso Premium event espresso list ateendee inside a full calendar

event espresso list ateendee inside a full calendar

Posted: March 16, 2015 at 12:59 am

Viewing 5 reply threads


Francisco Delia

March 16, 2015 at 12:59 am

Can anyone help me to finish my custom functions . I need the user ID within this atteendee table , with so I will be able to identify the logged in User and come across this table to change the events of the background color paid for it.

If someone want to see click on the link :
Login as : member / member
https://supfusion.com/events/sup-yoga/


Lorenzo Orlando Caum

  • Support Staff

March 16, 2015 at 10:12 am

Hi, I see that you have a sample list of attendees here:

http://cl.ly/image/3f1y071k0t1q

Are you wanting to get the user ID for each of the attendees?


Lorenzo


Francisco Delia

March 16, 2015 at 10:42 am

Yes, i just wan’t to get the user ID in front of the UserName like this ex (10 – Member Member) after that i can to modify the background color of the member had booked. Tks


Dean

March 17, 2015 at 1:55 am

Hi,

If you are using the Attendee List, you can modify the /wp-content/plugins/event-espresso/templates/attendee_list.php and use the WP function http://codex.wordpress.org/Function_Reference/get_user_by

This is an example snippet from attendee_list.php where within the attendee list output, it grabs the User object based on the attendee email address and then outputs the users ID: http://pastebin.com/SrF2ipAL


Francisco Delia

March 17, 2015 at 12:36 pm

Ok, I did what you said, but isn’t worked like I wanted. If the user member change his email after booked i can’t get this user_id.


Dean

March 18, 2015 at 3:12 am

Hi,

If you are using the WP User Integration addon, you could do a check against the wp_events_member_rel table, which logs events registered by logged in users.

If you are not using that addon or your users are registering without being logged in, then there is no tracking done between user and attendee, so the best you could do is base the check off of email, name, or a combination of both.

Viewing 5 reply threads

The support post ‘event espresso list ateendee inside a full calendar’ 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