BuddyBoss Home – Web Support Forums General Requests and Feedback Show @handle in activity feed / forums

Viewing 13 posts - 1 through 13 (of 13 total)
  • Question

    #32690
    @style960

    I’ve just opened this support request on the BP forums – https://buddypress.org/support/topic/comment-notifications/

    It’s becoming a pain having to open a users profile every time you want to include them in a comment reply, either on the main activity feed or, as on this site, a forum post. Including the @handle is the only way to ensure the user you’re replying to gets a notification.

    Which is kind of crap, and not very user friendly. Hopefully there’ll be a positive response from the BP guys, if not, it would be great if something could be added to Buddyboss. It’s essential imo.

    Answers

    #32892
    @milena

    @style960, it’s especially painful with folks like you who have a totally different user name 🙂

    I think the issue with the buddypress activity was solved in
    buddypress 2.1.1
    “Forget the old days of trying to remember someone’s username when you want to @mention them in a conversation! With BuddyPress 2.1, type a @ when leaving a status update or commenting on an activity item or blog post, and the new suggestions panel will open.”

    bbpress needs this bad though. thanks for nagging them

    #32894
    @style960

    @milena I’ve seen that yeah. To be honest, I’d picked up on this problem from using the forums on here, so maybe it’s a bbpress issue. I did originally suggest this on the BP forum a few months ago and got told to “think Buddypress, not Twitter”. Maybe it did gain some traction at some point though 🙂 On my username – at the time I was purely thinking in terms of WordPress login, not aware it would default to an @handle. Something for me to think about on my own site for user registration maybe. See what test feedback I get. I’d still like to show the @handle beneath the username in activity feeds though if I’m honest.

    #32959
    @milena

    Yep, it would make things easier. I don’t know if my users will understand that they can mention someone by using a @handle. Having it beneath the username would make it more intuitive.
    The forums could only benefit from becoming more “buddypress”.
    There are great things in both of these plugins, I wish they would just borrow more from each other:) It would make the site more uniform too.

    #32960
    @style960

    I’m going to add the @handle at some point. Can’t be more than editing a few template files and adding a little css. Will share when I’ve figured it out.

    #32961
    @milena

    Paul, how come the buddypress forum has the @handle under the user name? https://buddypress.org/support/topic/comment-notifications/

    #32965
    @style960

    I’m pretty sure that’s new, very recent – possibly added in the last few days. Maybe it’s under testing. That’s exactly what I was thinking of, hopefully that will be extended across activity streams and user profiles. If they could add a live notification system too, Buddypress would be superb.

    #35636
    @milena

    Hi Paul 🙂 I just noticed that the forums here display @handle under the username- is that something new? I don’t have that in my child theme (buddyboss updated to the latest one )


    @style960
    @tjchester

    #35639
    @milena

    hey again,

    I found this code

    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    }
    }

    in this bbpress thread-
    https://bbpress.org/forums/topic/putting-the-mention-below-name/,

    and it works. But still wondering- was it added to the theme or is it custom added to this forum?

    #35745
    @style960

    @milena I would say this has been custom coded – I don’t see @names on bbPress by default with any theme.

    #35756

    Alyssa
    Participant
    @alyssa-buddyboss

    @milena @style960 we added this to our functions.php file:

    function buddyboss_add_handle (){
        echo '<span class="bbp-user-nicename"><span class="handle-sign">@</span>'. bp_core_get_username(bbp_get_reply_author_id(bbp_get_reply_id())) .'</span>' ;
    }
    
    add_action( 'bbp_theme_after_reply_author_details', 'buddyboss_add_handle' );
    #57942
    @bryceevans

    @tjchester – I tried that fix you provided above and it broke everything, haha. Is there a different way you’re doing it now? Or I possibly put it in the wrong place?

    I added it to functions.php of the child theme in the section where it says to add the custom code.

    #70782

    Anonymous
    @

    Hi @bryceevans

    If you still need assistance please simply open a new tickets (linking to this one if necessary)
    and one of the team will be only too happy to help.
    Regards
    Varun Dubey

Viewing 13 posts - 1 through 13 (of 13 total)
  • The question ‘Show @handle in activity feed / forums’ is closed to new replies.