[bbDev] Poor man's bbpress-mu

Sam Bauers sam at automattic.com
Mon Apr 13 23:55:40 GMT 2009


getcwd() is a little bit unreliable. Maybe there is a $_SERVER  
variable that would be better.

Certainly this should be ticketed in Trac.

Sam



On 14/04/2009, at 4:57 AM, Sasa Ebach wrote:

> 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
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev



More information about the bbDev mailing list