I used Burt Adsit’s BPGroups plugin to achieve this a few months ago. It helped to pull all user data over and transfer the XProfile data into a deeply integrated bbPress installation.
In future versions of BuddyPress this will be much, much easier.
JJJ this what happens when I use that plugin
Warning: require_once(BACKPRESS_PATH/class.ixr.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/0/d188981313/htdocs/website/mu/wp-content/plugins/bpgroups/oci_bb_group_forums.php on line 30
Fatal error: require_once() [function.require]: Failed opening required ‘BACKPRESS_PATH/class.ixr.php’ (include_path=’.:/usr/lib/php5′) in /homepages/0/d188981313/htdocs/website/mu/wp-content/plugins/bpgroups/oci_bb_group_forums.php on line 30
Sorry about the empty response. I thought I had it and when it didn’t work it screwed up. I edited out my post.
Okay this is the fix I came out with. I created a new group in BP profile called signature and the field name signature too.
In BBpress in the post.php I inserted (note I don’t know PHP, if anyone can shorten this would be appreciated):
<?php if ( bp_has_profile('user_id='.get_post_author_id().'&profile_group_id=XXX') ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php if ( bp_profile_group_has_fields() ) : ?>
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<?php if ( bp_field_has_data() ) : ?>
<?php bp_the_profile_field_value() ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php else: ?>
<?php endif;?>
Just replace XXX with your group id #, mine was 3.
What it doesn’t do is toggle between signature, anyone want to try that?
Are you using deep integration?
Yes WITH deep intergration
I’m using bpGroups and first of all you should follow the instructions properly.
Make sure your files are in the right directories.
/wp-content/mu-plugins/oci_bp_group_forums.php
/YOUR BBPRESS INSTALL DIRECTORY/my-plugins/oci_bb_group_forums.php
—
Also, because you’re using deep integration, you’ll need to make the following changes:
In oci_bp_group_forums.php, around line 30 change:
require_once(ABSPATH . WPINC . '/class-IXR.php');
to this:
if (!defined(BBDB_NAME))
require_once(ABSPATH . WPINC . '/class-IXR.php');
In oci_bb_group_forums.php, around line 30 change:
require_once( BACKPRESS_PATH . '/class.ixr.php' );
to this:
if (defined(BACKPRESS_PATH))
require_once( BACKPRESS_PATH . '/class.ixr.php' );
Thanks r-a-y, but I don’t think I need that plugin. It works fine without it.
@gerikg where i can find post.php file? i using WP 3.2, BP 2