1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remove the administrator info at the top

Discussion in 'Troubleshooting and Problems' started by wii, Oct 8, 2010.

  1. wii

    wii Active Member

    I really don't need this info at the top when logged in as admin:

    Moderation Queue: 0 Reported Items: 0 Admin Control Panel

    Can it be removed? If yes, where?

  2. borbole

    borbole Well-Known Member

    Find the following codes at the moderator_bar template and either remove them or comment them.

    <a href="{xen:link moderation-queue}" class="moderationQueue modLink">
                    <span class="itemLabel">{xen:phrase moderation_queue}:</span>
                    <span class="itemCount {xen:if {$session.moderationCounts.total}, 'alert'}">{$session.moderationCounts.total}</span>
                <a href="{xen:link reports}" class="reportedItems modLink">
                    <span class="itemLabel">{xen:phrase reported_items}:</span>
                    <span class="itemCount {xen:if {$session.reportCounts.total}, 'alert'}">{$session.reportCounts.total}</span>
  3. Onimua

    Onimua Well-Known Member

    That still includes the template call I think, even if the code within the template is removed. Alternatively you can look within the PAGE_CONTAINER template and remove it from there. It's the first thing right under the <body> tag.
  4. borbole

    borbole Well-Known Member

    Ah, I just saw that the OP wants to remove the link to the acp as well. In that case it would be better to remove it from the template you mentioned.
  5. wii

    wii Active Member

    Thanks, just this, right? I remove the bold.

    <xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
    <xen:include template="moderator_bar" />
    <xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
    <xen:include template="login_bar" />
  6. Onimua

    Onimua Well-Known Member

    Sorry about the late response, but it's hard keeping up here and playing on my on installation. :p

    I would just turn it into:

    <xen:if is="!{$visitor.user_id} && !{$hideLoginBar}" />
    <xen:include template="login_bar" />
    Though you might've already figured it out. This removes it from your moderater view too, so mindful of that should you want them to see it.
  7. Dean

    Dean Well-Known Member

    I've been curious. Why would you want to remove the moderator controls?
  8. wii

    wii Active Member

    I don't use it in that forum.
  9. Mopquill

    Mopquill Active Member

    Does no one use it in that forum? Because that template modification will hide it for anyone that would otherwise see it. If you have other staff members, it might be a more wise decision to make it not show up if the userid of the person logged in is yours, and otherwise, proceed as normal.
  10. wii

    wii Active Member

    Nope, there's only me.

    In my other forum I do have staff and will of course keep it.
  11. feldon30

    feldon30 Well-Known Member

    Ideally, this would be wrapped in a conditional so if the values are 0, the info isn't displayed.
    Omri.L likes this.
  12. wii

    wii Active Member

    I agree, that would be nice.
  13. dutchbb

    dutchbb Well-Known Member

Share This Page