Replies
Hello brajesh,
Is there any hope for this plugin
Thanks
The second problem has been solved the difference in login error message was caused by this plugin iThemes Security at https://wordpress.org/plugins/better-wp-security/ it has a settings under (wordpress tweaks) to select login method either by
1. Email Address and Username (Default)
2. Email Address Only
3. Username OnlyMy previous setting option was set at Email Address Only which caused the (invalid request) error message. I changed this setting back to Email Address and Username (Default) and this solved the problem.
Thank please can you review this code if it will work
// Change wordpress login form text labels // function branded_login_change_error_text( $translated_text, $text ) { if ( is_page( 'login' ) ) { $original_text = 'Password is Invalid!'; $new_text = 'Your Email or Password is Invalid!'; if ( $text == $original_text ) { $translated_text = $new_text; } return $translated_text; } } add_filter( 'gettext', 'branded_login_change_error_text', 30, 3 );The plugin now works perfectly
1. How can I change the failed login error from (Password is Invalid!) to (Email or Password is Invalid!)
2. I have login disabled by username using the code above. When a user mistakenly tries to login with username instead of email this error message shows (Invalid Request) how can I change this to (Please login with valid email)
Kindly ignore above message the fault was mine I had this plugin enabled https://perfmatters.io/docs/change-wordpress-login-url/
login page can’t be accessed and logins are not successful keep getting the error
http://www.website.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTSThis error occurs without activating limit login attempts plugin
Please note that I have this code in my functions.php
/** * Email login support for bp-branded-login plugin */ add_filter( 'wp_authenticate_user', function( $user ) { if ( isset( $_POST['log'] ) && ! is_email( trim( $_POST['log'] ) ) ) { return new WP_Error( 'invalid_email', __( 'Please provide a valid email' ) ); } return $user; }, 10 );Thanks for the feedback what do you think about this plugin https://wordpress.org/plugins/docket-cache/ with buddypress.
- Tosin on January 29, 2021 at 7:04 am in reply to: [Resolved] Display followers tab in members directory #35904
Hello Ravi,
Problem solved using the priority number 20
function bpfollow_add_followers_tab() { if ( ! is_user_logged_in() ) { return; } $count = bp_follow_get_the_followers_count(); if ( empty( $count ) ) { return; } ?> <li id="members-followers"><a href="<?php echo bp_loggedin_user_domain() . BP_FOLLOWERS_SLUG ?>"><?php printf( __( 'My Followers <span>%d</span>', 'buddypress-followers' ), esc_html( $count ) ) ?></a></li> <?php } add_action( 'bp_members_directory_member_types', 'bpfollow_add_followers_tab', 20 ); - Tosin on January 28, 2021 at 10:54 am in reply to: [Resolved] Display followers tab in members directory #35871
I am using legacy template
- Tosin on January 28, 2021 at 10:01 am in reply to: [Resolved] Display followers tab in members directory #35864
It did not work
function bpfollow_add_followers_tab() { if ( ! is_user_logged_in() ) { return; } $count = bp_follow_get_the_followers_count(); if ( empty( $count ) ) { return; } ?> <li id="members-followers"><a href="<?php echo bp_loggedin_user_domain() . BP_FOLLOWERS_SLUG ?>"><?php printf( __( 'My Followers <span>%d</span>', 'buddypress-followers' ), esc_html( $count ) ) ?></a></li> <?php } add_action( 'bp_members_directory_member_types', 'bpfollow_add_followers_tab', 999 );