“Redirect Page on User Activation” in the Buddypress settings doesn't redirect.

Home Forums Legacy Support Support queries Other issues “Redirect Page on User Activation” in the Buddypress settings doesn't redirect.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3187
    mercadigital
    Participant
    When a new user subscribe and validate his email, change the “Redirect Page on User Activation” in the WPLMS Buddypress section, but the user still in the same page only with the confirmation activation succes, how I can show a Welcome page after email Activation process? I want to show a Welcome page after the activation email process, and show or explain what are the next steps.
    #3341
    Anshuman Sahu
    Keymaster
    Yes this is an issue moving topic to issue log ,we will fix this issue inn next update of wplms . Thanking you for reporting this to us .
    #3505
    thexlearner
    Spectator
    This plugin will fix that problem
    #3521
    mercadigital
    Participant
    Thanks I will test...
    #4150
    sandy
    Member
    This issue has been resolved in 1.9.9 update as well.
    #5963
    MrVibe
    Keymaster
    Temporary fix : Use this code, add it in Child theme functions.php file or WPLMS Customizer/wplms_customizer.php file
    add_action('bp_core_activated_user','myvibe_redirect_after_registration',99,3);
    
    function myvibe_redirect_after_registration($user_id, $key, $user){
    
    
    $bp = buddypress();
    
    
    
    if ( is_multisite() )
    
    $hashed_key = wp_hash( $key );
    
    else
    
    $hashed_key = wp_hash( $user_id );
    
    
    
    if ( file_exists( BP_AVATAR_UPLOAD_PATH . '/avatars/signups/' . $hashed_key ) )
    
    @rename( BP_AVATAR_UPLOAD_PATH . '/avatars/signups/' . $hashed_key, BP_AVATAR_UPLOAD_PATH . '/avatars/' . $user_id );
    
    
    
    $bp->activation_complete = true;
    
    
    
    wp_set_auth_cookie( $user_id, true, false );
    
    $pageid=vibe_get_option('activation_redirect');
    
    if(empty($pageid)){
    
    bp_core_add_message( __( 'Your account is now active!', 'vibe' ) );
    
    bp_core_redirect( apply_filters ( 'wplms_registeration_redirect_url', bp_core_get_user_domain( $user_id ), $user_id ) );
    
    }else{
    
    $link = get_permalink($pageid);
    
    bp_core_redirect( apply_filters ( 'wplms_registeration_redirect_url',$link, $user_id ) );
    
    }
    
    }
       
    #6108
    mercadigital
    Participant
    Yes it worked!,
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘“Redirect Page on User Activation” in the Buddypress settings doesn't redirect.’ is closed to new replies.