Jump to content
Liam23

Debug for admins only

Recommended Posts

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:

<xen:if is="{$debugMode}">

 

Replace with:

<xen:if is="{$debugMode} AND {$visitor.is_admin}">

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites
Actually I have set in the config.php file to only turn onfor 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)

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 :)

Share this post


Link to post
Share on other sites
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 :)

 

A fully fledged, fully functional smiley manager? *watches Liam run away* :LOL:

Share this post


Link to post
Share on other sites
A fully fledged, fully functional smiley manager? *watches Liam run away* :LOL:

 

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

SuperSmileyManager.zip

Share this post


Link to post
Share on other sites

FYI Followup: The cause for debug showing up for everybody instead of just the specified IP was a stupid Kevin human error.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

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 post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.