Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Signatures (BBPress & BuddyPress)


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?

Skip to toolbar