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
/**
* Loop Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
*
* @package Event Espresso
* @subpackage templates
* @since 4.6.29
* @author Darren Ethier
*
* Template Args that are available in this template (yarr!)
* @type EE_Attendee[] $contacts
* @type EE_Event $event
* @type EE_Datetime|null $datetime an EE_Datetime object will be available if the the datetime_id attribute is set in the shortcode and the id matches a valid datetime.
* @type EE_Ticket|null $ticket an EE_Ticket object will be available if the the ticket_id attribute is set in the shortcode and the id matches a valid ticket.
* @type bool $show_gravatar whether to show gravatar or not.
*/
<?php
/**
* Loop Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
*
* @package Event Espresso
* @subpackage templates
* @since 4.6.29
* @author Darren Ethier
*
* Template Args that are available in this template (yarr!)
* @type EE_Attendee[] $contacts
* @type EE_Event $event
* @type EE_Datetime|null $datetime an EE_Datetime object will be available if the the datetime_id attribute is set in the shortcode and the id matches a valid datetime.
* @type EE_Ticket|null $ticket an EE_Ticket object will be available if the the ticket_id attribute is set in the shortcode and the id matches a valid ticket.
* @type bool $show_gravatar whether to show gravatar or not.
*/
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?
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
<?php
/**
* Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
*
* @package Event Espresso
* @subpackage templates
* @since 4.6.29
* @author Darren Ethier
*
* Template Args that are available in this template
* @type EE_Attendee $contact
* @type bool $show_gravatar whether to show gravatar or not.
*/
if ( $show_gravatar ) {
$gravatar = get_avatar( $contact->email(),
(int) apply_filters( ‘FHEE__loop-espresso_attendees-shortcode__template__avatar_size’, 32 )
);
} else {
$gravatar = ”;
}
$user = get_user_by( ’email’, $contact->email() );
?>
<?php do_action( ‘AHEE__content-espresso_event_attendees__before’, $contact, $show_gravatar ); ?>
<?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);
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.
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”>
<div class=”row”>
<?php FLTheme::sidebar(‘left’); ?>
<div class=”fl-content <?php FLTheme::content_class(); ?>”>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part(‘content-espresso_events’); ?>
<?php endwhile; endif; ?>
<b>RSVP List:</b>
<?php
/* pnp Only show rsvp list for private events to members */
if ( display_protected_content() ) {
echo do_shortcode(“[ESPRESSO_EVENT_ATTENDEES show_gravatar=true]”);
} else {
echo display_members_only_msg() . ‘<br>’;
}
/* pnp Only show cancel rsvp button to logged in users */
if (is_user_logged_in() ) {
?>
Cancel My RSVP
<div class=”expando” id=”Expando1″>
<!– start pnp Test for user cancel email button –>
<br>If you need to cancel your RSVP/Ticket, please indicate any special instructions below.<br>
Free RSVP’s can be cancelled anytime. Paid events can be cancelled per our cancellation policy timeframe.<br>
<br>
<form method=”post”>
Special Instructions: <textarea name=”instructions” rows=”5″ cols=”40″></textarea><br><br>
<input type=”submit” name=”cancelrsvp” id=”cancel_rsvp_button” value=”Cancel RSVPs” /><br><br>
</form><br>
</div>
<?php
/* run the function when the submit button is pressed */
if(array_key_exists(‘cancelrsvp’,$_POST)){
cancelrsvp();
/* and then scroll to this text */
?>
</div>
<br><b><div id=”rsvpcancel” >A request to cancel your RSVPs to this event has been sent.<br>
Please allow up to 24 hours for your request to be processed.<br><br>
Thank You.<br></b>
<br><br><br><br><br><br><br>
</div>
<script type=”text/javascript”>
location.href = “#”;
location.href = “#rsvpcancel”;
</script>
<?php
}
/* end pnp Test for user cancel email button */
}
FLTheme::sidebar(‘right’); ?>
Okay, this file is causing the error. It might be from the FLTheme items.
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?
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.
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.
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.
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.
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.