how do i make only 1 user to see debug mode?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FatalBreeze
    Senior Member
    • Apr 2004
    • 144
    • 3.6.x

    how do i make only 1 user to see debug mode?

    Hello, i wanted to know how i make only 1 user see debug mode in admincp.
    First i tried this in the config file:
    if($bbuserinfo[userid]==1)
    $debug=1;

    but it didnt work.
    so what do i have to do?
  • JulianD
    Senior Member
    • Mar 2002
    • 305
    • 3.8.x

    #2
    You should ask this kind of questions on vbulletin.org... Anyway, I'll PM you my possible solution to your request.
    ~ LANeros.com ~

    Comment

    • Floris
      Senior Member
      • Dec 2001
      • 37767

      #3
      Originally posted by FatalBreeze
      Hello, i wanted to know how i make only 1 user see debug mode in admincp.
      First i tried this in the config file:
      if($bbuserinfo[userid]==1)
      $debug=1;

      but it didnt work.
      so what do i have to do?
      Yes, this should go to vBulletin.org - however, here is what I use for my static IP address (not really usefull if you are not on a static IP)/.

      in config.php (before the ?> end tag) I added:

      Code:
      if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123')
      {
      $debug = 1;
      } else {
      $debug = 0;
      }
      As I am the only one with that IP, it will show in debug for me, and normal to the rest.

      Comment

      • Icheb
        Senior Member
        • Nov 2002
        • 1291

        #4
        Originally posted by FatalBreeze
        Hello, i wanted to know how i make only 1 user see debug mode in admincp.
        First i tried this in the config file:
        if($bbuserinfo[userid]==1)
        $debug=1;

        but it didnt work.
        so what do i have to do?
        It didn't work because $bbuserinfo['userid'] gets defined after config.php is called. You need config.php to connect to the database and you need the database to populate $bbuserinfo['userid'] .

        Comment

        Related Topics

        Collapse

        Working...