Skip to:
Content
Pages
Categories
Search
Top
Bottom

Signatures (BBPress & BuddyPress)


  • gerikg
    Participant

    @gerikg

    I used to use _CK_’s signature plugin on BBpress. With the deep integration the user will never get to their BBpress profile side only Buddypress.

    I was thinking if it was possible and how to:

    I will add a Field called signature on the Buddypress Profile Field Setup

    I just need the code to pull it (just the field info not the field title) and I can put it in the post.php.

    Is it possible? what is the code to pull that info?

Viewing 9 replies - 1 through 9 (of 9 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    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. :)


    gerikg
    Participant

    @gerikg

    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


    gerikg
    Participant

    @gerikg


    gerikg
    Participant

    @gerikg

    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?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Are you using deep integration?


    gerikg
    Participant

    @gerikg

    Yes WITH deep intergration


    r-a-y
    Keymaster

    @r-a-y

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


    gerikg
    Participant

    @gerikg

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Signatures (BBPress & BuddyPress)’ is closed to new replies.
Skip to toolbar