Forum Replies Created
-
AuthorPosts
-
andreuMember
Sorry, I’ve just seen that this has been solved in 1.21. Isn’t it?
Thanks! 🙂
andreuMemberHi,
Any idea about this problem?
Thanks
andreuMemberAny help with this? Thanks
andreuMemberThis finally have been solved without changing anything. Mysteries… but thanks anyway! 🙂
andreuMemberHi Sourov,
Unfortunately, this is not the problem. If I set a registration redirection, I’m redirected when I click on the regiter button. After activating my account via the link of the email I receive, I still get the white screen.
I realised that when I visit the activation link for the first time, I get the blank screen. When I visit the link for the second time, the page just load fine, but the message I receive says that my account have already been activated.
The activation page seem to do it’s purpose fine, but getting a blank screen instead of a confirmation message cause my users to get confused about the activation process.
Thanks
andreuMemberAny help with this?
Thanks…andreuMemberThanks. Using “user_pass” for the key resolved the issue 🙂
andreuMemberI have used the WP’s default one. I attach you how it looks (in Spanish): https://dl.dropboxusercontent.com/u/11189866/pass.png
The meta key of the field is “contrasena” in Spanish. Should it be a different thing maybe?
andreuMemberOk thanks, but I need to implement it now. So, is there any function/filter that let me:
1. Desactivate a user account
2. Resend the confirmation email to make him activate his account again
Or could you please show me where I can find the piece of code in the plugin that let me do this? I’m a developer and I think I could do it myself, but It would be good to have some point to start from.Thanks again
andreuMemberI’m sorry but I couldn’t make it work.
get_term_link()
and the rest of the function seem to be ok.
Finally, I made a little trick that let me do what I need. When the user login I use thelogin_redirect()
filter to redirect him to the homepage with a get variable:return site_url().'?goto=clientarea';
Then, with
template_redirect()
hook, I redirect him to the custom term page with a conditional, this way:function my_page_template_redirect(){ if( $_GET['goto'] == 'clientarea' ){ wp_redirect( get_term_link(...) ); exit(); } } add_action( 'template_redirect', 'my_page_template_redirect' );
The
get_term_link()
function is working fine in thetemplate_redirect()
function. However, I couldn’t make it work in thelogin_redirect()
one…Thanks
andreuMemberThanks Khaled, I could make work the $user var.
However, is it possible that get_term_link function doesn’t work fine inside the filter? I can return a hardcoded url, but if I try to get a term link a WP Error appears and admin-ajax.php doesn’t complete the request.
I’ve been trying alternatives during more than an hour without success 🙁
Thank you
andreuMemberI want to return a page with the user ID as a GET var. This is my code:
function allow_login_redirect_hook( $isEnable, $hookName ) { if ( 'login_redirect' == $hookName ) $isEnable = true; return $isEnable; } add_filter( 'user_meta_wp_hook', 'allow_login_redirect_hook', 10, 2 ); add_filter( 'login_redirect', 'redirectClient' ); function redirectClient( $redirect_to, $redirect, $user ){ return get_permalink(24).'?user_id='.$user->ID; }
Thanks
andreuMemberNo, I’ve tried to get $user->ID and $user->user_login without success.
andreuMemberThe redirection is working fine now. However, I can’t get the user ID. I’ve tried with
$user->ID
without succes. Also, I’ve tried with this, but it’s not working neither:global $current_user; get_currentuserinfo(); $user_id == $current_user->ID;
Thanks!
-
AuthorPosts