WP Mail SMTP seems to be a well-written plugin. I’ve taken a quick look at its code, and how it affects what WordPress does, and it looks like BuddyPress – in theory – should work with it. However, if you say it doesn’t, I don’t know why – you’d have to spend time debugging what is going on.
If you know some PHP and basic WordPress development, I can give you some pointers (e.g. start looking at the phpmailer_init hooks and how both plugins add to it).
No need to try to un-hook where BuddyPress adds it. The body_class filter passes an array of class filters. I’d just filter it, and find and unset the no-js class you don’t want.
Nope. Try it and if you find an issue with BuddyPress after doing so, then start a discussion.
@whoweez This old code sample does nothing much at all. I’m not sure what the intent was, this is basically debugging. To answer your specific question:
I thought “__return_false” on “bp_email_use_wp_mail” should prohibit any BP emails from being sent in the first place as the new class should handle the email sending process…?
If that filter returns true, then BuddyPress generates a plain text version of the email, and calls WordPress’ wp_mail() function. By default, this is false, but it returns true if wp_mail_content_type() has been configured for HTML, or if wp_mail() has been redeclared (it’s a pluggable function).
That last bit is key. A lot of email plugins for WordPress re-declare wp_mail(), so for BuddyPress to use those plugins, the default behaviour is to send that plain text version of that email.
If bp_email_use_wp_mail return false, then it creates a BP_Email_Delivery object, which is what that second filter is changing, which delivery class BuddyPress uses. Inside that class’ bp_email() method is where you would create a custom integration with your Sendmail plugin (or however you approach that integration).
FILE: /var/www/test.site/wp-content/plugins/buddypress/cli/features/bootstrap/utils.php
---
FOUND 1 ERROR AFFECTING 1 LINE
---
426 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
BuddyPress 3.2.0
PHP Compatibility Checker 1.4.6
Hi @djpaul,
I’m playing around with the above code, but adding it to the functions.php file does not prohibit the buddypress email from sending!?
Furthermore, using sendgrid’s plugin and provided transactional template ID field does not solve anything as only the template without any buddypress/or wordpress related email content is sent – due to no relational placeholders set.
My aim is to use a custom transactional template at sendgrid for all wordpress and buddypress related content, but from some of your conversations on this I thought “__return_false” on “bp_email_use_wp_mail” should prohibit any BP emails from being sent in the first place as the new class should handle the email sending process…?
Could you perhaps give more guidelines as to why buddypress emails are still sending with this implemented:
add_filter( 'bp_email_use_wp_mail', '__return_false' );
add_filter( 'bp_send_email_delivery_class', function( $delivery_class ) {
return 'Implementwpemailbp';
} );
class Implementwpemailbp implements BP_Email_Delivery{
public function bp_email(BP_Email $email){
//add_filter('wp_mail_content_type', 'set_html_content_type');
//wp_mail($to, $subject, $message, $headers = '', $attachments = array())
//remove_filter('wp_mail_content_type', 'set_html_content_type');
var_dump($email);
}
}
Really appreciate your help 🙂
Kind Regards,
Wzz
Hello,
I configured the WP Mail SMTP plugin, and tested it properly with their embedded test-email. This plugin is linked to a Gmail account. Whenever I send a mail, I can see a trace of it in my Gmail “sent box”.
But when someone registes to my site (using buddypress), I can see that the registration mails are sent through the old mail config (via my web host), not through WP Mail SMTP.
Is there anything I have to do to “tell” Buddypress to use WP Mail SMTP?
I’m using :
– Buddypress 3.2.0
– WP Mail SMTP 1.3.3
– WordPress 4.9.8
My website : http://www.merciki.be
Thanks in advance for your help!
BuddyPress does not include member galleries.
You should submit your issue to the creators of the plugin or theme that you are using for member galleries.
Three times now when deleting pending membership requests (using BuddyPress hosted on Bluehost) all of the images in all of the member galleries were deleted … with no trace. Any suggestions?! Thanks!
The page I need help with: http://eternalgarage.com
Please I would appreciate any help. I have tried to fix this no way. I have search, it seems no one is having this problem.
When you click on a username, it takes you to the profile but on the profile, there are buttons under, Home and view. It automatically goes to home and it is blank. You have to click on view before you see member bio.
I want it to go directly to showing member info.
Here is a screenhsot of how it looks: https://prnt.sc/ld0xqr
As you can see, the profile tab is active but there is a home under it aside from the home tab on the main menu.
I have changed to Buddy press theme Legacy and Nouveau, still same.
I have used the appearance > customize >Nouveau still the same.
How do I get ride of that home there and let it just display the profile of the person instead of blank?
Please I would appreciate any help. I have tried to fix this and search, it seems no one is having this problem.
When you click on a users name, it takes you to the profile but on the profile, there are button under, Mainly Home and view. It automatically goes to home and it is blank. You have to click on view before you see member bio.
I want it to go directly to showing member info.
Here is a screenhsot of how it looks: https://prnt.sc/ld0xqr
As you can see, the profile tab is active but there is a home under it aside from the hnome on the tab and it is blank.
I have changed Buddy press theme Legacy and the other one, still same.
I have used the appearance > customize >Nouveau still the same.
How do I get ride of that home there and let it just display the profile of the person instead of blank?
Hello,
I use buddypress on my site and for each signup, the member is obliged to confirm his mail.
But i want to disable this, i just want for my member they can signup and login immediatly, without confirmation?
How can i do that ?
Thanks u.
Hi,
You have to check current component using the function bp_current_component() and you can find the component list here https://codex.buddypress.org/developer/bp-is-active/
Thanks
Hi,
You need to find the file cover-image-header.php and override it in your child theme then just after the avatar code you have to call the function https://buddypress.org/support/topic/bp_get_profile_field_data-2/
Thanks
This is strange because this works for me really well with twenty-seventeen and BuddyPress.
Hello all,
I am wondering how I can call info from Custom Fields to be displayed beneath a users profile Pic.

