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.

if member_group conditional doesn't work

August 13, 2009 3:35pm

Subscribe [3]
  • #1 / Aug 13, 2009 3:35pm

    Gabriel

    130 posts

    I am working on multi-site right now and I met with the strange problem for me.

    I’ve created new multi-site and I’m logged as Super Admin. But I see nothing between conditional:

    {if member_group=="1"} {/if}

    on this multi-site. Browsing through other multi-sites I can see content between these conditionals without any problems.

    Please help.

  • #2 / Aug 13, 2009 3:43pm

    Ingmar

    29245 posts

    Try

    {if logged_in_group_id == "1"} Suepradmin!{/if}
  • #3 / Aug 13, 2009 3:50pm

    Gabriel

    130 posts

    Try

    {if logged_in_group_id == "1"} Suepradmin!{/if}

    Hi Ingmar! I see nothing :(

  • #4 / Aug 13, 2009 3:53pm

    Ingmar

    29245 posts

    Looks like you’er not a Superadmin, then (or not logged in as one). Can you try simply adding

    _code

    {logged_in_group_id}

    to the template in question?

  • #5 / Aug 13, 2009 3:55pm

    Gabriel

    130 posts

    I’ve tried

    {if logged_in_group_id == "1"} You are group 1{/if} 
    {if logged_in_group_id == "2"} You are group 2{/if} 
    {if logged_in_group_id == "3"} You are group 3{/if} 
    {if logged_in_group_id == "4"} You are group 4{/if} 
    {if logged_in_group_id == "5"} You are group 5{/if} 
    {if logged_in_group_id == "6"} You are group 6{/if}

    And system tells me I’m group 3 > Guests!

  • #6 / Aug 13, 2009 4:00pm

    Ingmar

    29245 posts

    You needn’t have used a conditional for that, but it’s as I suspected. You’re not logged in to the front end of the new site. See if these articles help.

  • #7 / Aug 13, 2009 4:11pm

    Gabriel

    130 posts

    Anyway, it doesn’t help me.

    That’s very strange. On two multi-sites I’m appear as Super Admin and on third as Guest…
    On main multi-site I’m appear as Super Admin and other multi-sites as Guest…

  • #8 / Aug 13, 2009 4:38pm

    Ingmar

    29245 posts

    What method of authentication are you using? Cookies?

  • #9 / Aug 13, 2009 5:11pm

    Gabriel

    130 posts

    I’m using cookies only for CP and web login.

  • #10 / Aug 13, 2009 6:08pm

    Mark Bowen

    12637 posts

    Just as an idea (might be wrong though) are you using the www version of the site for both the control panel and the front-end of the site or on the other hand if you aren’t using the www version for the control panel then you would need to make sure you are using the non www version for the front-end too.

    Best wishes,

    Mark

  • #11 / Aug 14, 2009 2:09am

    John Henry Donovan

    12339 posts

    Gabriel,

    On main multi-site I’m appear as Super Admin and other multi-sites as Guest…

    Have you tried logging into the front-end specifically, of each of the other multi-sites?

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

ExpressionEngine News!

#eecms, #events, #releases