ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How To: Membership Questions

July 04, 2007 7:31am

Subscribe [3]
  • #1 / Jul 04, 2007 7:31am

    kingdoz

    45 posts

    I have the following questions/issues:

    1) RESOLVED: How do I show the login status of a member on non membership template pages? I tried inserting the following code but it did not get parsed:

    {lang:logged_in_as}  <span class="defaultBold"><a href="http://{profile_path=member/index}">{name}</a></span>

    Solution: {screen_name} Sign Out

     

    2 a) How do I embed a membership template within a site template? OR

    2 b) How do I embed a site template within a membership template?

     

    3) How do I put the site template around error/redirect/confirmation pages?

    4) How do I redirect a person to a membership template page (i.e in CP Home ›  Templates ›  Template Access Restriction) if one of the options is set to “no”? (in other words, if someone tries to access template A and they’re not logged in, then it shows the login page, but if they are logged in, then it shows the template being requested)

  • #2 / Jul 04, 2007 10:50am

    AussieFreelancer

    72 posts

    3) How do I put the site template around error/redirect/confirmation pages?

    CP Home ›  System Administration ›  Specialty Templates ›  User Message Template

    4) How do I redirect a person to a membership template page (i.e in CP Home › Templates › Template Access Restriction) if one of the options is set to “no”? (in other words, if someone tries to access template A and they’re not logged in, then it shows the login page, but if they are logged in, then it shows the template being requested)

    On each template, you could use the following:

    {if logged_in}
    
    //show template code
    
    {if:else}
    
    //display a stand alone login form, as found in the docs
    
    {/if}

    I have used that method before and it works fine.

    Thanks

    Patrick

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases