bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

Multiple forum one installation

(6 posts)
  • Started 1 year ago by maxbear
  • Latest reply from maxbear
  • This topic is not resolved
  1. maxbear
    Member

    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 1 year ago #
  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.

    Posted 1 year ago #
  3. maxbear
    Member

    Thanks a lot fel64!

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

    Posted 1 year ago #
  4. My guess is $_SERVER['HTTP_HOST']. Give it a shot.

    Posted 1 year ago #
  5. Bah, double-posted. Apologies.

    Posted 1 year ago #
  6. maxbear
    Member

    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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.