This topic has 2 replies, 2 voices, and was last updated 9 years by Lifevise.

  • Author
  • #80819
     Lifevise
    Participant

    Hi!

    1. There is a white space in the register process! The footer comes all the way up. how to get it to normal? (screenshot 1)

    2. I have a small CSS issue with one button it has a few pix more padding and is lower than the other buttons for some reason. (screenshot 2)

    3. I want when users activate their account through the activation email link, they are logged in automatically. I found some code that does this but this also redirects to the user profile where I want it to redirect to BP activity. How do i do this?

    Code:

    COPY CODE
    //simulate Bp activation
    /* Check for an uploaded avatar and move that to the correct user folder, just do what bp does */
    		if ( is_multisite() )
    			$hashed_key = wp_hash( $key );
    		else
    			$hashed_key = wp_hash( $user_id );
    
    /* Check if the avatar folder exists. If it does, move rename it, move it and delete the signup avatar dir */
    		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_core_add_message( __( 'Your account is now active!', 'buddypress' ) );
    
    		$bp->activation_complete = true;
    	//now login and redirect
                  
    		wp_set_auth_cookie( $user_id, true, false );
            
    		bp_core_redirect( apply_filters ( 'bpdev_autoactivate_redirect_url', bp_core_get_user_domain( $user_id ), $user_id ) );      
                    
    	
    }
    Attachments:
    You must be logged in to view attached files.
    #80824
     sharmstr
    Moderator

    1: Technically that is “normal”. The footer is at the bottom of the content, not the page. That’s normal behavior.

    COPY CODE
    
    .registration #socket {
        position: fixed !important;
        bottom: 0 !important;
        width: 100% !important;
    }
    

    2: Put this in your quick css

    COPY CODE
    
    .wpb_column > .wpb_wrapper > *:last-child {
        margin-bottom: 2px !important;
    }
    

    3 – Change the bp_core_redirect so that it redirects to your activity page.

    COPY CODE
    
    bp_core_redirect('http://yoursite.com/activity/');
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #80830
     Lifevise
    Participant

    Thank you Sharmstr.

    1. The code causes issues with the socket in other pages. So I decided to not show the footer on the register page.

    2. Yes, I changed the margin-bottom to 4px and then it looks better!

    3. Do I need to completely adjust line 19 of the code in my previous message to your code? or just a part to keep it working?

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?