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.

Links for particular users

September 26, 2011 11:28pm

Subscribe [3]
  • #1 / Sep 26, 2011 11:28pm

    stannz

    61 posts

    Is there anyway to make a certain member see different links or no links at all on certain pages?

    For instance member A on the side bar after logging in can click on user profile. This same sidebar is embedded on all the pages of the web-site, “home” , “about us” etc.

    So therefore member A can view his user profile no matter what page he’s on.
    ———————————-
    Now, member B logs in, I don’t want member B to be able to see or click on the link that says “user profile”, but this same link is on all the pages in the embedded sidebar on “home” , “about us” etc.

    If I remove the link on the embedded sidebar, then member A won’t see it when he logs in.

    So my question is really how to make member B see specific or different links on the same exact pages that member A is allowed to see?

    Hope this is not too confusing

  • #2 / Sep 27, 2011 8:15am

    Sue Crocker

    26054 posts

    Hi, nazsect.

    You’d have to have two different member groups, and depending on which member group you’re in, you show one template or another. You could use a series of if statements to embed the sidebar.

    Does that help?

  • #3 / Sep 27, 2011 12:28pm

    stannz

    61 posts

    Not really, the members ARE in different groups, I understand that.

    **But I don’t know how to show different templates to Member B and Member A when they are logging into the same form. How do I do that?

    **Also how do I embed different sidebars for members of different groups so that when they are both on the same page they see 2 different things?

    **Lastly would have to create basically an entire duplicate site (same pages with links missing) just to hide links from a specific member group?


    I couldn’t find this information in the instructions

  • #4 / Sep 28, 2011 9:41pm

    Dan Decker

    7338 posts

    Hi nazsect,

    Let me see if I can offer some assistance. What you would do to display different content might look something like this:

    {if logged_in_group == “4”}
      {embed=“sidebar/group_4”}
    {/if}
    {if logged_in_group == “5”}
      {embed=“sidebar/group_5”}
    {/if}

    In this scenario you would need to substitute the correct group IDs for your purposes. You would also want to substitute “sidebar/group_n” with the correct template-group/template names. Let me know if you have any further question.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases