1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

"Debug Info" in Footer for Admins Only

Discussion in 'Template Modifications [Archive]' started by Vincent, Apr 30, 2011.

  1. Vincent

    Vincent Well-Known Member

    I think my users don't have to know when debug mode is on, that's why I made this modification. It only shows the debug info for logged in admins.

    Open up the template called footer,

    Search for:
    <xen:if is="{$debugMode}">
    Replace with
    <xen:if is="{$debugMode} AND {$visitor.is_admin}">
    Done ;)
    Staxed, A.E. and sylwester like this.
  2. James

    James Well-Known Member

    The problem is that the debug parameter can still be used, even if the footer info isn't available.

    Nice little tweak though :)
  3. Vincent

    Vincent Well-Known Member

    I know, but still, at least now random people don't see that page :p
  4. cobra1162

    cobra1162 Active Member

Share This Page