bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Can't get Wordpress and bbPress to integrate

(13 posts)
  • Started 1 year ago by kineda
  • Latest reply from kineda
  • This topic is not a support question
  1. I'm trying to integrate Wordpress 2.07 and bbpress 0.75, but I'm not having any luck! :(

    I've followed the instructions found here:
    http://bbpress.org/documentation/integration-with-wordpress/

    The following is a copy of my bbPress config.php file.


    <?php

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

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

    // 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://www.kineda.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 = '/hype/'; // Example: '/forums/'

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

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

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

    // 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', '');

    // 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 = 'e9a77fed10be'; // Example: ''

    // 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 = 'wp_'; // WordPress table prefix. Example: 'wp_';
    $bb->wp_home = 'http://www.kineda.com'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
    $bb->wp_siteurl = 'http://www.kineda.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'

    /* Stop editing */

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

    ?>

    After setting the config file, I went through the install process for bbPress. Then I downloaded the following plugins: wordpress-integration.php (placed in my-plugins) and bbpress-integration (activated in Wordpress and set table prefix to bb_)

    The only account that works through both logins is the admin account. When I check the tables for the bbPress database I see this:

    bb_forums
    bb_posts
    bb_tagged
    bb_tags
    bb_topicmeta
    bb_topics
    wp_usermeta
    wp_users

    I checked wp_users and there is only 1 user in the database.

    This is driving me nuts!!! Any help would be appreciated.

    Posted 1 year ago #
  2. on the top of config.php add

    define('WP_BB', true);

    and

    require_once( '/absolute/path/to/wordpress/ config/file/wp-config.php');

    Posted 1 year ago #
  3. I added the two lines to the top of the file:
    define('WP_BB', true);
    require_once( '/httpdocs/wp-config.php');

    Still only 1 user showing in the wp_users table.

    Posted 1 year ago #
  4. have you added the wordpress plugin and activated it?

    Posted 1 year ago #
  5. Yes, I have. As stated above, I added the wordpress plugin and activated it in the plugin control panel on Wordpress. Then set the table structure to "bb_"

    I then uploaded the wordpress-integration plugin into the /my-plugins/ folder.

    So both plugins have been added.

    Posted 1 year ago #

  6. Posted 1 year ago #
  7. just to understand the problem.. you have more than 1 user in the system..

    Posted 1 year ago #
  8. There's only 1 user in bbPress (admin account/keymaster)

    There are thousands of users registered on my Wordpress blog, http://www.kineda.com.

    None of the registered users from Wordpress are showing up in bbPress.

    It seems as if the wordpress-integration plugin in the /my-plugins/ folder isn't doing it's job. Is there a way to check if it's running?

    Posted 1 year ago #
  9. bbpress and wordpress are installed in the same database?

    Posted 1 year ago #
  10. No, they each have their own database. Was bbPress supposed to be installed in the same database as Wordpress?

    Posted 1 year ago #
  11. I guess they're supposed to be in the same db.. DOH!?!

    "Setting $bb->wp_table_prefix in bbPress’s config.php will tell bbPress to grab users and user meta data from those WordPress tables (in the same database as your bbPress tables)."

    They need to make this a bit more clear for folks that are trying to integrate the two. If you're installing bbPress without going to the integration instructions first, you'll have to restart the entire process.

    bbolman - is what I'm saying correct? if so, I'll start the re-install. thanks.

    Posted 1 year ago #
  12. yeah, unfortunately at the moment the two need to be in the same database for the integration to work. You don't necessarily need to reinstall, you can probably just copy your info from one db to the other.

    Posted 1 year ago #
  13. thanks... I'll go ahead and do that. :)

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.