-
Author
-
October 4, 2015 at 22:43 #80819LifeviseParticipant
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.October 4, 2015 at 23:03 #80824sharmstrModerator1: 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 CODEbp_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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 4, 2015 at 23:54 #80830LifeviseParticipantThank 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?
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.