Hi,
Please check this link: https://wordpress.stackexchange.com/questions/90311/turn-off-admin-emails-for-new-user-registrations
You can paste the code in your child theme’s functions.php or can use code snippets plugin.
Thanks
Hello,
You can use this plugin for showing the ID in the dashboard.
Show IDs by 99 Robots
and you may add following code to your theme’s functions.php to show the ID on user profile when the user is viewing his/her own profile or it is being viewed by the site admin.
/**
* Show User ID on a user's profile to the profile owner or Administrator.
*/
function bidboy_show_displayed_user_id() {
if ( bp_is_my_profile() || is_super_admin() ) {
echo 'ID: ' . bp_displayed_user_id();
}
}
add_action( 'bp_before_member_header_meta', 'bidboy_show_displayed_user_id' );
Best Regards
B
Hi,
BuddyPress works on top of WordPress to add community/social features. The integration is almost seamless.
Now to answer your questions:-
1. will my members have to login a second time to use BuddyPress?
Is the login required by WordPress account? if yes, They will not need to login again.
2. Will that they then have two accounts to deal with?
No, It is only one account.
Give it a try, BuddyPress should be simple enough to use.
Best Regards
B
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).
@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!
Hi,
Normally it should work in bp-custom.php but if you are not able to run the code you can use this plugin https://wordpress.org/plugins/bp-custom-functionalities/. Using this plugin you can easily exclude any user role(administrator. subscriber etc.) from members directory.
Thanks
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
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
Hey, Buddies.
We’re hosting a networking-site and would like to use full names all throughout the site, meaning first and last name, both stored in the wordpress- and extended profile-fields. Is there any way to change the display name (in “Who’s online”, “Activity” and the likes) from User-/First-Name to full names?
Thanks a lot!
Hi,
Please consult once with your hosting provider regarding the issue. Also, you can try setting up this plugin https://wordpress.org/plugins/wp-mail-smtp/ and then try sending emails.
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;
}
I have zero BuddyPress experience, and very little WordPress experience; I think it’s important to open with that.
For some reason, my activation emails are not sending. All of the other email types seem to work just fine. I have attempted a few things to correct this after searching for solutions, to include creating a new activation email, and what is listed here: https://buddypress.org/support/topic/buddypress-3-1-0-is-now-available/.
I just set up the site today, so I am using the latest version of both WP and BP. I am using the Kleo theme, if that is of any use. I am also using GoDaddy’s managed WP hosting, if that is of any use. Any assistance would be greatly appreciated, thank you for your time.
I have a WordPress site with budypress and Paid/Free memberships created with PMPro (Paid Membership Pro)
I would like to have this functionality
1. Only Paid members can send Private Messages to other members
2. Free Members who are messaged by paid members can reply. Free Members cannot compose new messages only answer if previously they have been contacted)
Anyone can help?
Hi,
Have you assigned that template to register page in pages section? Just create a template like this https://www.cloudways.com/blog/creating-custom-page-template-in-wordpress/ and then try.
Thanks
I want to use Custom made page.php template for buddypress registration page, but if I use it from child theme folder, or child theme buddypress folder, it does not affect the buddypress registration page.
I need a page without wordpress header, footer, sidebar and many other things.
How to do it?
Hello, what I’m looking to do is add info about a member from their profile fields just as job title or location, on their “member card” when viewing the page of all members.
Instead of job title, we have a field for “Talents” and would like members to be able to list that and their location.
Curious also, if that could be a toggle option, to display or not, or if it will have to be all or nothing.
Hopefully, this shareable link to view a screenshot of the page will work. The members ‘last active’ info is no longer listed, as I recently wrote in to get help to hide that.
Thank you in advance!
https://drive.google.com/file/d/1th2NUqBhPnrTNOBkf0fUDRiY6E6IN81G/view?usp=sharing
Wordpress version = 4.9.8
BuddyPress version = 3.2.0
What they said regarding this issue? Can you please test once by setting SMTP https://wordpress.org/plugins/wp-mail-smtp/
Thanks
Better will be cloning it on any staging environment or localhost and then test here.
Please use https://wordpress.org/plugins/updraftplus/ plugin for backup and restore.
Thanks