Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '@mention on profile'

Viewing 25 results - 26 through 50 (of 81 total)
  • Author
    Search Results
  • #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/

    #111298
    Michael Eisenwasser
    Participant

    I have long thought BuddyPress was confusing, and so I decided to take on the task of building a theme that would solve every issue I have with BuddyPress. It can be downloaded at http://www.buddyboss.com.

    1. Groups and Forums are combined in an INTUITIVE way on my theme. It finally makes sense!
    2. @mentions are gone. In their place is a TRUE Facebook wall on every profile. Post on friend’s profiles and status updates with threaded comments. You’ve got to try it to see how sweet it is :)
    3. Stripped out all of the nonsense that adds to BuddyPress’ general chaos, and what’s left is a simple and enjoyable experience.

    Michael Eisenwasser
    Participant

    Here’s the answer! It has always frustrated me how @mentions work in BuddyPress as I find it chaotic and confusing for users. So I built a theme that converts the @mentions system into a TRUE Facebook wall with post to profile and threaded replies. If you every need to, at any time you can deactivate our Wall Component from the dashboard and your content will revert to @mentions, You can download the theme at http://www.buddyboss.com.

    #111294
    Michael Eisenwasser
    Participant

    I created a theme that comes with a true Facebook wall. It converts all @mentions into Wall posts that can be replied to and threaded on your profile and is extremely intuitive to use, and it makes use of some of the code in R-a-y’s plugin. You can get it at http://www.buddyboss.com.

    Michael Eisenwasser
    Participant

    You might want to try the BuddyBoss theme at http://www.buddyboss.com. It has a built in Wall on user profiles. Images and video can be added via oEmbed for BuddyPress, and the wall functions like a true Facebook wall in terms of how the conversation flows. It converts @mentions into wall posts so the BP Gallery plugin could potentially be integrated if you know what you’re doing.

    msullens88
    Member

    @embergermedia

    This is how I got the mentions in the profile activity feed.

    Edit the file bp-activity-classes.php in the buddypress plugin folder.

    `function get_filter_sql( $filter_array ) {
    global $wpdb;

    if ( !empty( $filter_array ) ) {
    $user_filter = explode( ‘,’, $filter_array );
    $user_sql = ” ( a.user_id IN ( ” . $filter_array . ” ) “;
    foreach ( $user_filter as $user_id ) {
    $search_terms = ‘@’ . bp_core_get_username( $user_id ) . ‘<';
    $user_sql .= “OR ( a.content LIKE ‘%%”.like_escape($search_terms).”%%’ ) “;
    }
    $user_sql .= ” ) “;
    $filter_sql[] = $user_sql;
    }`

    and replace this first top half of the function, No need to edit past the first “if” part of that function.

    Hope this helps!

    @msullens88 How did you combine @mentions, status updates, photos from bp-gallery into one activity feed? I have been looking for the answer to this for weeks. I have an activity feed on a users profile, but can’t get @mentions to show.

    Your help would be greatly appreciated!

    Thanks

    -Paul

    #108146
    Virtuali
    Participant

    @mercime, it’s because the @mention was after the excerpt on the profile activity stream. It’s weird.

    Notice how our posts are somewhat indented?

    #107101
    modemlooper
    Moderator

    Did you change the login name via a plugin or in the database? I’m looking at your site and the @mentions name in the usernav
    is different –> @BNIWAdmin when the profile header says @stevieG

    #106636
    Virtuali
    Participant

    They are not 2 different kinds of usernames.

    The “username” is for the @mentions.

    Then, additionally, there are “real names” or, “profile names” that are displayed across the site.

    @mercime
    Participant

    === the budypress.org site is not a clear representation of a budypress site : ===

    http://testbp.org/ is a clear representation of a default install of BuddyPress as noted in Codex. And the wall/wire was in the core of BuddyPress plugin pre-BP 1.2 version. Don’t know why it was removed.

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