Skipping Profile/subscriptions Page

Discussion in 'Templates customization' started by ScottC, Jun 17, 2003.

  1. ScottC

    ScottC Guest

    Is it possible to let a user pass directly to the protected content area instead of having to go through the subscriptions overview page? For some people it seems very confusing. I'd rather just add a subscription maintenance page to my protected index.html myself.

    Thanks in advance for such a great product!!
  2. alex-adm

    alex-adm Guest

    Use amember/login.php instead of amember/member.php
  3. ScottC

    ScottC Guest

    I tried that too, after I login I get the screen that I am being redirect to the protected area, the page then seems to go into a loop and keeps reloading, if I manually click the link I end up in /amember where I can pick login or signup, if I click login I am right back at member.php...
  4. alex-adm

    alex-adm Guest

    May I have a look?
  5. downwest

    downwest Guest

    Hi, Just getting to grips with this product (as you can tell) - I'd also like to skip the subscriptions page and go straight to the members section. Currently using "amember/login.php" but only takes to member.php - any thoughts suggestions would be very much appreciated.

    Thanks in advance

    Steve
  6. alex-adm

    alex-adm Guest

    How login.php works:

    IF there is 1 active subscription for customer and URL is set for this product, user will be redirected to this URL.
    ELSE user will be redirected to member.php page to order at least one subscription or choose URL to go from paid
    subscriptions.
  7. davemiz

    davemiz New Member

    Joined:
    Aug 22, 2006
    Messages:
    10
    what do you need to do to change the redirect url?

    I don't want the user going to members.php, its useless for members to keep seeing what they're paying for each time....

    i want members to go to the content they paid for.

    i'm not a programmer.... what do we need to change?
  8. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    In the product in amember, set the product URL to the URL you want to send them too.
    Then when they login at member.php they will be directed to the product URL.

    You can also hardcode a redirect into the login.html file.

    <input type="hidden" name="amember_redirect_url" value="/url-to-redirect"/>

    David
  9. erald

    erald aMember Pro Customer

    Joined:
    Jul 23, 2009
    Messages:
    20
    Hi I am not trying to hijack this thread but think it belongs here.
    The redirect input is working fine if you use that. I integrated the login form into my website and that works fine.

    However if the user makes an error in the password or username he will be redirected to the login pages which gives the error. I would like to redirect him to another page on my site. The same when there is no active subscription I like to redirect him to a special page to renew his subscription.)

    If you use a redirect it overrules the standard redirect of an active subscription. I would like to see that I can redirect to the url in the product and in case of an error to a special page and in case there is no subscription (but a login) to a special url.

    Is there a same way to do this in case an input error is made?

    thanks
  10. erald

    erald aMember Pro Customer

    Joined:
    Jul 23, 2009
    Messages:
    20
    Ok I solved one of the problems myself

    If I do not use the redirect but the standard redirect of the product (if active) then it uses the url in there. I made a change in the login.php that it redirects to the another page on my site in case the subscription is expired (so the login exsists, but no subscription active)

    Almost at the end of login.php the line:
    $redirect = $config['root_url'] . "/member.php";
    I changed to
    $redirect = "/content/my-account";
    That works wonderful.

    Now I have the only problem where to change the redirect url in case there is an error (so wrong password or non existing user)

    Could anyone tell me where to find this?

    Thanks

Share This Page