removing redirect.html page

Discussion in 'Templates customization' started by gmtimothy, Sep 12, 2011.

  1. gmtimothy

    gmtimothy New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    I searched the forum but didn't find an answer to my question.

    On amember.com when you login you are taken to your member page, and you do not see the redirect.html "splash page" text - "now taking you to protected page"

    how do you remove that from the site so it doesn't display it simply takes you to the redirected page like member.php or the url of the product directly with no "splash" screen

    thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Edit /amember/common.inc.php:
    find this:
    PHP:
    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');
    }

    change above code to:
    PHP:
    function html_redirect($url$print_header=0$title=''$text=''){
    Header('Location: $url');
    }

Share This Page