Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • @mvaneijgen

    Participant

    @vapvarun thanks, wasn’t really clear what the fix entails, so for anyone else looking for a solution, it took me 10 minutes to find the link on where I could find the fix.

    You have to modify the following file /wp-content/plugins/buddypress/bp-members/screens/register.php on line 93 and change

    // $_POST[ 'field_' . $field_id ] = trim( $_POST[ 'field_' . $field_id ] );

    to

    if ( is_array( $_POST[ 'field_' . $field_id ] ) ) {
        $_POST[ 'field_' . $field_id ] = array_map( 'trim', $_POST[ 'field_' . $field_id ] );
    } else {
        $_POST[ 'field_' . $field_id ] = trim( $_POST[ 'field_' . $field_id ] );
    }

    See the page and check for the link 7845.01.patch or go to https://buddypress.trac.wordpress.org/attachment/ticket/7845/7845.01.patch

    @mvaneijgen

    Participant

    I thought this was clear, but maybe not.

    I want to send an confirmation email upon ‘requesting’ deleting there account. This email needs to be confirmed before we delete the account.

    @mvaneijgen

    Participant

    This works

    // hook failed login
    add_action('wp_login_failed', 'my_front_end_login_fail'); 
     
    function my_front_end_login_fail($username){
        // Get the reffering page, where did the post submission come from?
        $referrer = $_SERVER['HTTP_REFERER'];
     
        // 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')){
            // let's append some information (login=failed) to the URL for the theme to use
            wp_redirect($referrer . '?login=failed'); 
        exit;
        }
    }

    http://www.wpinsite.com/code-snippets/how-to-redirect-wordpress-failed-logins

    @mvaneijgen

    Participant

    @youmin thanks, somehow saving the settings on the /wp-admin/admin.php?page=bp-page-settings page fixed the issue

    @mvaneijgen

    Participant

    @Ahir Hermant that is not really my question.

    There are users on the forum, so when I click on there name (lets say user ‘Youmin) I want the site to link to the users page (and that would be this URL /members/Youmin) this works without BuddyPress, but when I have BuddyPress installed all users name get the link /members (and this is just a page with a list of all users.

    So there is no way to get to a users page.

    @mvaneijgen

    Participant

    Two days and no response?

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar