change amember homepage to show member info when logged in..

Discussion in 'Templates customization' started by webmonkeys, Mar 6, 2009.

  1. webmonkeys

    webmonkeys New Member

    Joined:
    Aug 3, 2008
    Messages:
    12
    Hi guys,
    I am wanting to have our club home page contents change from being a features/signup content to member.html when a user is logged in.

    For example
    Not logged in (https://secure.joomlajunkie.com/):
    http://www.quicksnapper.com/connectr/image/joomlajunkieclub

    Logged in (https://secure.joomlajunkie.com/):
    http://www.quicksnapper.com/connectr/image/member

    The concept is the same as facebook, where if you go to facebook.com and have not logged in, you see the signup form, but if you are logged in, you see your friends activity stream. The same goes for flickr.com.

    I think i have this down conceptually, in the templates index.html:

    PHP:
    {if $smarty.session._amember_user.member_id}
        {include 
    file="member.html"}
    {else}
        {include 
    file="club.html"}
    {/if}
    But need to know if there are any considerations that i may have missed (such as the login redirect url).

    Thanks,
    Chris
  2. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    isn't that exactly what aMember does already, out of the box?

    if you forward all your logged in or non-logged in members to member.html, they will either see the member.html (if logged in) or login.html (if not logged in)...

Share This Page