Have now determined this is a theme issue not Buddypress so this can be closed.
@alwaysalready – thanks for posting your solution.
Perhaps you could convert your blog article into a page in the codex.
I found a way to resolve this problem using a mixture of ideas others have shared (including @6logics and @loveplove). I’ve put the details in a blog post here. In summary, what worked for me was the following in the bp-custom.php file:
// Set BP to use wp_mail
add_filter( 'bp_email_use_wp_mail', '__return_true' );
// Set messages to HTML
remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
add_filter( 'wp_mail_content_type', 'set_html_content_type' );
function set_html_content_type() {
return 'text/html';
}
// Use HTML template
add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 );
function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) {
if ( ! did_action( 'bp_send_email' ) ) {
return $content;
}
return $bp_email->get_template( 'add-content' );
}
//Optionally remove the filter above after it's run
remove_filter('wp_mail','redirect_mails',20);
// Optionally change your email address
add_filter('wp_mail_from','noreply_from');
function noreply_from($from) {
return 'noreply@YOUR_DOMAIN.org'; //Replace 'YOUR_DOMAIN.org' with email address
}
// Optionally change your from name
add_filter('wp_mail_from_name','noreply_from_name');
function noreply_from_name($name) {
return 'YOUR_DOMAIN No-Reply'; //Replace 'YOUR_DOMAIN No-Reply' with the from name
}
I found a way to resolve this problem using a mixture of ideas others have shared elsewhere. I’ve put the details in a blog post here. In summary, what worked for me was the following in the bp-custom.php file:
// Set BP to use wp_mail
add_filter( 'bp_email_use_wp_mail', '__return_true' );
// Set messages to HTML
remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
add_filter( 'wp_mail_content_type', 'set_html_content_type' );
function set_html_content_type() {
return 'text/html';
}
// Use HTML template
add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 );
function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) {
if ( ! did_action( 'bp_send_email' ) ) {
return $content;
}
return $bp_email->get_template( 'add-content' );
}
//Optionally remove the filter above after it's run
remove_filter('wp_mail','redirect_mails',20);
// Optionally change your email address
add_filter('wp_mail_from','noreply_from');
function noreply_from($from) {
return 'noreply@YOUR_DOMAIN.org'; //Replace 'YOUR_DOMAIN.org' with email address
}
// Optionally change your from name
add_filter('wp_mail_from_name','noreply_from_name');
function noreply_from_name($name) {
return 'YOUR_DOMAIN No-Reply'; //Replace 'YOUR_DOMAIN No-Reply' with the from name
}
I found a way to resolve this problem using a mixture of ideas, including the suggestions from @bharat and @vbnr. I’ve put the details in a blog post here. In summary, what worked for me was the following in the bp-custom.php file:
// Set BP to use wp_mail
add_filter( 'bp_email_use_wp_mail', '__return_true' );
// Set messages to HTML
remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
add_filter( 'wp_mail_content_type', 'set_html_content_type' );
function set_html_content_type() {
return 'text/html';
}
// Use HTML template
add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 );
function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) {
if ( ! did_action( 'bp_send_email' ) ) {
return $content;
}
return $bp_email->get_template( 'add-content' );
}
// Optionally change your email address and from name.
add_filter('wp_mail_from','noreply_from');
function noreply_from($from) {
return 'noreply@YOUR_DOMAIN.org'; //Replace 'YOUR_DOMAIN.org' with email address
}
add_filter('wp_mail_from_name','noreply_from_name');
function noreply_from_name($name) {
return 'YOUR_DOMAIN No-Reply'; //Replace 'YOUR_DOMAIN No-Reply' with the from name
}
How can I set the user’s register name as display name?
I’ve the latest version of wordpress and buddypress.
You could override the template to showcase your own unique one. Here’s some more info on it.
Theme Compatibility & Template Files
BuddyPress uses its own email api.
This codex page has info re customization.
Emails
Just create WP pages and leave them blank.
Then assign them on the screen shown in your shared img.
Register and Activation Pages
Exposing every aspect as an option is untenable.
You need to adjust a template file.
The file in question depends on which BP template pack you are using.
Go to wp-admin > Settings > BuddyPress > Options and note the setting for the Template Pack option.
If you are using Nouveau, then this is the file:
wp-content\plugins\buddypress\bp-templates\bp-nouveau\buddypress\activity\index.php
In that file, find this: <?php bp_get_template_part( 'activity/post-form' ); ?>
And change it to this:
<?php
if ( ! bp_is_user() ) {
bp_get_template_part( 'activity/post-form' );
}
?>
Note: it is recommended that you do not edit the template files in the BuddyPress plugin.
Your changes will be wiped out when you update the plugin on a new release.
Instead, create a template overload and then edit that file.
More info re template overloads:.
Hi All,
Bit of a BuddyPress n00b here. I’m looking to edit the ‘Activity’ section when a user goes to their profile page so that they can’t post status updates. While I’m not specifically asking how to do this, I have a more n00bish question.
In order to edit something like what I’ve mentioned above, I’ve gone through the back-end of WP and looked at all WP settings in the admin area. Generally with other plugins I have, basic functionality changes are options that one can change in the WP admin area. Is this not the case with BuddyPress? Unless I’ve completely missed something simple, does this mean that a small functional change as I’ve mentioned above will require direct code amendments to specific files?
Thanks for the help/info.
I have to hide some nav menus of bp users’ profile page from other users. I using the following function to do so. That was working fine.
/* BuddyPress profile nav menu restrictions */
function bpex_hide_profile_menu_tabs()
{
if (bp_is_active(‘xprofile’)) :
if (bp_is_user() && !bp_is_my_profile()) {
// BP’s profile main menu items. Comment those to show.
// bp_core_remove_nav_item( ‘activity’ );
// bp_core_remove_nav_item(‘profile’);
bp_core_remove_nav_item(‘friends’);
bp_core_remove_nav_item(‘groups’);
// exist only if you use bbPress
bp_core_remove_nav_item(‘forums’);
// bp_core_remove_nav_item(‘activity’);
bp_core_remove_nav_item(‘following’);
bp_core_remove_nav_item(‘followers’);
bp_core_remove_nav_item(‘bookmarks’);
bp_core_remove_nav_item(‘activity’);
// BP’s profile main menu items. Comment those to show.
bp_core_remove_subnav_item(‘activity’, ‘personal’);
bp_core_remove_subnav_item(‘activity’, ‘friends’);
bp_core_remove_subnav_item(‘activity’, ‘groups’);
bp_core_remove_subnav_item(‘activity’, ‘following’);
bp_core_remove_subnav_item(‘activity’, ‘feed’);
}
bp_core_remove_subnav_item(‘activity’, ‘mentions’);
bp_core_remove_subnav_item(‘activity’, ‘favorites’);
endif;
}
add_action(‘bp_init’, ‘bpex_hide_profile_menu_tabs’, 15);
I have this navigation menu for the bp user on the header by default. When I am viewing other’s profiles the nav menus inside the user’s header menu also get hidden.
Is there any other ways to do this.
I am using the latest version of WordPress 5.4.2, BuddyPress 6.0.0, and BuddyX Theme 1.3.7.
Hello,
I am working on a subdomain for a client: https://forum.secretsofpakistan.com/
I put a few public Groups on the Homepage, but I can only click on them when I am logged in to the WP site.
When I am logged in, I can visit https://forum.secretsofpakistan.com/groups/uk-nationals-in-pakistan/ e.g. but whoever is not logged in will land on the Homepage of the website.
I already went to Settings – Permalinks and selected “Post Name”.
WordPress Version 5.4.2
BuddyPress Version 6.0.0
Theme Aardvark
Does anyone has an idea how to make the Group pages visible for non-logged in visitors?
adding menu link is not enough, displaying notification will need modification inside header file you can checkout following thread
Creating links to BP specific pages via functions.php
@cmsplay password is not part of the extended profile, it’s core wp
You can also change your password from profile from your BuddyPress profile tabs Setting >> General
Your theme’s grimlock-buddypress plugin set style of the BuddyPress select form with no wiggle room for the font-size they set on the select options. Following is a quick fix. You should ask your premium theme author where you should add the style fix as we have no access to the paid theme. The theme author should provide you with free support for the premium theme.
#buddypress .standard-form select {
padding: .3rem 1.25rem;
}
Hi,
I am using this code to pull social links from xprofile fields into the users profile header:
function bpfr_socialize_profile () {
echo '<br>'; // don't remove !
if ( $data = bp_get_profile_field_data( 'field=Twitter ' ) ) :
?>
/" target="_blank" title="Twitter"><i class="icon-twitter"> </i>Test Twitter
<?php endif;
I am looking to do the same but with custom urls. So for instance if they type in Buddypress.org, that text will appear in the header and link to the website. I am no coder and with a few tweaks of above code, I can get it to show the url, but only with the text that I choose myself displayed in </i>Test Twitter. I want the text which the user types in to appear. I have searched some tutorials and tried a few different options but nothing works, I wish I could code! 😀 Hopefully this is easy enough. Can anyone help?
EDIT: If its easy enough, I would prefer the text to show in a form of a button, but text will do for now.
Thanks in advance.
Chuck.
@angierose You need to provide more info about your installation for us to help you. https://buddypress.org/support/topic/when-asking-for-support-2/
> how to get the excerpt from a blog post to appear in the BuddyPress activity stream without displaying the Divi Shortcode.
@angelajean Excerpts of published blog posts do appear in the BP activity stream naturally in any theme, and any blog URL you post in the status update in the activity stream has a very nice excerpt as well, so not sure why you would need a plugin for showing blog excerpts using Divi. .
Unfortunately, Divi’s a premium theme that we don’t have access to so I would have to refer you back to that theme’s support forums where you could ask them why you need to add/buy a plugin to show a normal blog excerpt in your activity stream.
I am trying to figure out how to get the excerpt from a blog post to appear in the BuddyPress activity stream without displaying the Divi Shortcode. I wrote to Elegant Themes and they want me to add yet another plugin. My website is already plug-in heavy and I am trying to avoid future conflicts. I am sure there must be a simpler fix.
You can see an example of what I am talking about here: https://www.notyouraverageamerican.com/activity/
Scroll down to the post Your Ecuador Pre-Trip To-Do List.
PS – I am not a coder.
Hi,
Is there a way to stop users being able to tick the checkbox and use weak passwords while updating their password through BuddyPress? I have googled and found various answers of how to enforce strong passwords, and also code to remove the option to allow it, but for WordPress, not specifically BuddyPress. However, none of the things I have tried have worked.
I’m even struggling to hide it uses CSS and using !important as it is overridden.
I am using the latest WordPress/BuddyPress and the Woostify theme. My website is https://segauniverse.com, however you need to be registered to access BuddyPress (under Community/SEGA Chat).
I don’t want users to be able to select a weak password, as they can select a 1 letter password or basic word, and i think this is a security risk.
Thanks
I have systematically disabled all plugins except WP and re-enabled 1 by 1. It turns out the root cause of the problem was the ‘Paid Memberships Pro – BuddyPress Add On’ plugin. When i enable this, users cannot create or join groups.
Do you know how i resolve this going forward, as i may wish to use this plugin in the future?
Regards
That was the First, what we did yesterday.
In some parts of buddypress IT’s the correct time like the overwie page from the notifications. Also the time in the database from messages ist correct.
I am using WordPress 5.4.1 and BuddyPress v 6.0