bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

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

(6 posts)
  • Started 11 months ago by imagiscapeca
  • Latest reply from chrishajer
  • This topic is not resolved
  1. 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

    Posted 11 months ago #
  2. You could prefix the first install "bb1_" an the second "bb2_" (you get the idea)...

    Whatever makes sense to you, there is no guideline.

    Posted 11 months ago #
  3. ...you need to change them unless you want the same data in each installation.

    Posted 11 months ago #
  4. 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.

    Posted 11 months ago #
  5. 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.

    Posted 11 months ago #
  6. 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.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.