Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: new version of BuddyPress Rate Forum Posts


r-a-y
Keymaster

@r-a-y

@Dwenaus

I recently came across a problem similar to @etiviti (rich!)’s.

In rate.php on line 3, you believe that bb-config.php will always reside in the root directory, but if you’re using an external bbPress integration, this won’t be the case.

The easy way to fix this is to grab the bb config location using:

get_site_option('bb-config-location');

This would be for MU, not sure where the bb-config-location will be in standard WP.

[EDIT]

etiviti (rich!) already provided the solution!

Declare the global $bp and use $bp->site_options[‘bb-config-location’];

global $bp;
require_once($bp->site_options['bb-config-location']);

Skip to toolbar