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.

Content for only Super Admin

November 15, 2011 2:40pm

Subscribe [4]
  • #1 / Nov 15, 2011 2:40pm

    mechwd

    33 posts

    Ive been trying to make an admin bar that contains information about the site on all pages that I want only viewable to Super Admins. For some reason I can’t get it to display.

    I have tried

    {if group_id == '1'}
        <header id="adminHeader">Hello Super Admin person</header>
    {/if}
    {if member_group == '1'}
        <header id="adminHeader">Hello Super Admin person</header>
    {/if}

    I even tried the generic

    {if logged_in}

    with no luck.  HELP!

  • #2 / Nov 15, 2011 2:56pm

    DanL

    56 posts

    Are you running a Freelancer license?  I wonder if this is a restriction since it doesn’t include the member module. I’ve used all three of your snippets successfully with a commercial license…

  • #3 / Nov 15, 2011 3:05pm

    mechwd

    33 posts

    Whats funny, is that I am working with a commercial license, and another site that I own that uses the freelance license works fine.
    Here is my EE version: v2.1.0 Build 20111017

  • #4 / Nov 15, 2011 3:12pm

    If you just have {group_id} on the page does anything output? Are you logged into the control panel on the same domain? Even if one has www and the other doesn’t that could possible create the problem.

  • #5 / Nov 15, 2011 3:29pm

    mechwd

    33 posts

    Weird, it has it listed as a 3 (guest).

    The admin is on a different domain (beta.site.com) even though it is hooked up to the same database (don’t ask). And testing it on the beta that was the issue. Thanks.

  • #6 / Nov 15, 2011 3:33pm

    The different domain is probably the culprit then. Is it possible to get it on the same domain?

  • #7 / Nov 15, 2011 4:27pm

    mechwd

    33 posts

    Eventually. My project is low priority, but I can work on a different (beta) url until it can be changed… just no admins will be able to see the new bar. Which is fine. Site isnt being used yet.

  • #8 / Nov 16, 2011 3:41am

    John Henry Donovan

    12339 posts

    Hi mechwd,

    The admin is on a different domain (beta.site.com) even though it is hooked up to the same database (don’t ask).

    Then this is your only issue and you seem happy with this until you push the site to be used.

    Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases