Avatar doesn't show in #ATTENDEES list
-
Hi,
I have a list of attendees of a specific event. I only see bullet points before the username, but no avatar. How can I make it show the avatars?
I now use the following code:
foreach( $EM_Bookings as $EM_Booking){ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){ $people[] = $EM_Booking->get_person()->ID; echo '<a href='.bp_core_get_user_domain( $EM_Booking->get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) . "\r\n" . $EM_Booking->get_person()->get_name() . '</a>'; }elseif($EM_Booking->booking_status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){ echo '<a href='.bp_core_get_user_domain( $EM_Booking->get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) . "\r\n" . $EM_Booking->get_person()->get_name() .'</a>'; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Avatar doesn't show in #ATTENDEES list’ is closed to new replies.