Kevin
Hi,
You can use this function bp_get_displayed_user_fullname() to do so.
Also, please check these plugins: https://buddydev.com/plugins/bp-username-changer/ and https://wordpress.org/plugins/buddypress-usernames-only/
Hi, I’ve created an index page at /theme-child/buddypress/members/single/index.php
I would need to put “Change cover image” in this page.
I’ve pasted <?php bp_get_template_part( ‘members/single/profile/change-cover-image’ );?> but it only able to display:
“Change Cover Image
Your Cover Image will be used to customize the header of your profile.”
There is no uploader for me to perform the action. I got no idea why, anyone can save me from this problem please?
Hi
We have problem with Buddypress register form won’t take in the danish letters æøå.
Any suggestions? Maybe something with UTF?
My companies site is learn.blueworkforce.com
Versions:
Wordpress: 4.9.8
Buddypress: 3.2.0
Thanks in advance
@Commandrea – After adding the patch in Paid Memberships Pro – BuddyPress Add On, did the automatic friend requests disappear, or did you have to do something else to eliminate the automatic friend requests?
Hi, elizat801
It seems like your theme or any third party plugin is creating the issue there. It works fine with the default theme like twenty-seventeen.
You can take a backup of the site and then check by enabling default theme and if the button appears then certainly you have to ask your theme devs to check once. If the theme looks fine then try disabling plugins, except BuddyPress, one by one to check which one caused the issue.
Thanks
Ok, I found the problem. Clicking on Author’s names was actually linking to:
renderwars.xyz/author/michael
when it should have been linking to:
renderwars.xyz/members/michael
for buddypress to work properly I had to create a child theme and then add a redirect rule in the child themes functions.php file.
For anyone else with the same problem who might not be too good at php etc, here’s the instructins I found to help me:
Creating a child theme:
https://codex.wordpress.org/Child_Themes
and then putting this code in the function.php:
add_filter( 'author_link', 'change_author_link', 10, 1 );
function change_author_link($link) {
$username=get_the_author_meta('user_nicename');
$link = 'http://example.com/members/' . $username;
return $link;
}