This code works on my WP 3.0.4 Multisite, BP 1.2.7 install, but unfortunately it breaks my chat function. I use cometchat for buddypress, and as soon as applying this code in bp-custom.php in the plugins folder, cometchat breaks (does not show up at all). Any idea what can be causing this?