Announcement

Collapse
No announcement yet.

Enable Debug mode automatically when entering admincp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enable Debug mode automatically when entering admincp

    In you config.php enter this code at the end just above "?>"
    Code:
    if (VB_AREA == 'AdminCP') 
    
    { 
    
            $config['Misc']['debug'] = true; 
    
    }
    The debug mode will now be enabled automatically when you enter the admincp and disabled once you leave it again.

    And another tip from Floris:

    And to just turn debug mode on for your own IP address, but for the whole forum (forum and admincp) enter this at the end of the config.php file, before the ?> code.

    Code:
    $ips = array('123.123.123.123');
    $config['Misc']['debug'] = (in_array($_SERVER['REMOTE_ADDR'], $ips) ? true : false);
    Replace 123.123.123.123 with your own IP address, you can find your IP here. The benefit of this is that it also runs in debug if you change to another account - handy for testing without showing debug to everybody.
    I'm not under the alkafluence of inkahol like some thinkle peep I am!

Related Topics

Collapse

Working...
X