Replies
- Brajesh Singh on May 31, 2021 at 2:44 pm in reply to: [Resolved] Counter displaying pending friends requests instead #38899
Hi Carsten,
I personally think using css is your best option here.Regards
Brajesh - Brajesh Singh on May 31, 2021 at 12:01 am in reply to: [Resolved] Little loading image not in main activity box #38894
Hi Lisa,
I am sorry for the delayed reply.The theme is working as expected on mac Big Sur and chrome.
Please have look.
https://www.awesomescreenshot.com/video/3941964?key=006a688c13dadc4a3a002f75cf647e93Regards
Brajesh - Brajesh Singh on May 30, 2021 at 3:16 pm in reply to: [Resolved] Enforce strong passwords in Buddypress General Settings #38892
Hi John,
Thank you for the question.I am posting a sample code below for the settings page. Please update with your custom validation check.
// add validation logic to BuddyPress password update. add_filter( 'bp_members_validate_user_password', function ( $errors, $pass, $confirm_pass, $userdata ) { // already has error. if ( $errors->has_errors() ) { return $errors; } // add your validation logic here. $is_strong_password = false;// set it to true/false based on your validation logic. if ( ! $is_strong_password ) { $errors->add( 'weak_password', __( 'Please use strong password.' ) ); } return $errors; }, 10, 4 );You can update the validation logic by using your validate_password to achieve your goal.
hope that helps.
Regards
Brajesh - Brajesh Singh on May 30, 2021 at 3:14 pm in reply to: Add "send private message" button to members directory to non logged in users #38891
Hi,
Thank you for the question.BuddyPres can not handle message form non logged users. You may want to take a look at this plugin
https://buddydev.com/plugins/buddypress-user-contact-form/It may be able to handle the use case.
Regards
Brajesh Hi Nifty,
Thank you for the question.You can filter on the total member count and update the count.
Here is an example showing that we remove 4 from the count.add_filter( 'bp_get_total_member_count', function ( $count ) { // return updated count. return $count - 4; // decrease by 4 or so. } );Regards
Brajesh- Brajesh Singh on May 30, 2021 at 3:12 pm in reply to: [Resolved] Add new subtab on edit profile screen after all field groups #38889
Hi Nitin,
Welcome back.Adding tab is not difficult but showing the form is not that simple. You can add a tabg with this code(or modify it to point to some other url)
add_filter( 'xprofile_filter_profile_group_tabs', function ( $tabs, $groups, $group_name ) { $link = '#'; // use your link. $label = 'My Tab'; // Add tab to end of tabs array. $tabs[] = sprintf( '<li><a href="%1$s">%2$s</a></li>', esc_url( $link ), $label ); return $tabs; }, 20, 3 );I will suggest using a page url in the link and put your form their to make ti simple.
Regards
Brajesh - Brajesh Singh on May 30, 2021 at 3:09 pm in reply to: [Resolved] Counter displaying pending friends requests instead #38888
Hi Carsten,
Thank you for the suggestion. I am afraid there is no hook to allow this currently without having side effect.Regards
Brajesh - Brajesh Singh on May 30, 2021 at 3:08 pm in reply to: Problem with BuddyPress Friends Suggestions Pro #38887
Hi Sandra,
Thank you for the patience.I have seen the issue. It seems it is not working with the multiselect field on the site. Please allow me to test and push an update by Tuesday.
Regards
Brajesh - Brajesh Singh on May 27, 2021 at 5:33 pm in reply to: [Resolved] Little loading image not in main activity box #38874
Hi Lisa,
Thank you for letting me know. I tested on Ubuntu and Chrome browser.I will ask one of my colleagues to test it on chrome on Mac and report tomorrow(it’s off time for them here now).
Regards
Brajesh - Brajesh Singh on May 27, 2021 at 5:08 pm in reply to: toggle the visibility of login/register buttons in header #38871
Hi Sotiris,
Thank you.The simplest solution will be using css. If you know the ID of the login page( I am assuming 5 here for example, Please change).
Then, you can add the following css
.page-id-5 .site-header-login-link { display:none; }Regards
Brajesh