-
Author
-
April 2, 2015 at 09:59 #52819marcogovoniParticipant
Is it possible to redirect users to a specific page after they signup on my website?
I’ve tried to modify “register-page” (assigned to buddypress-register-page) but it doesn’t work 🙁
thanksApril 2, 2015 at 14:43 #52833sharmstrModeratorI know you just installed a different redirect plugin for after logins, but this one claims to do both login and registration redirects https://wordpress.org/plugins/peters-login-redirect/
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
April 2, 2015 at 18:37 #52871marcogovoniParticipantThank you. In this moment I have FOUND a solution ONLY for users registering with mail+password, and it works!
Just add this code to function.php:function bp_redirect($user) {
$redirect_url = ‘http://framevents.com/signup-ok/’;
bp_core_redirect($redirect_url);}
add_action(‘bp_core_signup_user’, ‘bp_redirect’, 100, 1);THE PROBLEM now is for users that sign up via facebook… because they are redirected directly on their profile:
http://framevents.com/members/USERNAME/profile/edit/group/1/?fb=registeredI’m thinking how to redirect this user to another page, only first time (when there is ?fb=registered parameter)….
Have you got any suggestions?April 2, 2015 at 18:45 #52873sharmstrModeratorYou can try editing /wp-content/themes/kleo/kleo-framework/lib/function-facebook-login.php. Look around line 253. You’ll see
COPY CODE$redirect = apply_filters('kleo_fb_register_redirect', bp_core_get_user_domain( $user_ID ) . 'profile/edit/group/1/?fb=registered', $user_ID );
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
April 2, 2015 at 18:50 #52878marcogovoniParticipantFor example, if I want to redirect to http://framevents.com/test what have I to write?
(sorry for the stupid question but I’m not a developer and I don’t want to make a mistake)April 2, 2015 at 19:29 #52888sharmstrModeratorScratch what I said earlier. Put this in your childs function file
COPY CODEadd_filter('kleo_fb_register_redirect','my_fb_reg_redirect'); function my_fb_reg_redirect() { return ' http://framevents.com/test/'; }
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
April 3, 2015 at 08:15 #53007marcogovoniParticipantIt works well! Now I can track login via facebook and/or via mail!
May 5, 2015 at 01:58 #57325joyParticipantWhen a user signs up they are taken to a “Check your email” screen. How can the new accounts be auto-approved and redirected to a page of my choice? I know there is plugin to do this, but if I could hardcode it within the theme, it would be much better.
Thank you.
May 5, 2015 at 05:05 #57336sharmstrModeratorThe standard way is to use one of the plugins. If you’d like to see this option added to the theme you can submit it in the new Feature Request forum.
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
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.