Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '@mention on profile'

Viewing 25 results - 26 through 50 (of 91 total)
  • Author
    Search Results
  • #241169
    danbp
    Participant

    Have you tested with 2015 theme ? Does @mention appear near profile avatar ?

    If it does, ask on your (premium) theme support.

    #240741
    danbp
    Participant
    #240148
    mrjarbenne
    Participant

    You could use this plugin — https://github.com/r-a-y/buddypress-usernames-only — to override the Display name so that only the username shows. I find this makes a lot of sense in communities where @mentions are a prevalent means of connecting. By default the Display name on the profile will still be the Nice Name, rather than the username, but you can change that by adding this snippet to your wp-config.php file

    define( 'BP_SHOW_DISPLAYNAME_ON_PROFILE', false );

    #237566
    Matthias
    Participant

    Hi @danpb,
    I found a snippet in my theme functions.php that causes the missing link to profile in all @mentions in bbpress. When I delete the following code all @mentions in the bbpress topics and replies are shown.
    Can you have a look at the following code. Maybe you can see, why it deletes the mention links to the profiles…?

    // replies visible only for logged in users
    function bb_auth_reply_view( $reply_id ) {
    $reply_id = bbp_get_reply_id( $reply_id );
    
    // Check if password is required
    if ( post_password_required( $reply_id ) )
    return get_the_password_form();
    
    $content = get_post_field( 'post_content', $reply_id );
    
    // first topic reply shouldn't be hiding
    $rep_position = bbp_get_reply_position($reply_id);
    
    // if user is not logged in and not the first post topic
    if( !is_user_logged_in() && $rep_position > 0 ) {
    return "replies only for logged in users!";
    } else {
    // return normal
    return $content;
    }
    }
    add_filter( 'bbp_get_reply_content', 'bb_auth_reply_view' );
    #237552
    Matthias
    Participant

    Hi danbp,
    I can not find a setting to allow explicit @mention. I allowed the activity stream in buddypress. And @mentions are working fine in there.
    The notifications if someone is mentioned in the bbpress forums are working fine, too. I even have a dropdown field with suggestions for @mention in bbpress.

    The only thing is the missing link to the profile behind the @mention in replies…
    forums and buddypress sites are exluded from caching…

    Thanks
    Matthias

    #237521
    Matthias
    Participant

    Hi @danpb,
    now I’m using your code and the plugin, but my forum still shows no links in @mention
    I just was searching in the bbpress support forum and it seems that it is a built in feature. But I don’t know why it is not working on my install?
    Here is how @mention are shown in my forum. No link to the user profile at all

    Any suggestions to solve the problem?
    Thanks
    Matthias

    #237216
    danbp
    Participant

    On a profile header, it’s not intended to link to the profile, as you’re already on a profile when you see @username !

    This is there as reminder for members who want to sent a message to that user.

    When on any activity page and you use @mention in a notice, you get a userlist depending the first letter you type after @. But never a link to a profile.

    Or do you mean that @mentions is not active, whithout any links on it ?

    #236652
    danbp
    Participant

    Post comments are outside of the user notification. @mention scope is handling site and user activities. A post is also an activity, but @mention in it is not an activity. It’s just a link to a profile in a post.

    When you go to message settings on your profile, you can see the whole items covered by mention and email notification. Blog post are not included.

    #231089
    danbp
    Participant

    To remove @username near the header avatar on profile page, use this (in bp-custom.php)

    function bpfr_remove_mention_from_profile() {	
    	// hide the hardcoded @ sign and username
    	echo '<style> h2.user-nicename { display:none; } </style>';
    
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    
    	remove_filter( 'bp_get_displayed_user_mentionname', bp_activity_get_user_mentionname( bp_displayed_user_id() ) );
    	
    }
    add_filter( 'bp_get_displayed_user_mentionname', 'bpfr_remove_mention_from_profile' ); 

    To remove the mention sub tab from profile page, use this (in bp-custom.php):

    
    function bpfr_hide_mention( $retval = 1 ) {
    	$retval = false;
    	// condition 
    	if ( bp_is_user() && ! bp_is_my_profile() ) {
    		$retval = true;
    	}	
    	return $retval;
    }
    
    function bpfr_hide_mention_nav() {	
    	// stop if condition is not ok
    	if ( ! bpfr_hide_mention() ) {
    		return;
    	}
    	// otherwise we remove the nav item
    	//bp subnav items
    	bp_core_remove_subnav_item( 'activity', 'mentions' ); 
    }
    add_action( 'bp_ready', 'bpfr_hide_mention_nav' );

    To unlink @mention (this removes only the link not the mentionned username) AND remove the public message button, use this (in bp-custom.php):
    add_filter( 'bp_activity_do_mentions', '__return_false' );

    To allow the new BP 2.1 @mention tool in bbPress, use this (in bp-custom.php):

    
    function bpfr_bbpress_maybe_load_mentions_scripts( $retval = false ) {
    	if ( function_exists( 'bbpress' ) && is_bbpress() ) {
    		$retval = true;
    	}
     
    	return $retval;
    }
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'bpfr_bbpress_maybe_load_mentions_scripts' );

    Tested with WP 4.1 – BP 2.1.1 – bbP 2.5.4

    #229862
    Brent Havill
    Participant

    Hi Henry

    I went to ‘plugins’/buddypress/settings, and found the following (I note that “account settings” is not ticked – could this be it?)
    I have bolded the ones that are ticked currently.

    Settings:

    Component Description
    Component Description
    Extended Profiles Customize your community with fully editable profile fields that allow your users to describe themselves.
    Account Settings Allow your users to modify their account and notification settings directly from within their profiles.
    Friend Connections Let your users make connections so they can track the activity of others and focus on the people they care about the most.
    Private Messaging Allow your users to talk to each other directly and in private. Not just limited to one-on-one discussions, messages can be sent between any number of members.
    Activity Streams Global, personal, and group activity streams with threaded commenting, direct posting, favoriting, and @mentions, all with full RSS feed and email notification support.
    Notifications Notify members of relevant activity with a toolbar bubble and/or via email, and allow them to customize their notification settings.
    User Groups Groups allow your users to organize themselves into specific public, private or hidden sections with separate activity streams and member listings.
    Site Tracking Record activity for new posts and comments from your site.
    BuddyPress Core It‘s what makes time travel BuddyPress possible!
    Community Members Everything in a BuddyPress community revolves around its members.

    #212785
    danbp
    Participant

    Could it be a plugin “conflict”?

    I don’t think, but it’s possible. To know the answer, check it out, you’re the master on your site !

    Have you tested by writing a notice where you mentionned a member ?

    The snippet removes only the link from @mention, but doesn’t remove or sanitize this part. If somebody writes @ something, you’ll see @ something but without the link to profile.

    And for almost any activity modification, the code isn’t retroactive. Past activities are stored with the old version and the new one are stored with your modification.

    #212784
    Doremdou
    Participant

    Thank you @danbp for your answer.
    I don’t know why but even with your code in bp-custom.php user link to profile are still there on old and new @mentions

    Could it be a plugin “conflict”?

    #212541
    danbp
    Participant

    Hi @iburnthings,

    Try this. Add the snippet to your child-theme functions.php or to bp-custom.php

    /* Remove @mention from profile header */
    function bpfr_remove_mention_from_profile() {	
    	
    	echo '<style> h2.user-nicename { display:none; } </style>';
    	
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    	
    	remove_filter( 'bp_get_displayed_user_mentionname', bp_activity_get_user_mentionname( bp_displayed_user_id() ) );
    	
    }
    add_filter( 'bp_get_displayed_user_mentionname', 'bpfr_remove_mention_from_profile' ); 

    To change the default landing tab, from (activity) to (profile), use this:

    /* Change BuddyPress default Members landing tab. */ 
    define('BP_DEFAULT_COMPONENT', 'profile' );
    #203619
    shanebp
    Moderator

    I’ve never done this, but…

    I believe @mention uses a member’s login name – so it is unique.

    I also believe you can change that so their user_nicename is used by putting:
    ( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', false );
    in bp-custom.php

    Note: user_login, user_nicename and display_name are all the same unless changed in wp-admin or a user’s profile. But that change only applies to display_name afaik.

    So if you want the functionality of @mentions, I believe you need to expose user_login.

    @[name] is set via \buddypress\bp-members\bp-members-functions.php -> bp_core_get_username() which has a filter
    apply_filters( 'bp_core_get_username', $username );
    You could experiment with that filter and see what breaks :}

    #192080
    danbp
    Participant

    That is the BIG question ! If you read the comment i mentionned, it says “converted space”.

    In fact, as stated before, @mention use $username combined with $user_id
    This works in almost every situation, i think.
    If your username (pseudo) is henrywrigth, first name henry, last name wright, the display name would be automatically henrywright. As display_name is the first and last name, not the username.

    Same thing if you chosee HW102 as username (pseudo) and first name henry, last name wright, the display name would be automatically henry wright.

    On frontend, we’ll see HW102 and on mouseover, we’ll see henrywright. (with converted space)
    On backend, we have HW102 (username) and Henry Wright (NAME)

    NAME is the BP combination of WP’s first+last name on a profile.
    And you always mention somebody by the username.

    #176741
    scimea
    Participant

    @mossyoak How did you accomplish that?

    I need a solution that allows only the user (and the admin) to see their own profile. I need it so members not involved (@mentioned) in conversations on activity strea cannot see them.

    Only the members involved and the admin should be able to see the conversation.

    Thanks,
    Adam

    #169743
    David Cavins
    Keymaster

    You can use r-a-y’s code to remove that pane:

    //Removes mentions pane from profile activity (doesn't remove mention functionality)
    function ray_remove_mention_nav() {
    global $bp;
    bp_core_remove_subnav_item( $bp->activity->slug, 'mentions' );
    }
    add_action( 'bp_setup_nav', 'ray_remove_mention_nav', 15 );

    It works on my 1.8+ test setup.

    -David

    #143406
    teorourke
    Participant

    Ah nevermind! It seems it’s part of the theme design. I’ve gone ahead and posted on their forums on how to get it back. Thanks anyway!

    #143399
    @mercime
    Participant

    Did you add a plugin recently? If you change to bp-default theme, do the mentions show up?

    George
    Participant

    If you go to your profile or the activity stream and type in @admin I get a notification.

    Do it on the forums, no notification.

    jakeyboy1989
    Member

    no help or ideas?

    jakeyboy1989
    Member

    Anyone have any ideas on this?

    Is this a feature or a bug?

    #119536
    Paul Wong-Gibbs
    Keymaster

    BuddyPress doesn’t use Facebook’s wall idea. It’s more like Twitter; you need to @mention them. The default theme has a “public message” button when viewing another user’s profile; this is a shortcut and it provides the @mention for you.

    #114544
    gregfielding
    Participant

    @katemgilbert

    It’s not that the profiles are broken, but that the activity and @mention permalinks for prior events aren’t updated. New activity will have the correct, new link, while prior activity links will be broken.

    I’ll let you know if I have any more luck with this!

    #111379
    Virtuali
    Participant

    If you want to have it on a different page, just change the permalink on the profile to something different, or “URL”. This may help. https://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/

Viewing 25 results - 26 through 50 (of 91 total)
Skip to toolbar