👻 Halloween Treat: Our biggest-ever 25% OFF memberships — use SPOOKYSOCIAL before Nov 3! 🎃

BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Buddypress Hashtag plugin #36064

    Hello brajesh,

    Is there any hope for this plugin

    Thanks

  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Limit login for branded login plugin #36009

    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 Only

    My 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.

  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Limit login for branded login plugin #36004

    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 ); 
  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Limit login for branded login plugin #35989

    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)

  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Limit login for branded login plugin #35988

    Kindly ignore above message the fault was mine I had this plugin enabled https://perfmatters.io/docs/change-wordpress-login-url/

  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Limit login for branded login plugin #35987

    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_REDIRECTS

    This 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 ); 
    
  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: Caching admin-ajax.php and buddypress #35973

    Thanks for the feedback what do you think about this plugin https://wordpress.org/plugins/docket-cache/ with buddypress.

  • Participant
    Level: Guru
    Posts: 913
    Tosin on 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 ); 
  • Participant
    Level: Guru
    Posts: 913
    Tosin on in reply to: [Resolved] Display followers tab in members directory #35871

    I am using legacy template

  • Participant
    Level: Guru
    Posts: 913
    Tosin on 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 );