Search Results for '@mention on profile'
-
AuthorSearch Results
-
June 27, 2015 at 8:12 am #241169
In reply to: How to Center Avatar and Tabs on Profile Page
danbpParticipantHave you tested with 2015 theme ? Does @mention appear near profile avatar ?
If it does, ask on your (premium) theme support.
June 15, 2015 at 5:50 pm #240741In reply to: @mention autosuggest in visual editor
danbpParticipantto get @mention in bbpress topics, try this snippet
https://buddypress.org/support/topic/mention-autolink-to-profile/#post-237202June 4, 2015 at 1:17 am #240148In reply to: Default to “Display name publicly as” username.
mrjarbenneParticipantYou 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 );
April 9, 2015 at 3:07 pm #237566In reply to: @mention autolink to profile
MatthiasParticipantHi @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' );
April 9, 2015 at 12:10 pm #237552In reply to: @mention autolink to profile
MatthiasParticipantHi 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
MatthiasApril 8, 2015 at 10:55 pm #237521In reply to: @mention autolink to profile
MatthiasParticipantHi @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
MatthiasApril 2, 2015 at 10:13 pm #237216In reply to: @mention autolink to profile
danbpParticipantOn 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 ?
March 26, 2015 at 8:44 am #236652In reply to: No Notifications For Mentions In Comments
danbpParticipantPost 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
danbpParticipantTo 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 HavillParticipantHi 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
danbpParticipantCould 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
DoremdouParticipantThank 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
danbpParticipantHi @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
shanebpModeratorI’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
danbpParticipantThat 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 #176741scimeaParticipant@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 CavinsKeymasterYou 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
teorourkeParticipantAh 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
@mercimeParticipantDid you add a plugin recently? If you change to bp-default theme, do the mentions show up?
June 28, 2012 at 3:16 pm #136520GeorgeParticipantIf 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 #133301jakeyboy1989Memberno help or ideas?
April 18, 2012 at 6:01 pm #133194jakeyboy1989MemberAnyone 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-GibbsKeymasterBuddyPress 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
gregfieldingParticipantIt’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
VirtualiParticipantIf 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/
-
AuthorSearch Results