Hello,
I can use one installation and run many wordpress sites (http://me.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/) All you need to modify the config.php
Do you think this method can apply to bbpress as well?
Hello,
I can use one installation and run many wordpress sites (http://me.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/) All you need to modify the config.php
Do you think this method can apply to bbpress as well?
Of course. Exactly the same principle applies.
Replace this
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!
With
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = ereg_replace('^(www\.)', '', $_SERVER['HTTP_HOST']);
$bb_table_prefix = ereg_replace('\.', '', $table_prefix);
$bb_table_prefix = $table_prefix . '_';
That is all.
Thanks a lot fel64!
How about $bb->domain ? What should I fill in? Since I have many different domain names.
My guess is $_SERVER['HTTP_HOST']. Give it a shot.
Bah, double-posted. Apologies.
I tried it. It doesn't work. If I put the real domain name, it show the setup page. But If I put $_SERVER['HTTP_HOST'], it just shows a blank page. Any idea?
Max
You must log in to post.