Redirect user to member area

Discussion in 'Customization & add-ons' started by willnewton, Oct 27, 2009.

  1. willnewton

    willnewton New Member

    Joined:
    Oct 17, 2009
    Messages:
    7
    Perhaps I've missed it, but I'm trying to work out how to redirect a user to a specific page (a kind of members' homepage) when they sign in. I'm using amember & joomla 1.5.

    Does anyone know if this can be done... and how?

    Thanks

    Will
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Are you trying to redirect them from the amember login or the joomla login?

    David
  3. willnewton

    willnewton New Member

    Joined:
    Oct 17, 2009
    Messages:
    7
    It's the standard Joomla login module, now integrated with amember using the Joomla plugin.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Think you will need to go in and change some of the login code.
    Sometimes the login is specific to the template you are using.

    in modules/mod_login/tmpl/default.php
    change
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
    to
    <input type="hidden" name="return" value="/redirect" />

    David
  5. willnewton

    willnewton New Member

    Joined:
    Oct 17, 2009
    Messages:
    7
    Thanks David

    Do I need to specify where it redirects to somehow?
  6. willnewton

    willnewton New Member

    Joined:
    Oct 17, 2009
    Messages:
    7
    Thanks David, all sorted. I think I had 1am brain-fog back there.

    Will

Share This Page