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

Status
Not open for further replies.

Vincent_imported

Trusted Member
Dec 1, 2010
747
0
100
30
Belgium
www.hlxbans.net

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 ;)
 
  • Like
Reactions: 4 people

Mikey

:mikey:
Staff member
Jan 26, 2008
17,835
691
510
34
Disunited Queendom
mikeylicio.us
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
Dec 1, 2010
747
0
100
30
Belgium
www.hlxbans.net
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 :(
 
  • Like
Reactions: 1 person
Status
Not open for further replies.