[bbDev] Poor man's bbpress-mu

Sasa Ebach se at digitale-wertschoepfung.de
Mon Apr 13 18:57:06 GMT 2009


Hey guys,

just started using bbpress and loving it so far. I have been running into this 
problem though and wanted to ask if this would be something you would be able 
to fix.

I would like to use bbpress from a base dir (/usr/share/php/bbpress) and make 
symlinked copies to


* /webs/example.org/customer-1
* /webs/example.org/customer-2
* /webs/example.org/customer-3
...
* /webs/example.org/customer-n

I usually do something like this

$ cd /webs/example.org/customer-n
$ cp -fpsr /usr/share/php/bbpress/* .

This way every installation can have their own bb-config.php.

Then install in http://example.org/customer-n/

This way i can run and update on one codebase which makes life easier for me. 
The problem with this is that certain code does not allow this. For example 
line 132 in bb-load.php:

define( 'BB_PATH', dirname( __FILE__ ) . '/' );

__FILE__ does resolve the real name of the file which would be 
'/usr/share/php/bbpress/bb-load.php'. This will not work in this scenario. It 
would actually be better to use something like this:

define( 'BB_PATH', getcwd() . '/' );

same goes for install.php line 13 which does not allow installation in a 
symlinked directory:

$bb_install = new BB_Install(__FILE__);

so, is this something which you would allow to be patched?

Do you see any problems with my suggestion?

-sasa


More information about the bbDev mailing list