Announcement

Collapse
No announcement yet.

How to Hide vBulletin 3.8.5 Debug Information Drop Down from Public View?

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

  • How to Hide vBulletin 3.8.5 Debug Information Drop Down from Public View?

    Hello

    When i enable debug option, the debugging information dropdown link becomes public and everybody can read/view the sql queries running in vbulletin... how can deny public view of this information so that only admin can view it?

    Please advice.


  • #2
    Debug is not recommended for a live site.

    That being said, you can put this in your config.php file:
    PHP Code:
    if ($_SERVER["REMOTE_ADDR"] == "xx.xx.xx.xx") {
        
    // enable debug mode for only my IP address
        
    $config['Misc']['debug'] = true;

    Use your IP instead of xx.xx.xx.xx

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment


    • #3
      Thanks, it worked!

      Comment


      • #4
        How do I add a member id instead of ip address?

        Comment


        • #5
          Originally posted by muratcan25 View Post
          How do I add a member id instead of ip address?
          You can't. When the config.php file is read, it has no information about you yet.

          Please don't PM or VM me for support - I only help out in the threads.
          vBulletin Manual & vBulletin 4.0 Code Documentation (API)
          Want help modifying your vbulletin forum? Head on over to vbulletin.org
          If I post CSS and you don't know where it goes, throw it into the additional.css template.

          W3Schools <- awesome site for html/css help

          Comment

          Related Topics

          Collapse

          Working...
          X