Replies
- Brajesh Singh on November 20, 2024 at 2:53 am in reply to: [Resolved] Does BuddyPress works with WordPress’ persistent object cache API? #53549
Hi Carsten,
I haven’t used the Dynamic Directory plugin, so I am not sure of the expectation.Since BuddyPress caches individual objects, there will still be queries for the members list. It won’t query for fetching data of individual members.
It is very different from page caching behaviour. The goal of BuddyPress is to improve performance but not to avoid all the queries completely.
What you are expecting is page caching which is not supported by BuddyPress.Regards
Brajesh Hi Katrine,
Thank you for posting it again.1. As I explained previously, BuddyPress Global Search is not maintained and It has been taken down from WordPress.org due to security issues. Please avoid using it.
https://wordpress.org/plugins/buddypress-global-search/It is no longer available, so we are unable to test the issue you are referring to.
2. That is expected behaviour. this plugin doe snot deal with the forums part. I am not sure if we can make it work efficiently. I will be updating you on this in next 24 hours.
3. Plea provide a copy of your theme. I lack access to Cera. It seems it is theme specific issue(mis placed hook in the theme).
4. Thank you. On deactivation we only limit the deactivated users, not the other users. We can hide the single profile if you need it. I will add an option in the update to allow hiding user profile.
Thank you
Brajesh- Brajesh Singh on November 20, 2024 at 1:25 am in reply to: [Resolved] Limiting activity posting in user groups to admins onnly #53547
Hi,
I am glad you were able to resolve it.Regards
Brajesh - Brajesh Singh on November 20, 2024 at 1:24 am in reply to: BuddyBlog – customizing blog display #53546
Hi Steve,
Thank you for the replies.
It’s good to know that the template override is working.1. Excerpt will not show any formatting. You can edit and use the_content() to show the full content instead.
2. To show to custom field, you will need to copy the shortcode(There is a copy button near the custom field) and put it in one of the display box(single post/archive).
Please try that and let me know if it works or not?
Regards
Brajesh - Brajesh Singh on November 20, 2024 at 1:22 am in reply to: [Resolved] Redirection to the members directory on login #53545
Hi Carten,
Thank you for the question.It is a very simple plugin with 1 filter(just couple of lines) and it does not need any update. There is no security issue associated. That’s why we haven’t updated it.
Regards
Brajesh - Brajesh Singh on November 19, 2024 at 1:29 am in reply to: Presales MediaPress Media Moderator question #53533
Hi Kim,
Thank you for your interest in the plugin.The plugin does not deal with user profile photo(avatar) or user profile cover.
That means, It should work for your use case.Regards
Brajesh - Brajesh Singh on November 19, 2024 at 1:26 am in reply to: [Resolved] Does BuddyPress works with WordPress’ persistent object cache API? #53532
Hi Carsten,
Thank you for the question.BuddyPress supports persistent object caching. It does not cache complete page, It caches objects fetched for database leading to less computation/query when the object cache is enabled.
Regards
Brajesh - Brajesh Singh on November 19, 2024 at 1:23 am in reply to: Change content/menu in left/right panels and change #53531
Hi Stijn,
Thank you1. Please install and activate classic widget https://wordpress.org/plugins/classic-widgets/
Then, Visit Dashboard->Appearance->Widgets and add some widget to “Left Panel” widget area.That will remove the default widgets currently visible(archive and categories).
Regards
Brajesh - Brajesh Singh on November 19, 2024 at 1:17 am in reply to: Restrict BBpress based on Profile Type #53530This reply has been marked as private.
- Brajesh Singh on November 19, 2024 at 1:15 am in reply to: [Resolved] Limiting activity posting in user groups to admins onnly #53529
Hi,
Please try the following code.// Disables activity post form on group pages for non-admins /** * Checks if user can post activity * * @return bool */ function buddydev_user_can_post_activity() { if ( ! bp_is_group_activity() ) { return true; } // Replace ids by your allowed user ids. $allowed_user_ids = bp_group_admin_ids( groups_get_current_group(), 'array' ); $can = false; if ( is_super_admin() || in_array( get_current_user_id(), $allowed_user_ids ) ) { $can = true; } return $can; } add_action( 'bp_before_activity_post_form', function() { if ( ! buddydev_user_can_post_activity() ) { ob_start(); } } ); add_action( 'bp_after_activity_post_form', function() { if ( ! buddydev_user_can_post_activity() ) { ob_get_clean(); $css = '#buddypress form#whats-new-form {display: none};'; wp_add_inline_style( 'bp-legacy-css', $css ); } } ); add_action( 'bp_enqueue_scripts', function () { if ( ! buddydev_user_can_post_activity() ) { $css = '#buddypress form#whats-new-form {display: none};'; wp_add_inline_style( 'bp-parent-css', $css ); } }, 15 ); /** * Filter ajax post request */ function buddydev_restrict_post_update() { // Always allow site admin. if ( buddydev_user_can_post_activity() || function_exists( 'bp_nouveau' ) ) { return; } $object = empty( $_POST['object'] ) ? '' : sanitize_key( $_POST['object'] ); if ( ! $object || 'user' == $object || bp_is_user_activity() ) { exit( '-1<div id="message" class="error bp-ajax-message"><p>' . __( 'You are not allowed to post activity.' ) . '</p></div>' ); } } add_action( 'wp_ajax_post_update', 'buddydev_restrict_post_update', 9 );
It should only show the post form to the group admin.
Regards
Brajesh