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

Debug for admins only

Discussion in 'Feedback & Suggestions' started by Liam23, Jun 27, 2012.

  1. Liam23
    Classy

    Liam23 I'd pick Bacon over Sex

    Likes Received:
    9
    Hey, I think you guys should remove the debug info from guests and normal members view..
    Do this by going to the footer template Via ACP
    Find:
    Code:
    <xen:if is="{$debugMode}">
    Replace with:
    Code:
    <xen:if is="{$debugMode} AND {$visitor.is_admin}">
     
    • Like Like x 1
  2. Kevin
    Cheerful

    Kevin Code Monkey Staff Member

    Likes Received:
    69
    Actually I have set in the config.php file to only turn on for one 1 IP. :confused: I've turned it off for now, will experiment a bit better when I'm back home.

    Thanks for alerting me that it was turned on (and work-around)! (y)
     
    • Like Like x 1
  3. Liam23
    Classy

    Liam23 I'd pick Bacon over Sex

    Likes Received:
    9
    Happy I could help!
    Id love to experiment with you guys (With xenforo, nothing else :rolleyes:)
    Feel free to ask me if you would like any quick code modifications :)
     
  4. BaconBitch
    Creative

    BaconBitch Administrator Staff Member

    Likes Received:
    36
    A fully fledged, fully functional smiley manager? *watches Liam run away* :LOL:
     
    • Like Like x 1
    • Funny Funny x 1
  5. Liam23
    Classy

    Liam23 I'd pick Bacon over Sex

    Likes Received:
    9
    *Liam quickly replies to @BaconBitch 's request with a file called "SuperSmileyManager.zip" but it really just has some porn in it* :cool:
     

    Attached Files:

  6. Kevin
    Cheerful

    Kevin Code Monkey Staff Member

    Likes Received:
    69
    FYI Followup: The cause for debug showing up for everybody instead of just the specified IP was a stupid Kevin human error.
     
    • Funny Funny x 2
  7. Brandon
    Baconlover

    Brandon New Member

    Likes Received:
    7
    FYI.. Adding that line will hide the info in the footer but if you know the setup for the thread debug info, you can still access it.
     
    • Like Like x 1
    • Informative Informative x 1
  8. Kevin
    Cheerful

    Kevin Code Monkey Staff Member

    Likes Received:
    69
    Good point! Somebody knowing the XF URL structure could blindly try it on a site and see the page even though the link isn't visible.
     

Share This Page

Pin It