Skip to:
Content
Pages
Categories
Search
Top
Bottom

Multiple forum one installation

Viewing 5 replies - 1 through 5 (of 5 total)

  • fel64
    Member

    @fel64

    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.


    maxbear
    Member

    @maxbear

    Thanks a lot fel64!

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


    fel64
    Member

    @fel64

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


    fel64
    Member

    @fel64

    Bah, double-posted. Apologies.


    maxbear
    Member

    @maxbear

    I tried it. It doesn’t work. If I put the real domain name, it show the setup page. But If I put $_SERVER, it just shows a blank page. Any idea?

    Max

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.