This topic has 9 replies, 3 voices, and was last updated 9 years by joy.

  • Author
  • #52819
     marcogovoni
    Participant

    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 🙁
    thanks

    #52833
     sharmstr
    Moderator

    I 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 solution

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

    #52871
     marcogovoni
    Participant

    Thank 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=registered

    I’m thinking how to redirect this user to another page, only first time (when there is ?fb=registered parameter)….
    Have you got any suggestions?

    #52873
     sharmstr
    Moderator

    You 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 solution

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

    #52878
     marcogovoni
    Participant

    For 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)

    #52888
     sharmstr
    Moderator

    Scratch what I said earlier. Put this in your childs function file

    COPY CODE
    
    add_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 solution

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

    #53007
     marcogovoni
    Participant

    It works well! Now I can track login via facebook and/or via mail!

    #57325
     joy
    Participant

    When 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.

    #57336
     sharmstr
    Moderator

    The 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 solution

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

    #57339
     joy
    Participant

    Okay, thanks for the response. Hopefully it’ll be built in on a future update.

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

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

Log in with your credentials

Forgot your details?