Replies
- Ravi on June 17, 2019 at 11:07 am in reply to: [Resolved] Buddyblog – allow user to select only one category when posting #23556
Hello Isabel,
Thank you for posting. Yes, it can be done easily. Please try the following code in your active theme “functions.php” file. It will change checkbox categories to drowndown category.
/** * BuddyBlog Categories as dropdown * * @param array $settings Settings. * * @return array */ function buddydev_buddyblog_categories_as_dropdown( $settings ) { if ( empty( $settings['tax'] ) ) { return $settings; } foreach ( $settings['tax'] as $taxonomy => $detail ) { $settings['tax'][$taxonomy]['view_type'] = 'dd'; } return $settings; } add_filter( 'buddyblog_post_form_settings', 'buddydev_buddyblog_categories_as_dropdown' );
Please let me know if that works or not.
Regards
Ravi Hello Tosin,
Please find out the following function in plugin “bl_get_error_message” and there you can modify the message.
Regards
RaviHello Tosin,
Please download the latest version of plugin and use the following code.
add_filter( 'wp_authenticate_user', function( $user ) { if ( isset( $_POST['log'] ) && ! is_email( $_POST['log'] ) ) { return new WP_Error( 'invalid_email' ); } return $user; }, 10 );
It will only allow login by email address.
Regards
RaviHello Tosin,
We have updated the plugin. Please download the latest version of it. Now it will support Limit Login Attempts Reloaded and show message thrown by this plugin.
Regards
Ravi- Ravi on June 10, 2019 at 12:22 pm in reply to: [Resolved] BP (un-)lock activity for admin only? #23453
Hello Richard,
Thank you for the acknowledgement.
Regards
Ravi - Ravi on June 10, 2019 at 9:22 am in reply to: [Resolved] BP (un-)lock activity for admin only? #23449
Hello Richard,
Please download the latest version of plugin “BuddyPress Lock UnLock Activity” and use the following code which allows only site admins can lock and unlock an activity.
/** * Only allow site admins to lock and unlock activity * * @param bool $can True or false. * * @return bool */ function buddydev_user_can_lock_unlock_activity( $can ) { return is_super_admin(); } add_filter( 'bp_lock_unlock_user_can_update_activity', 'buddydev_user_can_lock_unlock_activity' );
You can put this code in “bp-custom.php” or active theme “functions.php” file. Please let me know if it works or not.
Regards
Ravi Hello Tosin,
I am glad that you found the culprit causing the issue. Regarding the support we will check and get back to you next weak.
Regards
Ravi- Ravi on June 6, 2019 at 4:41 am in reply to: [Resolved] Remove 'add friend' button for member type (admins) #23378
Thank for the acknowledgement.
Regards
Ravi - This reply has been marked as private.
Hello tosin,
Thank you for detailed acknowledgement. It seems you have not removed the following custom code i.e. You have provided in the following reply.
https://buddydev.com/support/forums/topic/branded-login-support/#post-23259
Because form still redirecting with ‘?login=failed’ and causing not to show error messages. Please check and let me know.
Regards
Ravi