Replies
- Tosin on July 25, 2020 at 3:09 pm in reply to: [Resolved] Change buddypress username minimum length to 3 #31939
it worked perfectly thank you very much
- Tosin on July 24, 2020 at 10:18 am in reply to: [Resolved] Change buddypress username minimum length to 3 #31909
Good day sir, Any update sir
Thanks
- Tosin on July 22, 2020 at 7:42 pm in reply to: BuddyPress Profile Completion and BuddyPress Force profile photo #31872
I did as instructed but old users who already have their photos uploaded are still being forced to upload another photo.
Thanks
- Tosin on July 21, 2020 at 9:38 am in reply to: [Resolved] Change buddypress username minimum length to 3 #31849
Good day sir, I just want to remind you about this request
Thank you
- Tosin on July 21, 2020 at 9:34 am in reply to: BuddyPress Profile Completion and BuddyPress Force profile photo #31848
Good day sir, please any update on this
- Tosin on July 17, 2020 at 1:45 pm in reply to: [Resolved] Change buddypress username minimum length to 3 #31788
Thank you brajesh the code below worked
// disable 4 letter limit in BuddyPress Username, set at atleast 2. add_filter( 'bp_core_validate_user_signup', function ( $result ) { // let us not worry if there are no errors or user name length is not the root cause. if ( ! isset( $result['errors'] ) || ! is_wp_error( $result['errors'] ) || empty( $result['user_name'] ) || is_numeric( $result['user_name'] ) ) { return $result; } // make sure it is our 4 letter issue. if ( ! empty( $result['user_name'] ) && strlen( $result['user_name'] ) < 4 ) { $result['errors']->remove( 'user_name' ); // let us allow 2 letter or above. $allowed_length = 2; // change it to impose your own limit. if ( strlen( $result['user_name'] ) < $allowed_length ) { $result['errors']->add( 'user_name', __( 'Username must be at least 2 characters' ) ); } } return $result; } );
But I think there is a conflict with the WordPress Username Availability Checker plugin while this plugin is activated the old error message ( ‘Username must be at least 4 characters’ ) is still showing instead of the new error message ( ‘Username must be at least 2 characters’ )
Thanks
- Tosin on July 16, 2020 at 9:28 pm in reply to: [Resolved] Change buddypress username minimum length to 3 #31773
I know this is a security feature but login with username is disabled in my site, users can only login with email address.
Hello,
I thought I might add more suggestions like:
Restrict access by member type for
1. Post
2. Pages
3. Categories
4. Custom post typesFor more ideas check out this plugin https://codecanyon.net/item/pages-by-user-role-for-wordpress/136020
- Tosin on July 15, 2020 at 12:52 pm in reply to: BuddyPress Profile Completion and BuddyPress Force profile photo #31745
I want to allow them, while letter avatar plugin is enabled all users who haven’t uploaded their profile photo should be forced to do so.
If a user who does not have member type access should try to access a member type restricted page, that user should either be shown a custom error message or be redirected to another page added in the member type setting.
I think the redirection approach would be better.
What are your thoughts
thanks