Info
- 6 posts
- 2 voices
- Started 5 years ago by maxbear
- Latest reply from maxbear
- This topic is not resolved
Multiple forum one installation
-
- Posted 5 years ago #
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?
-
- Posted 5 years ago #
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.
-
- Posted 5 years ago #
Thanks a lot fel64!
How about $bb->domain ? What should I fill in? Since I have many different domain names.
-
- Posted 5 years ago #
My guess is
$_SERVER['HTTP_HOST']. Give it a shot. -
- Posted 5 years ago #
Bah, double-posted. Apologies.
-
- Posted 5 years ago #
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.