bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

WPMU integration, login/logout not sticking

(3 posts)
  • Started 1 year ago by flufftronix
  • Latest reply from flufftronix
  • This topic is resolved
  1. Hi there, I've scoured the boards here for a solution to this issue but have only thus far found another instance of the problem. I'm running a WPMU install here and a bbPress install here.

    Everything seems to be working fine, short URL's included, except for user authentication. I can only login through Wordpress. Login attempts through bbPress fail with incorrect account info, but don't do anything with a correct user/pw combination either. WPMU is creating a cookie that bbPress uses, but bbPress seems to be incapable of creating that same cookie I think? Or..? Any ideas?

    Posted 1 year ago #
  2. Try the following:

    <?php
    // ** MySQL settings ** //
    define('BBDB_NAME', 'bbpress_dbname'); // The name of the database
    define('BBDB_USER', 'bbpress_username'); // Your MySQL username
    define('BBDB_PASSWORD', 'password'); // ...and password
    define('BBDB_HOST', 'localhost'); // 99% chance you won't need to change this value

    define('USER_BBDB_NAME', 'wpmu_db_name)'); //your WPMU DB name
    define('USER_BBDB_USER', 'wpmu_db_username'); // Your WPMU DB username
    define('USER_BBDB_PASSWORD', 'password'); // ...and password
    define('USER_BBDB_HOST', 'localhost');

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    define('CUSTOM_USER_TABLE', 'wp_users');
    define('CUSTOM_USER_META_TABLE', 'wp_usermeta');

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
    // Adjust the domain and path to suit your actual URL.
    // Just the domain name; no directories or path. There should be no trailing slash here.
    $bb->domain = 'http://hadithuna.com'; // Example: 'http://bbpress.example.com'
    // There should be both a leading and trailing slash here. '/' is fine if the site is in root.
    $bb->path = '/forums/'; // Example: '/forums/'

    // What are you going to call me?
    $bb->name = 'Hadithuna Communnity Forums';

    // This must be set before running the install script.
    $bb->admin_email = 'webmaster@hadithuna.com';

    // Set to true if you want pretty permalinks.
    $bb->mod_rewrite = false;

    // The number of topics that show on each page.
    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.
    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.
    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the
    // chosen language must be installed to bb-includes/languages.
    // For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
    // to enable German language support.
    define('BBLANG', '');

    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';
    $bb->cookiedomain = 'hadithuna.com'; // or .example.com if there was a . above
    $bb->cookiepath = '/';

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
    // of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at
    // http://wordpress.com/api-keys/
    $bb->akismet_key = false;

    // define('CUSTOM_USER_TABLE', 'wp_users');

    // The rest is only useful if you are integrating bbPress with WordPress.
    // If you're not, just leave the rest as it is.

    $bb->wp_table_prefix = false; // WordPress table prefix. Example: 'wp_';
    $bb->wp_home = false; // WordPress - Options->General: Blog address (URL) // No trailing slash
    $bb->wp_siteurl = false; // WordPress - Options->General: WordPress address (URL) // No trailing slash

    /* Stop editing */

    define('BBPATH', dirname(__FILE__) . '/' );
    require_once( BBPATH . 'bb-settings.php' );
    ?>

    Posted 1 year ago #
  3. Oh; hmm I think I may have muddled up some of the domain names in the config file..

    edit: yup! everything's all peachy. now, back to scratching my head at the site-wide tags problem like everyone else..

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.