Forum Replies Created
-
@vapvarun Thanks, but would you trust a plugin which is not updated over 2 years of time?
Thanks, done: https://buddypress.trac.wordpress.org/ticket/8298#ticket
Hi @iamthewebb,
Thank you for your reply. Well, the reviews aren’t great and the plugin isn’t updated in 2(!) years. So I won’t touch that with all possible vulnerabilities with an outdated plugin. Also WP Mail SMTP has +x10 more users than the Sendgrid plugin.
Thanks for pointing that plugin out though.
Thanks @vapvarun I will have a look into this. Using the default wp_mail() settings seems to work now, but it’s not a final solution for me since I want to use an external mail provider.
Have added it to my to do’s to dive into it.
I am probably not the only one with this error. No one knows how to solve this?
Quick update: once I deactivate the WP Mail SNTP plugin which I have set up with Sendgrid the emails of BuddyPress start working again.
So it seems because because WP Mail SMTP Reconfigures wp_mail() BuddyPress mails gets broken or something.
Still have no clue why it isn’t working with WP Mail SMTP.
Bump, I can’t be the only one having such problems. Right?
Well, it turns out it has something to do with the
do_action( 'bp_member_header_actions' );
action. That one breaks when the code above is active. Still don’t understand why.Oh man, was breaking my head about this one for the past days. But found the solution, of course the answer was right there. I forgot to exclude admins and mods in the loop. Don’t understand why they would be excluded in the first place.
There is the complete code, including to get xProfile fields for anyone that is interested:
<?php $args = array( 'group_id' => bp_get_group_id(), 'exclude_admins_mods' => false ); if ( bp_group_has_members( $args ) ) : ?> <ul id="member-list" class="item-list"> <?php while ( bp_group_members() ) : bp_group_the_member(); ?> <?php $user_id = bp_get_group_member_id(); ?> <li> <span class="avatar"> <a href="<?php bp_group_member_domain(); ?>"> <?php bp_group_member_avatar_thumb(); ?> </a> </span> <span class="name"> <a href="<?php bp_group_member_domain(); ?>"> <h4><?php bp_group_member_name(); ?></h4> </a> </span> <span class="platforms"> <?php $user_psn_handle = bp_get_profile_field_data('field=PSN handle&user_id='.$user_id); ?> <?php if($user_psn_handle): ?> <i class="icon saturated standalone platform psn"></i> <?php endif; ?> <?php $user_xbox_handle = bp_get_profile_field_data('field=XBOX handle&user_id='.$user_id); ?> <?php if($user_xbox_handle): ?> <i class="icon saturated standalone platform xbox"></i> <?php endif; ?> </span> <span class="actions"> <a class="button small" href="<?php bp_group_member_domain(); ?>"> <?php esc_html_e('View profile', 'mvp'); ?> </a> </span> </li> <?php endwhile; ?> </ul> <?php else: ?> <div id="message" class="info"> <p><?php _e( 'No members were found.', 'buddypress' ); ?></p> </div> <?php endif; ?>
A link in this documentation gives a 404: https://codex.buddypress.org/developer/loops-reference/the-group-members-loop-bp_group_has_members/ – see Accepted Parameters – group_id required link to “bp_has_groups() loop”.
This is my code at the moment:
<?php $args = array( 'group_id' => bp_get_group_id() ); if ( bp_group_has_members( $args ) ) : ?> <ul id="member-list" class="item-list"> <?php while ( bp_group_members() ) : bp_group_the_member(); ?> <li> <span class="avatar"> <a href="<?php bp_group_member_domain(); ?>"> <?php bp_group_member_avatar_thumb(); ?> </a> </span> <span class="name"> <a href="<?php bp_group_member_domain(); ?>"> <h4><?php bp_group_member_name(); ?></h4> </a> </span> <span class="actions"> <a class="button small" href="<?php bp_group_member_domain(); ?>"> <?php esc_html_e('View profile', 'mvp'); ?> </a> </span> </li> <?php endwhile; ?> </ul> <?php else: ?> <div id="message" class="info"> <p><?php _e( 'No members were found.', 'buddypress' ); ?></p> </div> <?php endif; ?>
Any help appreciated. I’m stuck here.
Hi there,
Is there are also a function to show the notices somewhere else for the legacy theme?
Thanks in advance.
JustinLet me add this to make my question more clear:
Now it’s like @{username} and I would change that to just a xProfile field like {Gamertag} so always show another field without the @.
After soong some more research I think I go with the plugin from BuddyDev to make it possible for people to change their username.
1) There are a couple of downsides: username will not be linked to profile at past activity. And SEO score will get lost. If anyone has a solution for this please let me know.
2) I want to change the way the username is shown on the site. Now it’s like: @username. I’m building a gaming community and also want a clantag before the name if that is filled in their profile. Is there some function to change this sitewide?
Thanks @vapvarun
Is there any way to get around this for now as far as you know?
Appreciate your replies.
Well, it seems
Uncaught Error: Call to undefined function bp_is_member()
is also not correct.Perhaps the correct function is
bp_is_user
?Oh, lol. Stupid mistake. Thanks!
Yes, of course. It’s because you need a template in your theme which BuddyPress uses to load the content. This is the list of templates: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
So I do now have buddypress.php template file in my theme which BuddyPress uses to display content.
Ok, after 2 hours of research I’v asked this question. 12 mins later I solved it. So never mind!
Correction: even when I disable my /theme/buddypress/ folder the page.php is loaded and BuddyPress is loaded in the_content();