crazlunatic: did you try it? That looks like what you need to do for integration, to me. Oh, except I think you need to do that before you install, so that your user tables are integrated. If you changed that after installation, install again.
Integration next week will be different with the release of WordPress 2.5 and the latest bbPress 0.9.
That is great. I really appreciate your help but now I want to integrate it into wordpress. How can I do this?
http://vistarewired.com/test2/bbpress/
This is how I edited my config:
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave it as it is.
$bb->wp_table_prefix = ‘craz_’; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = ‘http://vistarewired.com/test2’; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com’
$bb->wp_siteurl = ‘http://vistarewired.com/test2’; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com’
/* Stop editing */
Separate db vs one table is something new for 0.9 I believe.
Those are constants that have to be defined in bb-config.php just like any of the other constants. ie.
define('USER_BBDB_NAME','blahblah');
If you are just now installing bbpress and not already integrating an existing install, if you wait for the 0.9 release on monday, it will do most of the integration for you.
There are endless instructions for integration, I’ve gathered most of them here (though that list is getting outdated for 0.9)
http://bbshowcase.org/forums/topic/better-bbpress-wordpress-integration-the-missing-faq
I know the idea of integrate. When I check the documentation on the BBpress site about integrate I find this:
“If you would like to pull user information from a different database, define USER_BBDB_NAME, USER_BBDB_USER, USER_BBDB_PASSWORD, and USER_BBDB_HOST.”
Now I don’t how to do this. I should add this to the config.php file, but how and where exactly to put this is not clear to me. A visitor doesn’t seem any difference and I will not have big MySQL databases.
When I find out in a later stage that I have a lack of visitors I can remove all the data within an eye wink instead of the big adventure of finding everything concerning BBpress in the WordPress database.
With integration, you are sharing the wp_users table. Even if bbPress and WordPress are in different databases, there is going to be some shared data – that’s what the integration does. So having bbPress and WordPress in different databases doesn’t actually help with that. If you have them in the same database, just drop the bb_ tables and edit the users to remove any bbPress users. I don’t think using different databases helps you down the road.
I try to integrate BBpress and WordPress. I’ve already read that it isn’t a problem to have BBpress on a sub-domain. So that is something I will do. Another problem I have is that I want to have two different databases. In a later stage I want to be able (doesn’t say that I will do it) to remove the forum with all his database information. Is there a simple way of doing that?
can the .09 version be downloaded from the nightly build thing and used? is it the version that will be released? and, most importantly; will it work without wordpress 2.5?
We are sitting on our hands until WordPress 2.5 is released.
It would be a mistake to release before them as the new integration methods pretty much require WordPress 2.5
bbPress would run too slowly as a plugin of WordPress, and the integration path for WPMU would be harder. Plus, it’s not just built for WordPress integration.
It can be done with PHP.
I’ve never done the random thing, but the Cutline theme for WordPress offers this functionality. You can read about it here:
http://cutline.tubetorial.com/totally-random-header-images-for-cutline/
I think you could adapt that for your uses.
In WordPress, for a specific background tied to a specific page, I just do something like this in header.php:
<div id="container" style="background: #fff url('<?php bloginfo('template_directory'); ?>/images/<?php echo $post->ID; ?>.jpg') left top no-repeat;">
That gives the container
div the background image of the post ID.jpg, so if you were viewing post 52, you would have a background image of 52.jpg
. You could easily adapt this to bbPress calls by using the forum number and $forum_id
, whichever div you want a background for (#wrapper or #main?) and then the proper location of your images (whether they are stored in your template folder or your forum root or something.) It fails OK too since there is a color code for the background and that is used if the image cannot be found (I think that’s what happens anyway.)
Let me know if that makes sense. This is how I’ve done it in WordPress, but the same approach will work for bbPress I think.
*slaps self*
I didn’t realise it was a WP plugin!
If I install this – will it solve the require_once(blah blah…) function error I am getting (this is placed in my bbPress config.php file). I am trying to get the whose online plugin sidebar that’s on my bbPress template to show up in WordPress you see.
Garry
Since it’s a WordPress plugin, log into your WordPress admin panel, Plugins > bbPress. That’s where you enter your bbPress table prefix.
This is the URL once you’re logged in.
http://www.example.com/wp-admin/plugins.php?page=bbpress-integration
Replace example.com with your domain and you should end up right where you need to be.
I have installed the bbPress-integration plugin as instructed. However, the readme file says to configure it, I need to:
Go to Plugins -> bbPress and enter your bbPress table prefix
What does it mean go to Plugins? There is no where in the bbPress dashboard plugin section to enter my table prefix.
Sorry for such a dumb question but I’m new to this!
Thanks,
Garry
Looks like your blog is fine, but bbPress is not. Assuming you’re using the same database for both, then the connection details should be the same, other than the name of the constants (BBDB_ for bbPress instead of DB_ for WordPress – if you copied the whole section over, the constant names would be wrong.)
It’s hard to troubleshoot these things remotely since someone needs to be able to log into your control panel to see the actual connection details, then view and edit your config.php to make sure the settings are the same. Without trusting someone with that info, you’re going to have a hard time finding help for the problem.
P.S. please don’t post the connection details here.
P.P.S. you can contact me directly using any email found on the site linked in my profile, or just google my name (screen name or real name, matters not). I will be glad to help off-list.
bbPress is not a plugin for WordPress. There are forum plugins for WordPress if that’s what you’re looking for.
Here are a couple. I have no experience with them, I just know they exist.
http://www.stuff.yellowswordfish.com/simple-forum/
http://www.fahlstad.se/wp-plugins/wp-forum/
My problem is different. I moved all my WP & BBpress file into different directory in my server. Then all the links lead to 404 pages. I updated permalinks (by a single click) in wordpress and it solves the problem. Now i can’t update it in my BBpress site. Any help will be very appreciated.
Thanks.
ATTN: This post appears on both WordPress.org as well as bbPress.org forums so I can get the best response possible!
Alright, well some of you out there have been kind enough to help me via the forums or within the mIRC channel while we waiting on status of the new bbPress. First of all, thank you so much for all the help! After much research, I think I know what I need to do…
I laid out what I want my actual users to be able to do! A very basic overview would be this:
Primarily WordPress Accounts: Posting ability on the “main site” (AKA WordPress install), posting ability on the forums of the site, ability to post comments to WordPress posts and a robust profile.
Primarily bbPress Accounts: Posting ability within the forums, ability to post comments to WordPress posts and a robust profile.
What these two types of accounts need to share is a unified Registration page, unified login/password recovery/login form.
I think I know how to go about this… basically I want my header.php to be the same throughout the website AND forums. That way it is the same login form, same link to register, same password recovery. And to change the register form I just need to use the WordPress one and just have the WordPress Intergration plugin, display name plugin and name with spaces plguin for bbPress … I believe.
I’m still kinda new to all this so I could use any input possible.
Thanks in advance and sorry for the long read!
Here’s the results I got from the debugging. One thing I’ve noticed is that once I click on Page 2 (the URL changed to click on Page 2 again).
Forum
http://justintadlock.com/forums/forum/options-wordpress-theme
REQUEST_URI: string(37) "/forums/forum/options-wordpress-theme"
should be: string(37) "/forums/forum/options-wordpress-theme"
full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
PATH_INFO: string(0) ""
Forum (page 2)
http://justintadlock.com/forums/forum/options-wordpress-theme/page/2
REQUEST_URI: string(44) "/forums/forum/options-wordpress-theme/page/2"
should be: string(37) "/forums/forum/options-wordpress-theme"
full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
PATH_INFO: string(0) ""
Forum (URL changed to add two of /page/2)
http://justintadlock.com/forums/forum/options-wordpress-theme/page/2/page/2
REQUEST_URI: string(51) "/forums/forum/options-wordpress-theme/page/2/page/2"
should be: string(37) "/forums/forum/options-wordpress-theme"
full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
PATH_INFO: string(0) ""
Topic (page 1)
REQUEST_URI: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
PATH_INFO: string(0) ""
Topic (page 2)
REQUEST_URI: string(62) "/forums/topic/bug-report-for-version-10-beta/page/2?replies=31"
should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
PATH_INFO: string(0) ""
Topic (URL changed to add two /page/2)
REQUEST_URI: string(69) "/forums/topic/bug-report-for-version-10-beta/page/2/page/2?replies=31"
should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
PATH_INFO: string(0) ""
This indeed is a very tricky problem because everything about a browser’s security is designed to prevent this from happening.
WordPress.com addresses it in one possible way (across multiple domain names) via I believe a hidden iframe (as Sam suggests).
I’ve noticed cookies are still sent with images loaded from another domain so that might be another way but you’ll still not be able to read them on the server since it’s not the local domain.
@McKrazie – I just removed the bbPress registration stuff and require my users to register through my WordPress (MU) installation, although I’m actually running its registration through a totally customized process as well.
http://mybabyourbaby.com/
If you set up your cookies in bbP and WPMU properly, then users should only have to log in once (as long as it’s all on the same domain/subdomain) – see here for how i did it https://bbpress.org/forums/topic/wpmu-integrated-installation#post-14346
HTH
@talbina – Automattic just hired the developer of BuddyPress (www.buddtpress.com), which is basically what you’re asking for, minus bbPress. So they are thinking somewhere along the lines of what you’re saying 
Needless to say it’s not much of a leap to take what comes of BuddyPress (a solid social networking core) and integrate that with bbPress to add the forums element (assuming BuddyPress doesn’t move in that direction itself, which is quite possible).
I guess I’ll have to set up the wordpress login to redirect to the bbpress login page sending over the user info and then loging them into bbpress and redirecting them back to where they started.
But that seems like a lot of goings ons for a simple login. Any ideas on how I could simplify that at all?
Another thought would be to create a plugin to check for the wordpress cookie and then if present set the bbpress cookies.