Skip to:
Content
Pages
Categories
Search
Top
Bottom

multiple forums in a single database – Change prefix to what?


  • Jonathon N
    Member

    @imagiscapeca

    config-sample.php says:

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores

    I do want to have multiple forums in a single database.

    Why do I need to change it from bb_?

    What would be intelligent to change it to?

    Duh?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • You could prefix the first install “bb1_” an the second “bb2_” (you get the idea)…

    Whatever makes sense to you, there is no guideline.

    …you need to change them unless you want the same data in each installation.


    Jonathon N
    Member

    @imagiscapeca

    So I should list

    $bb_table_prefix = ‘bb1_’;

    $bb_table_prefix = ‘bb2_’;

    $bb_table_prefix = ‘bb3_’;

    ?

    (I don’t understand how the program would determine which prefix to apply to which forum.)

    “what makes sense to me”

    Ok, so I might use, for example:

    $bb_table_prefix = ‘bb_installation_’;

    $bb_table_prefix = ‘bb_plugins_’;

    Does “each installation” refer to multiple forums or multiple what?

    Do I need to install something more than once?

    Thank you.


    chrishajer
    Participant

    @chrishajer

    If you want multiple forums, you need to do multiple installations, and each bbPress installation will be in a directory of its own, and the config.php in each individual directory should have a unique table prefix, as Sam suggested, like bb1_, bb2_.

    In that case, each forum would be access with a different URL as well.

    Maybe your site is at http://www.website.com . A normal bbPress installation would be in something like http://www.website.com/forums/ or http://www.website.com/bbpress/ . To have multiple forums, you would access them like this:

    http://www.website.com/forum1/

    http://www.website.com/forum2/

    http://www.website.com/forum3/

    or

    http://www.website.com/football/

    http://www.website.com/baseball/

    http://www.website.com/hockey/

    and the associated directories on the server would be

    /var/www/htdocs/yourname/football/

    /var/www/htdocs/yourname/baseball/

    /var/www/htdocs/yourname/hockey/

    If you just want multiple forums or subforums in your bbPress installation, you just need to install one time, then set up the forums/subforums within bbPress. You don’t need multiple forum installations.


    chrishajer
    Participant

    @chrishajer

    If you are going to do something like bb_installation_ and bb_plugins_, it sounds like you want subforums. You would have one installation in a directory like /forums/ then you create subforums in your admin panel.

    You would NOT create multiple $bb_table_prefix = lines – that wouldn’t work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar