Forums

Join
bbPress Support ForumsInstallationMultiple forum one installation

Info

Multiple forum one installation

  1. 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?

  2. 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.

  3. Thanks a lot fel64!

    How about $bb->domain ? What should I fill in? Since I have many different domain names.

  4. My guess is $_SERVER['HTTP_HOST']. Give it a shot.

  5. Bah, double-posted. Apologies.

  6. 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

  7. You must log in to post.