[bbDev] Re: Include bb from WP

Michael D Adams mikea at turbonet.com
Mon Jun 4 17:36:20 GMT 2007


On Jun 4, 2007, at 10:17 AM, fel64 at loinhead.net wrote:
> An issue of scope? Declaring global $bbdb before db.php is loaded  
> instead
> also makes everything run smoothly. However I don't know why  
> loading WP
> first should affect the scope or $bbdb anyway. Does anyone know?
>
> Anyway, solution: putting global $bbdb; in bb's config.php file.

Are you globalizing $bbdb in the function you load bbPress from?

Michael



More information about the bbDev mailing list