Very Simple Question (It should be).

Discussion in 'Installation' started by ericr23, Feb 23, 2004.

  1. ericr23

    ericr23 Guest

    I have asked this question here at least twice but I have never gotten a good answer.

    What I want to do is very simple, or at least it should be.
    After a user logs in, I want them to go to a page OTHER THAN THE MEMBER.PHP page. I want to redirect them to another page. How/where is this done??

    Thanks...
  2. afoote98

    afoote98 Guest

    My Solution......


    Hi .. I had this same problem.. Rather than change/edit the files with Amember (for easer update, so I could just overwrite files without worry), I instead just made a basic PHP login for my site.

    Assuming you installed Amember the default way, the table with the members username and password should be "amember_members".. replace the amember_" with whatever you chose as your prefix.

    You can get as complex as you want to as far as security checks go.
    They may be other ways to do this, and my way may not be the best or most secure but I've have not problems so far in over 1 year of using it.

    If you don't know how to do a PHP/Mysql login.. just search online. There are lots of examples to use, that is all I did. Just edit them to fit with your settings. If you would like to also have sessions and/or cookies you will need to add further code but below is an example of just a basic login with no sessions or cookies. It just checks to see if the username and password are correct.. this is what I used.

    http://www.weberdev.com/get_example.php3/1690


    Best Regards
    AJ Foote
    support@whp7.com
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    User redirected to page amember/member.php in case if:
    1) he has no active subscriptions
    2) he has several active subscriptions
    3) he has ONE active subscription, but URL is not entered into product settings so script don't know where to redirect customer.

    I bevelive that it is correct to redirect customer to member.php in case 1 and 2. If you don't agree with me, edit file amember/login.php and replace member.php to any link you wish.

Share This Page