I found that if I made this file directory in my theme (as per Theme Compatibility Codex) I could resolve the issue with the Compose field:
/buddypress/common/js-templates/messages/index.php
So for anyone else looking for messaging template changes. It’s located in:
plugins/buddypress/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
Anyone looking for the search field for members list, it’s located in:
/plugins/buddypress/bp-templates/bp-nouveau/buddypress/common/search/search-form.php
I want the “XXXX became a registered member” updates to stop appearing in my sitewide activity stream.
I tried using the code recommended in this thread: https://buddypress.org/support/topic/how-can-i-hide-new-registered-member-update-from-activity-streams/
– in both my child theme and bp-custom.php
But it’s not working for me.
Hope someone can help 🙂
I’d try switching to BP Nouveau, then a default theme and then deactivating the other plugins to see if that changes it.
Hello @sbrajesh,
I’m trying to copy bp-friends-template.php file into child theme. I have tried many times still not able to understand how to set the correct path in child theme.
Plugin file path: buddypress\bp-friends\bp-friends-template.php
Any suggestion.
Thanks
Thanks, have you overloaded any of the BP template files? located in themes/yourchildtheme/buddypress
So which theme are you using? BP Legacy or BP Nouveau?
I am seeing different tabs I can add as other profile fields in the backend but they dont appear on my profile page. I am using the Boss Theme of Buddy Boss. All other functions are working fine.
So if I understand you correctly, you are not seeing another tab beside Base on the profile page. Which BP Theme are you using? does it fail with either BP theme?
Hello, I am trying to add additional Extended User Profile Fields in the backend but they dont show up on my profile page. I am using BuddyPress 4.1.0 as well as Buddy Boss Boss Theme, Wall plugin etc. The primary Profile fields are visuable on my Profile page members/user/profile/ but if I try to add a new field group and add a new field it doesnt show up on my page. MY WordPress version is 5.0.2 and all other plugins are also updated to the latest version. I installed Twenty Nineteen Theme by WordPress but still the same issue. My website is: https://wushantcm.com
Hello guys,
I’m trying to change the labels in a few different areas, specifically the Member’s Directory placeholder text and the Compose a Message label “Send @Username” under Profile>Messages, but I’m finding that there isn’t really an easy way to do this in Nouveau. I’m also having a tough time figuring out where to change the template. I tried this post (making the .POT file). https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
But the text isn’t within the language file, it only contains the text from the legacy theme.
I’ve gotten the membership placeholder text to be changed by writing a custom js file, but trying the same thing for the “Send @Username” label does not always work correctly.
Here is my current code:
$(document).ready(function(){
if($('#dir-members-search')){
$('#dir-members-search').attr('placeholder','Search members by name, discipline, position, etc....');
}
//currently doesn't work. Change Compose Label for Who to send to.
$("#send_message_form label[for='send-to-input']").text('Send to User by Username (starting with @)');
});
I’d much rather not have to change the text after document.ready because it loads and the user can see the original text for a bit before the text changes.
When the user clicks away from “Compose” and back to it, the text doesn’t always show my replacement text.
Have you added any custom functions or overloaded the members page/s. Does it do this with either BP Theme? Also, how about trying a different local server?
Hi there, did you find a fix for this? It sounds like a theme related issue in that secondary pages would seem to be a feature of your theme. Did you check the page theme settings, sometimes themes install a meta-box that allows you to change the page format, this is usually on the right sidebar when you edit the page.
Hi there,
You are going to have to troubleshoot this issue as it’s specific to your site and not something that’s a more general problem.
The first thing t do is to deactivate all plugins apart from BuddyPress and see if the friends lists are correct. If not then try a default theme such as 2016 to see if that corrects it.
It’s also worth turning on error logging in wp-config.php https://codex.wordpress.org/Debugging_in_WordPress
Once you have enabled debugging, any errors will be logged to your debug log, you can get error log viewer plugins to make viewing it easier. Try viewing the friends list and then reviewing the log to see if any errors are being generated.
Hi there,
It’s a bit difficult to know exactly what issue you are reporting. Does it do this with the other plugins deactivated and with a default theme? also, have you overloaded any of the BP pages? if so then those pages will need to be updated. Your theme may also be overloading pages and may need to be updated.
Hi,
Before deciding to redirect from sitewide activity to user’s own activity you should know the difference between them and then decide.
– On the sitewide page a user can see activity from whole site(including his won/friends/his groups and any non related member of the site)
– On profile, a user can see his/her won activity as well as friends/groups etc but activities of group they are not member of or activity of users they are not friends with, won’t be visible,
If you still want to redirect from sitewide activity to user’s own activity, You may use the following code.
/**
* Redirect logged in user's from sitewide activity page to profile activity.
*/
function buddydev_redirect_sitewide_activity_to_profile_activity() {
if ( is_user_logged_in() && bp_is_activity_directory() ) {
bp_core_redirect( bp_loggedin_user_domain() . bp_get_activity_slug() );
}
}
add_action( 'bp_template_redirect', 'buddydev_redirect_sitewide_activity_to_profile_activity' );
PS:- you can put the code in your theme’s functions.php or in the wp-content/plugins/bp-custom.php
Best Regards
Brajesh
The next thing to check is if there is something messing with the BP pages, so deactivate all other plugins apart from BuddyPress and install a default theme such as 2016 and see if they display.
Do you want to override template files? If yes, the first step is to find out which template pack you are using(Dashboard->settings->BuddyPress->Options).
BuddyPress comes with 2 template packs
– BP Legacy
– BP Nouveau
Once you know the template pack, you can follow the following step
1. create a directory named “buddypress” in your theme
2. Now visit wp-content/plugins/buddypress/bp-templates, you will see two directories
– bp-legacy
– bp-nouveau
3. Based on your current template pack, visit that directory. You will find “buddypress” directory inside them. This is the directory of your interest. Copy files from there and maintain the path.
For example, if bp-legacy is your current template pack and you want to modify members loop,
you should copy wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php to yourtheme/buddypress/members/members-loop.php
Note the path after the template pack is what we need to maintain. Once you override it, BuddyPress will use it form your theme.
Please do note that themes do not allow you to specify template pack while overriding template files, so if you override it for one template pack and then activate another, It can lead to a lot of issues.
My suggestion is to remove/rename the “buddypress” directory in your theme if you change the current template pack for BuddyPress.
Hope this helps.
Best Regards
Brajesh
so the directory structure should look like this:
themes/your-child-theme/buddypress/members/file.php etc. can you confirm this is what you have got?
Would you have a plugin or theme that is redirecting the buddypress default template search?
Hi there,
I want to copy buddypress files into child theme. I have copied exact path the the plugin folder have. Still it takes data from plugin folder.
Any suggestion?
Thanks,
Pradeep
Quite a few of my users also wish to be able to crop their cover photos. Is there custom code I can add to allow users to do this? I haven’t found it on any of the forum posts so far and most are over a year old. This seems to be the most recent.
For those searching, here’s the codex of cover images (group and profile) and tells you how to customize the image size that you will accept for this area, but still not telling you how to allow cropping.
BuddyPress Cover Images
I’m on Version 4.1.0
Hi @venutius
That’s right, I put again theme.
I will test. Is there a list of changes of the same type? for this new theme!
Regards
You’d have to do something like this:
function venutius_start() {
if( function_exists( 'bp_register_template_stack' ) ) {
bp_register_template_stack( 'venutius_register_template_location' );
}
// if viewing a member page, overload the template
if ( bp_is_user() ) {
if ( bp_get_theme_package_id() == 'legacy' ) {
add_filter( 'bp_get_template_part', 'venutius_replace_template_legacy', 10, 3 );
}
if ( bp_get_theme_package_id() == 'nouveau' ) {
add_filter( 'bp_get_template_part', 'venutius_replace_template_nouveau', 10, 3 );
}
}
}
add_action( 'bp_init', 'venutius_start' );
function venutius_register_template_location() {
return <directory>; //replace with the main directory you are putting your new template files in
}
function venutius_replace_template_nouveau( $templates, $slug, $name ) {
switch($slug) {
case 'members/single/profile/change-avatar' :
if ( '<your_directory>/members/single/profile/change-avatar.php' ) ) {
return array( 'members/single/profile/change-avatar.php' );
break;
} else {
return $templates;
break;
}
}
return $templates;
}
function venutius_replace_template_legacy( $templates, $slug, $name ) {
switch($slug) {
case 'members/single/profile/change-avatar' :
if ( file_exists( '<your directory>/'members/single/profile/change-avatar.php' ) ) {
return array( 'members/single/profile/change-avatar.php' );
break;
} else {
return $templates;
break;
}
}
return $templates;
}
Something like that should work, not tested it though but you should get the idea.
That’s my question bro, I cannot find the way to do that because the folders in the two templates are same.
if there’s a function to define the folder to read files from according to the user option
Ex. get_option(‘_bp_theme_package_id’) -> [/THEME/temp1/buddypress] or [/THEME/temp2/buddypress]…
Thanks Pal
Hi there, presumably you have changed to the BP Nouveau theme, in this case the action hook name has changed from bp_before_profile_avatar_upload_content to bp_before_member_avatar_upload_content.