BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 903
    Tosin on in reply to: Branded login support #23264

    Login error message is still not showing I can’t still to get Login Error messages on the new custom page template

  • Participant
    Level: Guru
    Posts: 903
    Tosin on in reply to: Branded login support #23260

    I was able to edit the login.php template in my child theme but I still don’t know how to enable the remember me to be checked by default

    Thanks

  • Participant
    Level: Guru
    Posts: 903
    Tosin on in reply to: Branded login support #23259

    Hello,

    This code below worked for the redirect but the login errors still do not show

     /**
     * Redirect failed login attempts to custom login page
     */
    add_action( 'wp_login_failed', 'pippin_login_fail' );  // hook failed login
    function pippin_login_fail( $username ) {
         $referrer = $_SERVER['HTTP_REFERER'];  // where did the post submission come from?
         // if there's a valid referrer, and it's not the default log-in screen
         if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) {
              wp_redirect(get_permalink( 28880 ) . '?login=failed' );  // let's append some information (login=failed) to the URL for the theme to use
              exit;
         }
    } 

    I was wondering if there is a code I can add directly to the login.php file to display its own login error message. e.g code to display (login failed: Invalid email or password)

  • Participant
    Level: Guru
    Posts: 903

    Awesome work!

    I have updated the plugin and it works perfectly

    Thank you very much

  • Participant
    Level: Guru
    Posts: 903

    Please don’t forget about the email synchronization

    Thanks

  • Participant
    Level: Guru
    Posts: 903
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 903

    Awesome will be expecting your update

    Thanks

  • Participant
    Level: Guru
    Posts: 903
    Tosin on in reply to: How to change the buddypress email reply to #22632

    I tried this but did not work in bp-custom.php

     add_filter( 'bp_email_set_reply_to', function( $retval ) {
        return new BP_Email_Recipient( 'noreply@nigerpress.com' );
    } ); 
  • Participant
    Level: Guru
    Posts: 903

    Hello,

    It is working now I tried to re-save the bp-confirm-actions settings page twice and now it’s working perfectly, also i’m not so sure but I think caching was part of the problem.

    Thank you so much for your patience and assistance, i’m very grateful

  • Participant
    Level: Guru
    Posts: 903

    This is the code im my bp-custom.php file

     function bpdelete_remove_activity_delete_text(){
    	$url   = bp_get_activity_delete_url();
    	$class = 'delete-activity';
    
    	$link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action delete-activity confirm no-ajaxy fas fa-trash-alt" rel="nofollow">' . __( '', 'buddypress' ) . '</a>';
    	return $link;
    }
    add_filter('bp_get_activity_delete_link', 'bpdelete_remove_activity_delete_text', 9 );