[Modification] "Debug Info" in Footer for Admins Only

Status
Not open for further replies.

Vincent_imported

Trusted Member
Joined
Dec 1, 2010
Messages
747

Hello,
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:
Code:
<xen:if is="{$debugMode}">

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

Done ;)
 

Mikey

:mikey:
Staff member
Joined
Jan 26, 2008
Messages
17,835
Great guide, however I personally like to run the forum in debug mode for just my IP.

In /library/config.php I have this:
PHP:
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
$config['debug'] = 'true';
}

Replacing 127.0.0.1 (localhost) with my real IP.
 

Vincent_imported

Trusted Member
Joined
Dec 1, 2010
Messages
747
Great guide, however I personally like to run the forum in debug mode for just my IP.

In /library/config.php I have this:
PHP:
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
$config['debug'] = 'true';
}

Replacing 127.0.0.1 (localhost) with my real IP.

I know that trick ;) But my IP changes every few days so it doesn't really come handy for me :(
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,183
Very cool little tweak, thanks for sharing! We're considering adding it to our web site.
 

Nerdface

OMG Member
Joined
Dec 25, 2003
Messages
110
Later still, but thank you. :D

I decided that my footer was looking a little "tardy" with the debug info.
 
Status
Not open for further replies.
Top