Alternate login/logout redirect.html pages?

Discussion in 'Customization & add-ons' started by wasp88, Jul 6, 2006.

  1. wasp88

    wasp88 New Member

    Joined:
    Mar 12, 2006
    Messages:
    14
    My client wants the subscriber to click on a "I agree" button every time they login in. I've done this by removing the "refresh" meta tag in the header of the redirect.html file and added a dummy-button that links to {$url}.

    So far, this seems to work, though I hope there's a more elegant solution that actually utilizes PHP.

    However, I am now stuck with the subscriber having to click that same "I agree" button to exit the site after logging out.

    How do I redirect subscribers to seperate login/logout pages with different functions?

    Thanks.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    1. Please keep original redirect.html back.

    2.
    Edit file amember/templates/login.html
    add "i_agree" checkbox with value=1 into the login form.

    Then edit file amember/plugins/protect/php_include/check.inc.php
    and replace

    function _amember_check_access(){

    to

    function _amember_check_access(){
    if (!$_REQUEST['i_agree']) return "You must check 'I Agree' checkbox";
  3. wasp88

    wasp88 New Member

    Joined:
    Mar 12, 2006
    Messages:
    14
    Thank you for the code. However, the subscriber can log in from either the /amember/templates/login.html page or the site's index.shtml page. How can I have the "I agree" button appear in the /amember/templates/redirect.html page?

    Secondly, how can I redirect the subscriber to an alternate /amember/templates/redirect.html page when they log out?

    Ex:

    login > display redirect_01 (w/"i agree" button) > protected folder

    logout > display redirect_02 ("thank you" message) > site's home page
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    redirect.html is used for many different goals, so it is bad idea to change it just for login.

    you may make changes to amember/plugins/protect/php_include/check.inc.php
    to accompilish your goals, but it requires some programming knowledge.
  5. wasp88

    wasp88 New Member

    Joined:
    Mar 12, 2006
    Messages:
    14
    Thank you for the input. Unfortunately, programming is not my strength.

    I'll give it the ol' college try however if you point me in the right direction. Any specific resources you recommend?:confused:

Share This Page