[bbDev] WP user integration works, but...

Sean Hayford O'Leary sdho at sdho.org
Sat Aug 12 20:29:55 GMT 2006


For mod_rewrite, check this out:
http://comox.textdrive.com/pipermail/bbdev/2006-January/000481.html

On 8/12/06, Austin Matzko <if.website at gmail.com> wrote:
> On 8/12/06, Max Roeleveld <max at doenietzomoeilijk.nl> wrote:
> > - WP functions and plugins
> > I'd really like to be able to use WP functions (and building on that,
> > themes), but if I include wp-config.php I get errors, stating that
> > certain functions are already defined, etc. Simply put: there seem to
> > be namespace conflicts.
> >
> > Is that right, or have I (again) screwed stuff up? If I *am* right,
> > is there a simple way to get around these issues? AFAIK, you can't
> > just include certain parts of WP, since pretty much everything
> > depends on something else, and WP will include all kinds of things
> > anyway.
>
> I have had a WordPress / bbPress integration going for some time, and
> when I upgraded WP last week I decided to update bbPress to the newest
> version as well, which introduced those very same errors you mention.
>
> I got around them by commenting out this line 61 in bb-settings.php:
> require( BBPATH . 'bb-includes/l10n.php');
> (the internationalization functions apparently are duplicates of WP functions)
> and I added a line at 237 in bb-includes/functions.php, changing
>
>                                         else
>
> call_user_func($function, $string);
>
> to
>
>                                         else {
>                                                 if
> (is_array($function)) $function = $function['function'];
>
> call_user_func($function, $string);
>                                         }
>
> I hope that helps.
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev
>


-- 
Sean Hayford O'Leary
http://sdho.org


More information about the bbDev mailing list