Search Results for '@mention on profile'
-
AuthorSearch Results
-
March 26, 2015 at 8:44 am #236652
In reply to: No Notifications For Mentions In Comments
danbp
ParticipantPost 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.
December 27, 2014 at 1:10 am #231089In reply to: Updated solution to removing @mentions
danbp
ParticipantTo 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
November 29, 2014 at 3:28 am #229862In reply to: Our Member Posts Pages Not Showing in Buddypress
Brent Havill
ParticipantHi 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.October 14, 2014 at 1:21 pm #212785In reply to: [Resolved] Disable @mentions (links) completely
danbp
ParticipantCould 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.
October 14, 2014 at 1:09 pm #212784In reply to: [Resolved] Disable @mentions (links) completely
Doremdou
ParticipantThank 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 @mentionsCould it be a plugin “conflict”?
October 14, 2014 at 8:27 am #212541In reply to: Hide Activity tab in Profile / Disable @mentions
danbp
ParticipantHi @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' );October 2, 2014 at 7:10 pm #203619In reply to: Conflict (sort of) with Social Login & Mentions
shanebp
ModeratorI’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.phpNote: 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 :}September 11, 2014 at 11:04 pm #192080In reply to: How to make my site like Facebook
danbp
ParticipantThat 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.January 10, 2014 at 10:20 pm #176741scimea
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,
AdamAugust 12, 2013 at 1:40 pm #169743In reply to: [Resolved] Disabling @mentions
David Cavins
KeymasterYou 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
October 13, 2012 at 10:28 pm #143406In reply to: @mention not showing in profile
teorourke
ParticipantAh 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!
October 13, 2012 at 8:28 pm #143399In reply to: @mention not showing in profile
@mercime
ParticipantDid you add a plugin recently? If you change to bp-default theme, do the mentions show up?
June 28, 2012 at 3:16 pm #136520George
ParticipantIf you go to your profile or the activity stream and type in @admin I get a notification.
Do it on the forums, no notification.
April 20, 2012 at 2:36 pm #133301jakeyboy1989
Memberno help or ideas?
April 18, 2012 at 6:01 pm #133194jakeyboy1989
MemberAnyone have any ideas on this?
Is this a feature or a bug?
September 4, 2011 at 10:24 am #119536In reply to: be able to post onto all members activity?
Paul Wong-Gibbs
KeymasterBuddyPress 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.
June 15, 2011 at 3:46 am #114544In reply to: BP Enable Root Profiles produces 404 errors
gregfielding
ParticipantIt’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!
April 30, 2011 at 3:20 pm #111379In reply to: Query/Call @mentions List
Virtuali
ParticipantIf 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/
April 29, 2011 at 5:21 am #111298In reply to: ”BuddyPress is confusing”
Michael Eisenwasser
ParticipantI 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.April 29, 2011 at 5:11 am #111296Michael Eisenwasser
ParticipantHere’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.
April 29, 2011 at 5:01 am #111294In reply to: @mentions is confusing to members
Michael Eisenwasser
ParticipantI 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.
April 29, 2011 at 4:58 am #111293Michael Eisenwasser
ParticipantYou 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.
April 24, 2011 at 2:47 pm #110868msullens88
MemberThis 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!
April 14, 2011 at 5:53 am #110205embergermedia
Member@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
March 18, 2011 at 1:22 pm #108146In reply to: JobRoller + BuddyPress errors
-
AuthorSearch Results