Replies
- Tosin on January 3, 2024 at 9:40 am in reply to: [Resolved] Buddypress xprofile visibility option (For Buddypress follow plugin) #51271
Thank you Ravi,
This code below worked for me
function custom_modify_visibility_levels($allowed_visibilities) { // Add a new visibility level for 'My Followers' if (function_exists('bp_follow_is_following')) { $allowed_visibilities['followers'] = array( 'id' => 'followers', 'label' => __('My Followers', 'buddypress') ); } return $allowed_visibilities; } add_filter('bp_xprofile_get_visibility_levels', 'custom_modify_visibility_levels'); // Adjust visibility based on followers function custom_get_hidden_visibility_types_for_user($hidden_levels, $displayed_user_id, $current_user_id) { if ($displayed_user_id != $current_user_id && !bp_follow_is_following(array('leader_id' => $displayed_user_id, 'follower_id' => $current_user_id)) && !is_super_admin()) { $hidden_levels[] = 'followers'; // Hide profile field with 'My Followers' visibility level for the user } return $hidden_levels; } add_filter('bp_xprofile_get_hidden_field_types_for_user', 'custom_get_hidden_visibility_types_for_user', 10, 3);
- Tosin on January 2, 2024 at 4:33 pm in reply to: [Resolved] BuddyPress Profile Visibility Manager (follow support) #51264
Thanks Ravi
The code worked perfectly
- Tosin on December 23, 2023 at 3:26 pm in reply to: [Resolved] Buddyblog pro and buddypress 12.0.0 beta 1 #51214
This is now resolved it was a caching issue
Thanks
- Tosin on December 22, 2023 at 9:27 am in reply to: [Resolved] Buddyblog pro and buddypress 12.0.0 beta 1 #51198
Hi Brajesh,
I have version 1.4.0 but no new update is available, your changelog at https://buddydev.com/plugins/buddyblog-pro/ says 1.4.0 support bp 12.0.0, i have tested it and Blog tab is not displaying in the user navigation menu
- Tosin on December 14, 2023 at 4:23 pm in reply to: Branded login and buddypress 12.0.0 beta 1 #51132This reply has been marked as private.
- Tosin on December 13, 2023 at 10:09 am in reply to: Branded login and buddypress 12.0.0 beta 1 #51115
Hi Brajesh,
This is really heart breaking to know that you are deprecating this awesome plugin, Branded Login has been my number one plugin for buddypress simply because I so much dislike the default wordpress login page, all other alternative plugins to customize the default login pages are just terrible and bloated also using security plugins to change the login url from (wp-login.php) to (login) is also terrible,
There is not an alternative to your plugin, I would really appreciate your guidance on how you designed your login page for buddydev which looks flawless with your theme’s design.
Thanks
- Tosin on December 12, 2023 at 7:56 am in reply to: [Resolved] Buddyblog pro and buddypress 12.0.0 beta 1 #51086
Gentle reminder sir
BuddyPress 12.0.0 is now available
- Tosin on December 12, 2023 at 7:56 am in reply to: Branded login and buddypress 12.0.0 beta 1 #51085
Gentle reminder sir
BuddyPress 12.0.0 is now available
- Tosin on November 21, 2023 at 12:24 pm in reply to: [Resolved] Attribute post on account deletion in buddypress #50911
You are awesome Ravi, thanks a lot
- Tosin on November 19, 2023 at 12:56 pm in reply to: [Resolved] Attribute post on account deletion in buddypress #50889
it might also be advisable to also use this code to disable comments on posts attributed to the non active user
function disable_comments_on_single_post_by_user() { if (is_singular('post')) { $post_id = get_queried_object_id(); // Get the current post ID // Get the post's author ID and comment status $post_author_id = get_post_field('post_author', $post_id); $comment_status = get_post_field('comment_status', $post_id); // Check if the post author's ID matches the specified user ID and comments are open if ($post_author_id == 466526 && $comment_status === 'open') { // Update post's comment status to 'closed' wp_update_post(array( 'ID' => $post_id, 'comment_status' => 'closed', )); } } } add_action('template_redirect', 'disable_comments_on_single_post_by_user');