Title: Adding this Code to WP-Config Without Breaking Everything
Last modified: August 19, 2016

---

# Adding this Code to WP-Config Without Breaking Everything

 *  [Kitmitsu](https://wordpress.org/support/users/kitmitsu/)
 * (@kitmitsu)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-this-code-to-wp-config-without-breaking-everything/)
 * I have a vBulletin login box I’d like to display on my wordpress installation
   but it’s causing a lot of hassle. I eventually found out how to do it properly
   without the two systems functions interfering thanks to this post: [http://wordpress.org/support/topic/vbulletin-login-in-sidebar?replies=7](http://wordpress.org/support/topic/vbulletin-login-in-sidebar?replies=7)
 * All I have to do is add this code to my wp-config:
 *     ```
       $root = $_SERVER['DOCUMENT_ROOT'];
       $curdir = getcwd ();
       chdir("$root/forums/");
       require("$root/forums/global.php");
       chdir ($curdir);
       ```
   
 * After doing it, the login box works perfectly but some random parts of the WP
   admin panel stop working. Plugin settings throws up a permissions warning and
   uploading images to posts asks me to try again. Once I remove the code it all
   works fine again but I really need it to be in the config file.
 * Any ideas?
 * Thanks.

The topic ‘Adding this Code to WP-Config Without Breaking Everything’ is closed 
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Kitmitsu](https://wordpress.org/support/users/kitmitsu/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/adding-this-code-to-wp-config-without-breaking-everything/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
