Posted: February 28, 2023 at 5:58 am
I’m currently using PaidMembershipPro for profiles. I’m looking to change profiles to BuddyBoss. How do I get the attendee list to hyperlink to the BuddyBoss profile instead of the PaidMemebershipPro profile page? |
|
This is what in my child theme for attendees. These are 2 separate files. Is there anything in here that custom… directing to PaidMembershipPro page? <?php $no_attendees_message = apply_filters( ‘FHEE__loop-espresso_attendees-shortcode__template__no_attendees_message’, __(‘No Attendees Yet’, ‘event_espresso’ ) ); ?> <div class=”event-attendees”> <?php else : ?> <?php $no_attendees_message = apply_filters( ‘FHEE__loop-espresso_attendees-shortcode__template__no_attendees_message’, __(‘No Attendees Yet’, ‘event_espresso’ ) ); ?> <div class=”event-attendees”> <?php else : ?> |
|
Hi there, Which specific link are you referring to that directs users to PaidMembershipPro? We don’t integrate with any specific membership plugin so I’m wondering if PMP is hooking into something we use an altering the link. |
|
https://htxoutdoors.com/events/htxo-sand-volleyball-social-26/ You can’t see the hyperlink unless you’re logged in. On this event, scroll to the bottom. It shows the name of each person attending the event. When logged in, members names show as a hyperlink and it takes them to the PaidMembershipPro profile page. I want to change that to a BuddyBoss profile page. Can you see how it’s adding a hyperlink? |
|
Can you send me temp login credentials for a test account I can view the link on? If so you can use this form: https://eventespresso.com/send-login-details/ A screenshot may help but if I don’t recognise the output the page source is best. https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Ok, so above it looks like you’ve added the content of The link looks like its generated within Can you add the content of that file? |
|
Darn, I thought I was looking at that one too! haha. Thanks, that’s what I needed. |
|
Awesome, I’m glad that helped 🙂 |
|
Just noting that I have removed the credentials you sent over, you ca delete the temp account created for me above 🙂 |
|
Okay, now that I got the other part fixed, now my attendees are not showing up on the event anymore. #1 – is there an easy way to get attendees to show up on the event? We only want them to show if the user is logged in. And then we link to their profile. #2 – if now, here is the code that we were using. I had it in Beaver Builder Child theme. I moved it to Buddy Boss child theme and it’s not working. Nothing shows up on the event at all. File – content-espresso-event-attendees.php /* pnp show user nice name if a site user and link to their profile */ /* echo $gravatar . ‘ ‘ ; if ( $user instanceof WP_User ) { echo $user->user_nicename , ‘ ‘; echo ‘<a href=”‘, get_site_url(), ‘/profile/’, ‘/?pu=’, $user->user_login , ‘”>’ , $user->user_login, ‘‘; } else { echo $contact->full_name(); } */ // show just first name and only link to profile when logged in. echo $gravatar ; // . ‘ ‘ ; if ( $user instanceof WP_User ) { // $user_info = get_userdata($user); if ( is_user_logged_in() ) } else { /* pnp end */ <?php do_action( ‘AHEE__content-espresso_event_attendees__after’, $contact, $show_gravatar ); ?> |
|
I was able to add the shortcode to the event description and the code above is adding the hyperlink. The Gravatars are not showing up and also I want this to come up as permanent section of the event. Like how the Venue section is “hard coded” to show on events. This is how this code worked before my updates. You can see the work around on this event, but not logged in you won’t see the hyperlinks. |
|
Okay, this file is causing the error. It might be from the FLTheme items. Can you see anything outdated for EE? With your other fix, I don’t need the cancel part anymore so I’m just trying to get the RSVPs in there. <?php get_header(); ?> <div class=”container”> <?php FLTheme::sidebar(‘left’); ?> <div class=”fl-content <?php FLTheme::content_class(); ?>”> Cancel My RSVP /* to prevent XSS hacks */ function cancelrsvp() $message2 = “”; /* loop through posts – !I think you can use $event_id to refer to event !!! */ /* get the date of the event in a readable format */ /* send out the email to all administrators */ ‘; } /* run the function when the submit button is pressed */ /* and then scroll to this text */ </div> |
|
If your getting fatal errors then yes, it will be from the FLTheme functions as that won’t exists in your buddy press theme so you’ll get a fatal error. What is happening on the site with that file? A white screen? |
|
Yes, the white screen with fatal error message. Can you think of way to get the RSVPs to show so it’ll be a section like venue is section on all events? |
|
Is that what the above template did? If so you just need to modify the template so it works with your current theme. |
|
Yes, that’s what above did. I understand that it needs to be modified but I can’t figure out how to modify it. EE automatically adds components to the event pages… like People, Venue, etc. How do you do that? I just need to add the attendee short code there. |
|
Its don’t via filtering the_content to inject the templates on the fly. Or if you have template files such as You mentioned the people add-on, so if you’d like to see how the people add-on injects details into the content, take a look in:
But you’re already loading your own custom templates from the above by the looks of it. Which site is this? If you can send temp login details over again I’ll take a look. |
|
I’ve been on with IT support for 6 hours just trying to restore staging. As soon as I get it back, I’ll send you an update to login. There should be somewhere I can just add Shortcode. I can add it to beaver builder block but that’s manual for every event. I just need to figure out how to get it on template. |
|
This is the last piece in weeks worth of issues! 😀 Which oddly enough, was the first issue that started this whole process. |
|
You’re already using custom templates, that’s why your running issues, because your custom templates have been edited to use theme-specific functions. I need to know how your content is loading to be able to advise further. |
|
I’m sure anymore. I have several files in the child theme. But I just removed them and the data seems to be appearing the same way as with them in the child theme. file – content-espresso-event has the following code. Is there code like this for events attendees? In the regular area… Events –>> Templates I had to change “Use Customer Display Order” from No to Yes. So it appears the custom coding for that is not working. <?php espresso_get_template_part( ‘content’, ‘espresso_events-details’ ); ?> |
|
Also, I don’t think I’m using People the way you do. We use People for our Event Leaders Only. Our regular members are just users. So the shortcode [ESPRESSO_EVENT_ATTENDEES show_gravatar=true] works but I want the same thing to pull through on the template. |
|
I’ve gotten this to work also. I found the core Single Events file and started copying it in the theme piece by piece. The entire file didn’t work for some reason. Then I slowly added in my custom code from the prior theme. To get the RSVPs in, I used the following code. <?php The other sections I’m bringing in using the following but I couldn’t figure out if this existed for attendees. I tried replacing tickets with attendees, attendee, user, users, wpuser, to no avail. Then I went with the shortcode above. <?php espresso_get_template_part( ‘content’, ‘espresso_events-tickets’ ); ?> |
|
Using ESPRESSO_EVENT_ATTENDEES sets up various objects and then calls the template file, passing it those objects because parameters set on the shortcode itself so you can’t just call the template directly. |
|
How do I hire you for additional help? I tried codeable that was referenced here but they wanted to charge me $700 for this fix. I have no coding experience and figured it out. But would love to do all of this faster. Quite honestly, you’re the only I trust right now. |
|
The support post ‘Profile Links for Attendee List in Event’ 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.