Skip to:

BBpress+ BuddyPress Send Message

  • gerikg


    Deep integration WPMU 2.8.4a + BuddyPress 1.0.3 + BBpress 1.0.2

    Goal: I want to put send message under the icons in the forums and have the To: filled out with the member you’re sending it to.

    This is what I tried:

    <?php if ( bb_is_user_logged_in() ) : ?>
    <a href="<?php echo get_option('home') ?>/members/
    <?php echo get_user_name( $user_id ); ?>/messages/
    compose/?r=<?php echo get_user_name( get_post_author_id() ); ?>">Send Message</a></small>

    <?php endif; // bb_is_user_logged_in() ?>

    ‘<?php echo get_user_name( $user_id ); ?>’ is giving me a blank. It should be the user (yourself login name)

    Also: If I put <?php bp_send_message_button() ?> it gives you a blank To: section and I’m not so thrilled with the button in the forums.

    Sidenote you (BuddyPress) should open a section (Forum Section) called “BBpress Integration” for easier finding of things. I tried the search but I’m not getting the right keywords combination.

Viewing 1 replies (of 1 total)

  • gerikg


    <small><a href="<?php echo get_option('home') ?>/members/
    <?php global $current_user;get_currentuserinfo();echo($current_user->user_login);
    ?>/messages/compose/?r=<?php echo get_user_name( get_post_author_id() ); ?>">Send Message</a></small>

    okay that works…

Viewing 1 replies (of 1 total)
  • The topic ‘BBpress+ BuddyPress Send Message’ is closed to new replies.
Skip to toolbar