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.
The problem is that WordPress and BBpress both use cookies for login.
Since your browser will only send the cookie for the domain that it was set on, it’s not going to work automatically.
You could use the same login database, of course. It’s just not going to be transparent.
you meant the “anti-corporate image”? that’s what i really like.
I’ve heard several people telling that bbPress wouldn’t be updated anymore, because of a new system that is coming soon.
Those people are grossly misinformed.
By the way, WordPress 2.5 has been delayed a bit due to illness. We’ll release bbPress when WordPress 2.5 comes out (I’m trying to find out a more exact time now).
Please see the WordPress MU forum ( http://mu.wordpress.org/forums/topic.php?id=7778&page&replies=6#post-46043) and look for my first post where it says “feature and strip” …
The font changes at that point. It looks like the rest of the thread is formatted like code. I don’t know why there’s a backtick near the word feature, but even if I did put it there and forgot to close it, is that the reason the entire thread appears formatted like code? If not, please explain.
Hello,
I am trying to install the newest editions of both WordPress and bbPress onto the same site as of March 10, 2008. The desired URLs for both are:
WordPress: http://www.hooligans-gaming.net
bbPress: http://www.hooligans-gaming.net/forums
I have both running from the same database and thats all setup good. However, I have a few questions:
1) I want a single registration page. Meaning that I want a visitor to the site to click on either the forums Register link or even the front page Register link and be brought to the same page and have both WordPress and bbPress share the same user table … how can this be done?
2)Secondly, I want my registered users to be able to sign in at the front page OR on the forums and be logged in until they timeout or logout… how can this be done?
3)With those two steps, my final request is how can I fully integrate my WordPress and bbPress? I plan to use the WordPress install for front page news and website content and my bbPress to be (you guessed it) my forums. As far as features is concerned, I would just want to display the top 10 most recent threads on the front page as well as another widget I have planned for a different feature that wouldn’t affect the forums so I’ll leave that one along for now.
—
I have no problem editting files if I need to. I’m no pro but I have enough knowledge to get me by.
Thank you in advance!
How would one integrate them if they were on different domains?
Like say wordpress is at http://www.mydomain.com and bbpress is at forum.seconddomain.com
it seems that all the integration instructions out there only work if bbpress is within the same root domain as wordpress.