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.

Member only pages

October 29, 2007 12:28pm

Subscribe [1]
  • #1 / Oct 29, 2007 12:28pm

    nullbreached

    116 posts

    How do I create “Members Only” pages?

  • #2 / Oct 29, 2007 1:15pm

    atealtha

    21 posts

    This should get you started.

    {!--- banned or anonymous ---}
    {if group_id == '3' OR group_id == '2'}
    
        <html><head><meta http-equiv="refresh" content="0;url=/members/login/" /></head></html>
    
    {if:else}
    
        {!--- page here ---}
    
    {/if}

    It would be much better to include this in a header specifically for members pages. That way you can easily manage more complex authorizations.

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

ExpressionEngine News!

#eecms, #events, #releases