Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Redirecting members after login and logout - Half way there, assistance required

  1. #11
    Join Date
    Jan 2007
    Posts
    403

    Default Re: Redirecting members after login and logout - Half way there, assistance required

    Not sure what you could mean? The solution to my problem was in the post immediately before mine. "In login.inc.php change the header command on line 199 to redirect to where you want." from pb. Or am I missing your point?

  2. #12
    Join Date
    Dec 2008
    Posts
    8

    Default Re: Redirecting members after login and logout - Half way there, assistance required

    I still have problem with redirect after logout. error message
    Forbidden

    On address url = http://test.xxxxxxx.com/%20//test.xx....com/index.php

    You don't have permission to access / //test.xxxxxxx.com/index.php on this server.

    I am not activated .htaccess yet.
    Can anybody help me pls. I realy appreciated thank you


    Quote Originally Posted by zarathustra View Post
    Hi all.

    What I would like:
    That members click a a "login" button on the main menu, which drops down a login form for them to "sign in" to a generic "members area". Having signed in I would like them whisked directly there. The main menu link then changes to "logout". When that is pressed they are simply deposited back on the home page.

    What I have already accomplished:
    All of the above, except the redirect to a chosen page after login. The main nav button is a simple matter of surrounding the login button with {check_guest} and the logout button with {check_member} tags. The drop down form I animated with jQuery.

    How I redirected after logout:
    I managed to redirect back to the home page (rather than the "original" sign in form) by changing line 399 of "login.inc.php":

    Code:
     // Refresh the screen
                    if ($type == 'admin') {
                            header('Location:' . $config['baseurl'] . '/admin/');
    Changed to:
    Code:
    // Refresh the screen
                    if ($type == 'admin') {
                            header('Location:' . $config['baseurl'] . '/');
    The help I require:
    Could someone please indicate the core changes required to redirect to a specific page on successful sign in?

    Many thanks as always.

  3. #13
    Join Date
    Nov 2009
    Posts
    56

    Default Re: Redirecting members after login and logout - Half way there, assistance required

    Is this line number still the same in the new version of OR? Looking to change the re-direct page in the current version? Any thoughts I want to direct the logged in person back to the main.html as a logged in user to view the {member or agent info} instead of going to the admin page. Is this possible?

  4. #14
    Join Date
    Mar 2004
    Age
    98
    Posts
    207

    Default Re: Redirecting members after login and logout - Half way there, assistance required

    Might seem stupid but why not just have your login link pointing at whatever you want them to go to?
    This would put them through the login and automatically on to your page
    like admin/index.php?action=user_manager
    which would take someone through the login and straight on to the user manager

    If you wanted the url to look neater you could use an htaccess rewrite
    This would save you changing core files.

  5. #15
    Join Date
    Dec 2009
    Posts
    11

    Default Re: Redirecting members after login and logout - Half way there, assistance required

    Quote Originally Posted by pbflash View Post
    I didn't realize the content you want restricted was within OR.

    In login.inc.php change the header command on line 199 to redirect to where you want.
    How would I do the same thing but for after signing up the first time (not on login every time)?

Similar Threads

  1. UMP - Diagnosis assistance required
    By julianps in forum Language help, ideas, discussion & Releases (CLOSED)
    Replies: 7
    Last Post: 06-03-2008, 01:38 AM
  2. Delay in Login for Members
    By istos in forum Installation/Configuration Help (CLOSED)
    Replies: 5
    Last Post: 04-03-2007, 01:32 PM
  3. LOGIN / LOGOUT links?
    By cellularguy in forum General Help (CLOSED)
    Replies: 1
    Last Post: 06-15-2005, 09:34 PM
  4. Half the site works half doesnt
    By skeeve in forum HELP (CLOSED)
    Replies: 8
    Last Post: 02-18-2005, 04:36 PM
  5. no logout for members
    By marb in forum Feature Request (CLOSED)
    Replies: 1
    Last Post: 06-28-2003, 07:17 PM

Tags for this Thread

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
  •