I call that full or complex integration and it’s mentioned in Integration 101 and many others do it I believe, despite my advise not to (until WordPress uses BackPress like bbPress 1.0)
I got to thinking, maybe we’re doing it all wrong.
Rather than try to work WordPress into bbPress, why not just include the bb-config.php file inside the wp-config.php file instead.
Viola, from what I can tell, everything works like a charm. CK, your bbCode plug-in breaks some of the WordPress tags/shortcodes though, [caption] etc…
This way, bbpress can be directly referenced inside the entire website, and WordPress can use it’s functions AND the ones from bbPress to micromanage the login situation.
I really need to investigate this more, but I think that I might be on to something with this whole integration issue.
A simple plug-in could be made to include the core WordPress queries inside bbPress for pages, categories, etc… Without having to duplicate load everything inside the header, etc…
Okay, so I just did this like 20 minutes ago and I’m a little giddy about the idea, and I’m sure there’s a myriad of reasons why this won’t work, but I think it’s a neat idea…
You also have the iNove theme.
I use them both on one of my blogs/forums.
You’ll find the WordPress theme here – and the bbPress theme here.
You can see theme live on my blog and my forum.
—
RG
bbPress and WordPress are not cross aware of role changes.
So, if you change a WordPress role, the bbPress role is not changed;
If you change the bbPress role, the WordPress role is not changed.
I believe that this is is probably the way that most people would want it to be, although it would make sense eventually (once these can be more tightly integrated) to have the option of syncing them up.
mdawaffe will typically approve it in a few days but he’s been very busy with the WordPress 2.7 release so it might be a little longer than that right now.
Ok, so I have wordpress 2.51 fully integrated with bbpress 0.9.0.2. I had a friend who I wanted to show the backend so I had him register and I figured I would then change his membership level to admin. So he registered via WordPress (which is using the register plus plugin) and it worked fine. He had subscriber status on WP and member status on BB. However, when I upgraded him via WP and it gave him admin status in WP but it didn’t change his status in BB, he is still just a member.
Do I have to manually change this or is there a way to have it automatically change?
Hi
I use instant teleseminar for recordings and they generate a code that you embed in your site etc. to display the player and download links.
This is a sample of there code
<iframe width=”452px” height=”130px” frameborder=”0″ scrolling=”no” src=”http://instantTeleseminar.com/replay.asp?eventid=5220734&preffix=custom”></iframe>
It won’t display the player… how do I get this to work?
Is there an audio player plug in for bbpress like there is for wordpress?
Thanks
Ann
Hi,
I have BBPress 1.0-alpha-2 integrated with WordPress MU 2.6.3.
Users register and login with WordPress MU and are automatically logged in to BBPress. This all works fine.
The problem I have is that the users have no “role on these forums” despite the fact that I have set the User Role Map correctly.
I can update user’s roles manually, but obviously this is not ideal.
I’m stumped!! Has anyone had a similar problem or know what might be wrong?
Thanks,
Oli
Any plug-ins out there to add a change post author capability similar to WordPress, maybe in the admin panel or the admin area of the topic.php page?
@elwagar: Conversely, once they are registered you can assign them a role by going to the bbPress admin, WordPress Integration, and remapping. I feel like a plug-in could help this registration laziness along, but I also think this should just work correctly right away.
I actually had a similar issue years ago integrating phpBB 2.x and osCommerce together, trying to get one to work inside the other with cookies and what-not was a really big problem, one that I never really did get working 100% correctly.
I have no experience with bbPress Live, but it might be worth looking into. CK posted a really nice SQL example on how to grab information without a plug-in, so if you can’t get that to work, you could always put in a little manual labor.
Sorry,
Wordpress 2.51 installed in the root directory
bbPress 0.9.0.2 installed in /forums
I am using the same computer and logging in and out but I have been clearing all session, domain and path cookies each time.
Which versions of bbPress and WordPress are you using?
Are you doing all of this logging in and out on the same computer?
Have you tried manually deleting cookies and logging in again?
What folders are WordPress and bbPress located in, relative to each other?
I just installed WordPress and bbPress on http://www.youthforwildlife.org and they are sharing a user database, which works fine. And it seems that when I login as an administrator or keymaster I can go back and forth between the bbpress and wp but when I login as a regular user, it asks me to relogin when I switch between them.
I would greatly appreciate any help you could give me!
Have you tried logging in and out of both your WordPress and bbPress installations and accessing both admin panels? I mean each combination each way.
- Log into WordPress; Check admin panel access and cookies; Log out of WordPress
- Log into bbPress; Check admin panel access and cookies; Log out of bbPress
- Log into WordPress; Check admin panel access and cookies; Log out of bbPress
- Log into bbPress; Check admin panel access and cookies; Log out of WordPress
That is where the problem lies, and I have been running the most updated trunks of both bbPress and WordPress the entire time.
Hi, I just upgraded WordPress to RC1 and used the newest trunk pf bbpress yesterday, and everything worked out fine…just as described during installation.
There is Revolution for both bbPress and WordPress:
http://www.revolutiontheme.com/magazine/bbpress/
I think if you look around you will find people who have released bbPress themes to match WordPress themes.
https://bbpress.org/forums/topic/new-bbpress-theme-peacemaker
http://bbshowcase.org/forums/forum/bbpress-templates
Short term, I was able to make this work by modifying 1 core WordPress file. This only allows for integration of the theme, but still does not allow access to the bbPress admin panel without changing the bb-config.php file back to original.
It’s essentially a quick fix to get the theme working with all capabilities playing nicely.
Basically I’m hard-coding the capability check from bbPress into WordPress. There should be a filter for this, but I’m not sure how to hook into it correctly without a mod or plug-in on the WordPress side.
~My fix is in no way a permanent solution. Auto-updating your WordPress installation will overwrite this fix.~
In FILE wp-includes/capabilities.php:
In the meta_map_cap function:
Around Line 906:
AFTER break;
BEFORE default
INSERT:
/*
*/
case 'write_post':
$caps[] = 'write_posts';
break;
case 'edit_post':
// edit_posts, edit_others_posts, edit_deleted, edit_closed, ignore_edit_lock
if ( !$bb_post = bb_get_post( $args[0] ) ) {
$caps[] = 'magically_provide_data_given_bad_input';
return $caps;
}
if ( $user_id == $bb_post->poster_id )
$caps[] = 'edit_posts';
else
$caps[] = 'edit_others_posts';
if ( $bb_post->post_status == '1' )
$caps[] = 'edit_deleted';
if ( !topic_is_open( $bb_post->topic_id ) )
$caps[] = 'edit_closed';
$post_time = bb_gmtstrtotime( $bb_post->post_time );
$curr_time = time() + 1;
$edit_lock = bb_get_option( 'edit_lock' );
if ( $edit_lock >= 0 && $curr_time - $post_time > $edit_lock * 60 )
$caps[] = 'ignore_edit_lock';
break;
case 'delete_post' :
// edit_deleted, delete_posts
if ( !$bb_post = bb_get_post( $args[0] ) ) {
$caps[] = 'magically_provide_data_given_bad_input';
return $caps;
}
if ( 0 != $bb_post->post_status )
$caps[] = 'edit_deleted';
// NO BREAK
case 'manage_posts' : // back compat
$caps[] = 'delete_posts';
break;
case 'write_topic':
$caps[] = 'write_topics';
break;
case 'edit_topic':
// edit_closed, edit_deleted, edit_topics, edit_others_topics
if ( !$topic = get_topic( $args[0] ) ) {
$caps[] = 'magically_provide_data_given_bad_input';
return $caps;
}
if ( !topic_is_open( $args[0]) )
$caps[] = 'edit_closed';
if ( '1' == $topic->topic_status )
$caps[] = 'edit_deleted';
if ( $user_id == $topic->topic_poster )
$caps[] = 'edit_topics';
else
$caps[] = 'edit_others_topics';
break;
case 'move_topic' :
$caps[] = 'move_topics';
break;
case 'stick_topic' :
$caps[] = 'stick_topics';
break;
case 'close_topic' :
$caps[] = 'close_topics';
break;
case 'delete_topic' :
$caps[] = 'delete_topics';
add_filter( 'get_topic_where', 'no_where', 9999 );
if ( !$topic = get_topic( $args[0] ) ) {
$caps[] = 'magically_provide_data_given_bad_input';
return $caps;
}
if ( 0 != $topic->topic_status )
$caps[] = 'edit_deleted';
remove_filter( 'get_topic_where', 'no_where', 9999 );
break;
case 'manage_topics' :
// back compat
$caps[] = 'move_topics';
$caps[] = 'stick_topics';
$caps[] = 'close_topics';
$caps[] = 'delete_topics';
break;
case 'add_tag_to':
// edit_closed, edit_deleted, edit_tags;
if ( !$topic = get_topic( $args[0] ) ) {
$caps[] = 'magically_provide_data_given_bad_input';
return $caps;
}
if ( !topic_is_open( $topic->topic_id ) )
$caps[] = 'edit_closed';
if ( '1' == $topic->topic_status )
$caps[] = 'edit_deleted';
$caps[] = 'edit_tags';
break;
case 'edit_tag_by_on':
// edit_closed, edit_deleted, edit_tags, edit_others_tags
if ( !$topic = get_topic( $args[1] ) ) {
$caps[] = 'magically_provide_data_given_bad_input';
return $caps;
}
if ( !topic_is_open( $topic->topic_id ) )
$caps[] = 'edit_closed';
if ( '1' == $topic->topic_status )
$caps[] = 'edit_deleted';
if ( $user_id == $args[0] )
$caps[] = 'edit_tags';
else
$caps[] = 'edit_others_tags';
break;
case 'edit_user':
// edit_profile, edit_users;
if ( $user_id == $args[0] )
$caps[] = 'edit_profile';
else
$caps[] = 'edit_users';
break;
case 'edit_favorites_of':
// edit_favorites, edit_others_favorites;
if ( $user_id == $args[0] )
$caps[] = 'edit_favorites';
else
$caps[] = 'edit_others_favorites';
break;
case 'delete_forum':
$caps[] = 'delete_forums';
break;
case 'change_user_password':
// change_password, edit_users
$caps[] = 'change_password';
if ( $user_id != $args[0] )
$caps[] = 'edit_users';
break;
/*
*/
Does anyone know of a designer or company that offers identical themes for both WordPress and bbPress?
I am asking this to avoid the troubles of integration.
Thanks!
Eh don’t defend bbPress – it’s the same problem with WordPress. They’ve never had a good search because writing a good search is hard and takes time from other needed things.
I haven’t released the search because after working on it for a week it became so overly complex that debugging parts of it was taking way too much time. When that happens I get mad and then usually re-write things from scratch.
I think my biggest mistake was I tried to make the layout template-able, so you could move stuff around. That added way too much code and logic problems. And then there was the wordpress awareness, more code.
I might just make a simpler version of it. I may just copy some of the vbulletion search layout since it’s very logical. Maybe I’ll have something by the end of the coming weekend if I have enough time.
If your server supports mod_rewrite and .htaccess, you can make pretty permalinks work (if they work for WordPress, they can work for bbPress). You just need to follow the instructions.
And if bbPress is in a sub-directory of WordPress (collectibles-talk), then you will have two .htaccess files, or possibly all the rules in the WordPress-level .htaccess. The .htaccess you posted is the default WordPress one. You need more rules for bbPress.
Here is something about that:
https://bbpress.org/forums/topic/pretty-permalinks-not-working?replies=24#post-7743
Firstly, have you checked to make sure that your site paths are correct in both bbPress and WordPress? Since you shifted directories, the paths to those new directories need to be adjusted in the database.
Secondly, are there normal user tables to go along with those weird empty ones? Part of the integration process is telling bbPress which tables to find your users in. Is it possible that you added an extra “_” on accident, and bbPress created those tables while it was looking for the real ones?
We’re all experiencing the same issue.
Integration appears to be a little broken still.
If you need to use the WP functions in your bbPress, that will break it further by not allowing you to access your bbPress admin panel at all.
The problem looks like the bb_map_meta_cap filter is ignored when the WordPress functions are loaded in place of the bbPress ones.
Some users have been able to resolve this by using a .htaccess file to redirect to the bbPress login and register page whenever an attempt to register or login is made through WordPress. That is the best fix at the moment if you do not require access to the WP functions.
If you do require that access, then you will need to wait until a fix comes out for the issue I mentioned above. That’s where I am.
It seems like there are several issues here, and I’m not sure which is really the issue or which is a bug…
Firstly, when integrated, bbPress wants to use the WordPress classes and functions where possible. Namely, the problem with capabilities lies currently with the difference in the WP_User->has_cap function.
On the WordPress side of it, it is missing the global $wp_roles; and the corresponding check of those roles against the current capability to check.
$caps = call_user_func_array( array(&$wp_roles, 'map_meta_cap'), $args );
So I’m not sure if this is just a case of bbPress not keeping up with the WordPress user/role classes, or if this is WordPress not properly carrying over bbPress capabilities.
Ugh…
Thanks for trying to help on this Chris. Here is what my htaccess file looks like at the moment:
Options +MultiViews
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Keep in mind this is in my root directory. (so both WP and BBpress are both using it?)
Am I supposed to have a seperate htaccess file in the bbpress directory too?
I got access to the code you sent me. Do I delete the above code and replace it with this code you sent?
Looks like your host does not allow Options +MultiViews, or it conflicts with another .htaccess file, maybe the WordPress one?
Can you remove that line from your .htaccess and try adding explicit rules by accessing this URL for your site, then pasting those results into your .htaccess?
http://collectibleswow.com/collectibles-talk/bb-admin/rewrite-rules.php
(I think you need to be logged in as keymaster for that to work.)