Redirect upon login

Discussion in 'Integration' started by theadvocateonline, Dec 31, 2012.

  1. theadvocateonline

    theadvocateonline New Member

    Joined:
    Dec 28, 2012
    Messages:
    2
    I apologize if this has been answered elsewhere, but I couldn't find it... :)

    Once someone has been logged into the site, is there a way to send them to the home page? I'm working with non technical users, so when they try to access the site, it takes them to a login page. Once they login though, it stays on that page, and just changes their options. What I would rather it do is to send them automatically to the main page upon login.
  2. theadvocateonline

    theadvocateonline New Member

    Joined:
    Dec 28, 2012
    Messages:
    2
    This happens when someone is using my login form on WordPress. I saw where you can change the login if they are actually inside of the amember login screen, as opposed to the widget screen. Maybe I'll just set up a button that takes them directly to amember login if they are already a member, and go with that.

    Okay, got it to work. My work around was to use the default login page for amember, and it then redirects naturally. It works very well. When someone hits my site, they are directed to a nice page with big happy buttons for them to use. When they click the button for already a member, it works like a charm.
  3. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    Take a look at this solution. I think you will like it :) Screencast

    Also note that the redirect target when logging into and out of aMember is controlled at:
    1. Admin Control Panel
    2. Configuration
    3. Setup/Configuration
    4. Login Page
    5. Then configure "Redirect After Login" and "Redirect after Logout"
  4. steveclarke

    steveclarke New Member

    Joined:
    Nov 27, 2012
    Messages:
    17
    how about redirecting different users (i.e. different payment subscribers) to more specialised parts of my website?

    for example, when a super user logs in, they are redirected to the super user pages.. and normal users are redirected to the normal redirect..
  5. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    That is not currently supported. You could request the feature as an improvement in the aMember BugTracker and see if it gets added to the road map.
  6. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    You could do this by having a standard page everyone gets redirected to and then at the start of the page use
    Am_Lite::getInstance()->getProducts()
    and use a php 'include' statement to load the relevant parts of the page depending upon which products person is subscribed to.
  7. steveclarke

    steveclarke New Member

    Joined:
    Nov 27, 2012
    Messages:
    17
    hrmm.. interesting concept...

    i'm using something very similar already whether to show certain content

    however, i'd like different users to go to different pages rather than 'hiding/showing' content using the include method as you've described... as i need 'super users' that i've created to access info easily rather than having to go through links to get to their space that i've created.

    as per @gswaim suggestion, i'll raise an improvement via their bug tracker!

    cheers guys!

Share This Page