redirect sign in/sign up to page other than home?

This topic contains 5 replies, has 2 voices, and was last updated by  Paolo 10 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #50163

    kevin mcgrath
    Free User
    Post count: 2

    Hello, it seems I can’t figure out how to have users who are signing in or registering, directed to a simple page with only their dashboard showing. Instead they are directed to the home page which is for my customers not advertisers…. so I don’t want “my dashboard” for advertisers listed on the home page
    I saw other posts on this from 2014 but already got the white screen of death trying to copy that code into the function section of the plugin editor. I’m looking for a simple straightforward way to make this happen

    Thank you

    #50198

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    The easiest way to do this is with BuddyPress and our Buddypress integration add-on that has option to redirect users to their profile page after registration.

    Anything else would require custom code and it would be as easy and straightforward.

    Thanks

    #50203

    kevin mcgrath
    Free User
    Post count: 2

    Ok thank you. I would prefer not to add buddy press(ive added the plugin before and it doesn’t fit what my design goes for @ baseballscholarships101.com). I really don’t mind the code if I knew where exactly to add it. I thought it was somewhere by the home_url part? I just want them to go to a page other than the home page when they click sign in.

    #50204

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    did you try this plugin: https://wordpress.org/plugins/peters-login-redirect/

    Which code did you try and didn’t work?

    Just FYI, Custom code to modify how the plugin works isn’t part of support. https://wpgeodirectory.com/support-policy/

    Thanks

    #50205

    kevin mcgrath
    Free User
    Post count: 2

    I just tried plugging in the page extension I was trying to get the redirect to go to (/instructors/instructor-login).

    I just wasn’t sure what format or what part exactly

    case ‘lostpassword’ :
    case ‘retrievepassword’ :
    if ($http_post) {
    $errors = geodir_retrieve_password();
    $error_message = isset($errors->errors[‘invalid_email’][0]) ? $errors->errors[‘invalid_email’][0] : ”;
    if (!is_wp_error($errors)) {
    wp_redirect(home_url() . ‘/?geodir_signup=true&checkemail=confirm’);
    exit();
    } else {
    wp_redirect(home_url() . ‘/?geodir_signup=true&emsg=fw’);
    exit();

    #50329

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    that function has nothing to do with what you need to do. That is used in the retrieve password option.

    Can you please explain exactly what you are trying to achieve?

    You want users to be redirected to a different login page instead of the GD login page?
    Or you want them to be redirected to a different page after they login using the GD login?

    Let us know,

    Thanks

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount