-
Author
-
September 6, 2013 at 16:22 #2392HarvinderParticipant
Hi,
I would like to add the avatar part to the sign up page, so users have to upload an image for there avatar upon registration, also would like to make this a required action?
Thanks in Advance
HarvinderSeptember 7, 2013 at 10:36 #2425SQadminKeymasterThat is currently not possible and also not a good option to let everybody upload files on your server
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 10, 2013 at 09:07 #2579HarvinderParticipantOk. You said
“That is currently not possible and also not a good option to let everybody upload files on your server”
What about when users upload files using rtMedia etc, dont they upload to my server?
September 10, 2013 at 10:45 #2585SQadminKeymasterI wanted to say that also not logged in users will be able to upload. rtMedia allows only if you are a member
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 12, 2013 at 13:11 #2715RonPParticipantOk that said, can during the user registration, can the user be re-directed after comfirmation to avatar upload automatically ?
September 12, 2013 at 22:30 #2744SQadminKeymasterYou can redirect users at the first login to avatar page by adding this code to sweetdate-child/functions.php
COPY CODEfunction function_new_user($user_id) { add_user_meta( $user_id, '_new_user', '1' ); } add_action( 'user_register', 'function_new_user'); //The next function will check if it's the first login and redirect the user. function function_check_login_redirect($user_login, $user) { $logincontrol = get_user_meta($user->ID, '_new_user', 'TRUE'); if ( $logincontrol ) { //set the user to old update_user_meta( $user->ID, '_new_user', '0' ); //Do the redirects or whatever you need to do for the first login wp_redirect( home_url().'/members/'.$user_login.'/profile/change-avatar/#item-nav', 302 ); exit; } } add_action('wp_login', 'function_check_login_redirect', 10, 2);
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 13, 2013 at 23:12 #2802SQadminKeymasterYes indeed.Thanks. I have changed it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.