Replies
- 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 - Brajesh Singh on November 19, 2024 at 1:03 am in reply to: Custom post layout on Buddyboss Theme profile #53528
Hi Steve,
Thank you for your post.It is an old thread. Let us keep our current discussion to your new post.,
https://buddydev.com/support/forums/topic/buddyblog-customizing-blog-display/Regards
Brajesh - Brajesh Singh on November 19, 2024 at 1:01 am in reply to: BuddyBlog – customizing blog display #53527
Hi Steve,
Thank you for the post.Please allow me to check it with the latest BuddyBoss version and get back to you within next 24 hours.
Regards
Brajesh - Brajesh Singh on November 19, 2024 at 1:00 am in reply to: Problem with BuddyPress field using Xprofile Custom Field Types and Select2 #53526
Hi,
Thank you for reporting the issue.Please allow me to check and get back to you in next 24 hours.
Regards
Brajesh - Brajesh Singh on November 19, 2024 at 12:59 am in reply to: [Resolved] Mediapress not restricting upload storage quota, displayed quota is wrong #53525
Hi Stephanie,
Hope you are doing well.
Thank you for your patience.Please upgrade to 1.5.9.1. It accounts for the current file being uploaded in the allocated size.
PS:- It only accounts for uploading file. If you are using remote media download feature(adding from remote source), It will not account in that case as the size is not available.
Regards
Brajesh