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.

Entries and member groups.

June 28, 2011 1:38pm

Subscribe [3]
  • #1 / Jun 28, 2011 1:38pm

    redbloc

    24 posts

    Hi all,
    Just looking for some advice. I’m building a site that has a list of entries (in this case they’re events). There’s a few levels of membership to the site, from normal user, to member to VIP. I’d like the VIP to see all entries, the member to see nearly all and the regular browser to see a few.

    Is it possible to set the access level of an entry to a set user level and filter accordingly in the channel entry tag?

    Cheers for listening…

  • #2 / Jun 29, 2011 6:57am

    John Henry Donovan

    12339 posts

    RedBloc,

    You could create a new custom field of the dropdown variety and add regular, member, vip to it. Call it member_dropper for this example

    Then you can tag each entry as you create it.

    In your templates you can then add something like this employing the search parameter

    Note that Guest group is always 3

    {if group_id == '3'}
    {exp:channel:entries channel="news" search:member_dropper="=regular" dynamic="no"}
    ....content…
    {/exp:channel:entries}
    {/if}
    
    {if group_id == '5'}
    {exp:channel:entries channel="news" search:member_dropper="=regular|member" dynamic="no"}
    ....content…
    {/exp:channel:entries}
    {/if}
    
    {if group_id == '6'}
    {exp:channel:entries channel="news" search:member_dropper="=regular|member|vip" dynamic="no"}
    ....content…
    {/exp:channel:entries}
    {/if}

    There are probably a few more ways to come up with what you want. There may even be memebr addons over at devot-ee.com that may help

  • #3 / Jun 29, 2011 7:03am

    redbloc

    24 posts

    Thanks John, I’ll give it a go.

  • #4 / Jun 29, 2011 7:04am

    John Henry Donovan

    12339 posts

    No problems. Let me move this to Community Help forums so if anybody else wants to chime in they can

  • #5 / Jul 18, 2011 1:42pm

    kev_horan

    50 posts

    Hey Redbloc

    http://elivz.com/blog/single/vz_members

    ...might be of interest.
    K

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

ExpressionEngine News!

#eecms, #events, #releases