Results 1 to 8 of 8

Thread: Redirect after Signup?

  1. #1
    Join Date
    Dec 2009
    Posts
    11

    Default Redirect after Signup?

    In anpother thread I read how you can redirect after login to a specific page. Here's a quote from it:
    "In login.inc.php change the header command on line 199 to redirect to where you want. "

    I tried it and it works for me, but I want to redirect only after signing up. Where in the core do I need to change that?

    Thanks!

  2. #2
    Join Date
    Aug 2009
    Location
    Phoenix AZ
    Posts
    6

    Default Re: Redirect after Signup?

    To do this I edited line 286 of the user_manager.inc.php file to this code

    Code:
    header( 'Location: http://www.yoursite.com/new_page.html' ) ;
    This will take them directly to the URL you enter following the "Location:". This page will be displayed directly after the sign up button is pushed.

    Hope this helps

    Matt

  3. #3
    Join Date
    Dec 2009
    Posts
    11

    Default Re: Redirect after Signup?

    Thanks Matt, I will try that tonight!

  4. #4
    Join Date
    Dec 2009
    Posts
    11

    Default Re: Redirect after Signup?

    Are you sure that's the right line number? This is what I have on line 286:
    PHP Code:
    $display .= '<p>' $lang['you_may_now_view_priv'] . '</p>'
    As a matter of fact I don't see a 'header' followed by 'location' anywhere in the file.

    Should I put it directly after my line 286? Or am I just on a different version than you are and therefore need to put it on a different line? My version is 2.5.8. I can post the whole file if need be.

  5. #5
    Join Date
    Dec 2009
    Posts
    11

    Default Re: Redirect after Signup?

    OK, so I just tried putting the code you suggested after line 286 and it worked perfectly. Thanks for that tidbit, it really helps!

  6. #6
    Join Date
    Aug 2009
    Location
    Phoenix AZ
    Posts
    6

    Default Re: Redirect after Signup?

    I just replaced line 286 with the redirect code. Glad you got it working good luck.

    Matt

  7. #7
    Join Date
    Dec 2007
    Posts
    83

    Default Re: Redirect after Signup?

    Thanks for this code, I'm using it for members to redirect to previous page now and working like a charm!

  8. #8
    Join Date
    Jun 2004
    Location
    Beauceville, Quebec, Canada
    Posts
    132

    Default Re: Redirect after Signup?

    MODERATED - this thread is about OR v2 core file changes.

Similar Threads

  1. Redirect after signup?
    By highstreet in forum General Help (CLOSED)
    Replies: 1
    Last Post: 12-18-2009, 09:45 AM
  2. best way to redirect one site to another
    By bit in forum General Help (CLOSED)
    Replies: 2
    Last Post: 11-22-2007, 12:20 PM
  3. url redirect
    By eXinRex in forum General Help (CLOSED)
    Replies: 5
    Last Post: 11-16-2007, 10:43 PM
  4. Replies: 20
    Last Post: 03-11-2007, 01:45 PM
  5. Agent signup vs member signup
    By frobn in forum HELP (CLOSED)
    Replies: 1
    Last Post: 09-03-2004, 12:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •