Hi,
Which theme you are using? Please go to any of the member’s profile and check there if you have add friend button or not.
Thanks
Default and vanilla install of both latest stable WP and Buddypress with no other new plugin installed, just all default themes, nothing else. Creating a new blog post ( as admin or any user ) – expecting to see comment button or box in the Activity stream under the blog title (and excerpt) – but seeing only Favorit / Delete buttons but no Comment button. Many thanks for posting a solution.
Hi,
Have you tried disabling plugins except buddypress? Also check once with the default theme like twentyseventeen(if not done).
Thanks
Hi,
I have checked this with a default theme twenty seventeen and this is not the issue there. I am seeing ‘bp-nouveau js’ as well as other body classes ‘single single-post’ and so on.
Please consult with your theme vendors, it’s possible that there is an issue at their end.
Thanks
Is there anyway to prevent buddypress from removing wp_classes? It’s preventing me from using my theme customizer
I’m working on a WordPress Multisite installation and I need all of the sites to have the same configuration (themes, plugins, settings, etc.). I’m using BuddyPress on all of the sites and I want them all to have the same components activated. Currently I’m using Ansible to provision everything and make some calls to the WP CLI, one of which runs a PHP script that is supposed to save the BuddyPress settings, along with settings for other plugins. The script seems to run fine; I update bp-active-components and I run bp_core_install() and pass the components to it to create all the necessary tables. However, when I go to a site and visit wp-admin, the active components get reset to the default components. I’m guessing there is an action somewhere that runs when I visit wp-admin or the BuddyPress settings page for the first time. Where is this happening and can I turn it off? Or what would be the best course of action for achieving what I am trying to do?
Tech specs:
WordPress 4.9.5, using multisite
BP Multi-network 1.0.1, network-activated
BuddyPress 2.9.4
bbPress 2.5.14, network-activated
Custom theme
Running inside a vagrant box using CentOS 6
P.S. I am probably using a bunch of outdated stuff but I inherited this project from another team
If it is child theme then it’s fine otherwise please cut it from there and use this plugin https://wordpress.org/plugins/code-snippets/ to add a new snippet and then paste it there.
Thanks
Hi Prashant,
Thank you for your help! I added this to functions.php of my child theme and it did the trick. Did I put this in the right location?
Thanks!
Interesting problem… I’ve never used that theme.
Just curious – under settings /wp-admin/admin.php?page=bp-settings
which Template Pack is selected? Try switching it.
Hi Prashant,
I added in child theme edit.php below submit button. It did’nt worked. However I tried this in edit.php below submit button and it worked.
<input type="button" name="profile" id="profile" onClick="window.location.href='<?php echo bp_displayed_user_domain()."profile/";?>'" value="Exit"/>
Can I know what is the advantage of using jQuery that you used in your snippet? If there is benefit then I would prefer to use your snippet.
Hello, I searched existing posts but didn’t find this exact question.
On the members’ page, and on individual profile pages, it shows the time the member was last active. (example ‘active 3 minutes ago’)
I’d like to hide/turn this off but can’t figure out where or how to do this. I have turned off the activity stream but that didn’t do it.
Is there a snippet of code I need to change or add to accomplish this?
I changed the theme to twenty-seventeen and it still shows up.
Wordpress version 4.9.8
BuddyPress version 3.2.0
This will (temporarily) take you directly to the member ( ‘Connect’ ) page.
Thank you!
Denise
Hi,
No need to edit any template. I have created a snippet for you. Please paste the following snippet in your child theme’s functions.php file:
function ps_redirect_next_group() {
if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
return;
}
$group_id = bp_get_current_profile_group_id()+1;
if ( bp_get_current_profile_group_id()==4 ) {
bp_core_redirect(bp_displayed_user_domain()."profile/");
}else{
bp_core_redirect(bp_displayed_user_domain()."profile/edit/group/$group_id/");
}
}
add_action( 'xprofile_data_after_save', 'ps_redirect_next_group' );
add_filter( 'gettext', 'ps_change_save_button_text', 20, 3 );
function ps_change_save_button_text( $translated_text, $text, $domain ) {
if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
return $translated_text;
}
switch ( $translated_text ) {
case 'Save Changes' :
$translated_text = __( 'Save and Continue', $domain );
break;
}
return $translated_text;
}
If there is no child theme then create a file bp-custom.php in wp-content/plugins/ folder and paste this there. https://codex.buddypress.org/themes/bp-custom-php/
If not possible to create bp-custom.php file then third and easy solution is to install the plugin code snippets https://wordpress.org/plugins/code-snippets/ and there add a snippet and paste the code and save.
Hopefully, it will help you.
Thanks
In particular,I’d like to distinguish between organizations and individuals.
The organizations apply to build communities, and organizations can post blogs in established communities to answer questions, free and paid features.
The data discussed by members can be saved and can be provided to scientific institutions for analysis.
Hi,
BuddyPress have member type features that you can use to distinguish between members. Please check this plugin https://buddydev.com/plugins/buddypress-member-types-pro/ and then can restrict group creation and blogs by member type organization.
Also use this plugin https://wordpress.org/plugins/bbpress/ for forum creation where members can come and reply on topics.
The topics and replies and activity post in buddypress are stored in the database.
Please check all of them and then can choose a BuddyPress based theme https://colorlib.com/wp/best-buddypress-wordpress-themes/ and it will have most of things inbuilt.
Thanks
Hi,
Please put this snippet in child theme’s functions.php file:
function ps_private_posts( $query ) {
if(is_user_logged_in()){
if ( $query->is_archive() && $query->is_main_query() ) {
$query->set( 'author', get_current_user_id());
}
}
}
add_action( 'pre_get_posts', 'ps_private_posts' );
Hopefully, it will help you.
Thanks
You will need to ask the author of your theme and plugins.
How I check my theme or plugin conflict with that?
In that case, you can put it in your bp-custom.php or your theme/child theme’s functions.php
/**
* Start buffering the visibility template.
*/
function bitboy_start_buffering_visibility_template() {
ob_start();
}
add_action( 'bp_custom_profile_edit_fields_pre_visibility', 'bitboy_start_buffering_visibility_template', -1 );
/**
* End buffer and discard.
*/
function bitboy_end_buffering_visibility_template() {
ob_end_clean();
}
add_action( 'bp_custom_profile_edit_fields', 'bitboy_end_buffering_visibility_template', 1000 );
It will remove the visibility options completely.
Best Regards
B
If you aren’t modifying the templates then check your theme or plugins in case they are modifying them. It is likely that something has changed and that change has introduced the issue.
Thanks for your reply,
I needed for both profile edit and register page both. I used CSS earlier but inserted that into style.css of my child theme. However now I inserted again in the Appearance > Customize > Additional CSS. But the behavior is same. The page at the time of loading shows the field and toggle for few seconds and then vanishes. This make the look of the page very unprofessional. I do not want it to show on page for even a moment at the time of loading.
I didn’t modified any template or file from Buddypress. I am using Divi theme and memberPress plugin for maintaining the members. Also used “MemberPress + BuddyPress Integration” plugin to integrates MemberPress with BuddyPress.
Is any one from above creating issue for tabs?
Hi,
How did you disable the option? Are you using css to do it?
There are two ways to do it
1. Using css
2. editing template file(register.php and keeping a copy in your theme’s buddypress/members directory)
I will prefer the first approach as it will not be much work on a site admin’s part.
.register-page .signup-form .editfield .field-visibility-settings,
.buddypress-wrap .standard-form .field-visibility-settings-header {
display:none;
}
Please visit Dashboard->Appearance->Customize menu then open “Additional Styles” and add those lines.
Does that work?
Best Regards
B
Hi,
Please try to find the template named index.php in bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php and there you will find the HTML. You just need to put that button code in condition of yours. That is if user role is this then only show otherwise not.
You can try: if(current_user_can('manage_options')){ ?> // Button HTML Code here <?php }?>
One last thing, if you have child theme then try to override the file there and then change otherwise on next update changes will be lost.
Thanks
In these situations most probably plugins are getting conflicted and that’s why this issue is coming.
I have just tested with BuddyPress and twentyseventeen theme and it’s working fine: https://screencast-o-matic.com/watch/cF6Qb7YY6Z
Please try to disable plugins one by one and check if the issue remains same or gone.
Thanks
I tested this in the theme you suggested.
But here too it does not work.
I am afraid when I switch from theme I loose all my already created pages in the woffice intranet theme