no more redirect?

Discussion in 'Customization & add-ons' started by jasondavis, Dec 10, 2004.

  1. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    Is there an easy way to skip the redirecting page when loggin in, like go straight to amember/member.php
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    No, at least without code modification, it is impossile. But why is it required?
  3. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    It would be uselful as a personal preference for me

    when I sign in to amember from a form I have on a page it goes to the redirect page then the member.php page, if I go to a page protected while logged out it will include the login form and after logging in it goes directly to that page without going to the redirect page, I would like to make my form used sitewide on other pages to skip the redirect page when logging in
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I dont' recommend this, but you can edit file
    amember/common.inc.php and replace

    function html_redirect($url, $print_header=0, $title='', $text=''){
    global $t;
    if (!$t) $t = &new_smarty();
    $t->assign('title', $title);
    $t->assign('text', $text);
    $t->assign('url', $url);
    $t->display('redirect.html');
    }

    to

    function html_redirect($url, $print_header=0, $title='', $text=''){
    header("Location: $url");
    }
  5. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    thanks, also just curious why is it not recommended?
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I have not tested it, so potentially there can be troubles.

Share This Page