It would be helpful to your question to get some terminology sorted.
Example:
- username aka login name: jayd94
- display name: Daniel
In BP, your profile would show:
Daniel
@jayd94
So the name on the BP ‘side’ of register = display name
And the name on the WP ‘side’ of register = username aka login name
Both fields are required.
Using that info, can you restate your question.
Thanks for your fast answer π
What i would like to have is: no name required, only a username -to be displayed in profile-to login with. I must provide the ability to remain anonymus somehow.
*and without the @ preferably-it confuses people they say.
or add possibility to hide the visibility of their names*. so that only username is visible
*Update
All my problem solved, except one by adding some codes(i changed Name field to First name-and that being a must to give is okay):
//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 );
add_filter( βbp_activity_do_mentionsβ, β__return_falseβ );
define( ‘BP_SHOW_DISPLAYNAME_ON_PROFILE’, false );
+ buddypress usernames only plugin
One problem remains only: It now shows the username correctly, but there still is the @ before the name so : @Ortelius
Please help me remove that @ somehow.
Thanks,
Daniel
Hi @jayd94,
@ is hardcoded in the single member header template.
Use this snippet to remove @ and username in one go.
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' );
The @ symbol is added in this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php
Create a template overload of that file and remove the symbol.
Thank you all! Works perfectly π
nothing works4me:-\ i have all the pages correctly created & linked, but nothing shows up:
http://lalofoundation.webhop.org/index.php/about-us/members/register/
is there a conflict with my theme(hathor)?
and why does the menu not show all the pages? my structure is
About Us
β Start-Up Team
β Membership
β β Register
β β Members
β β β Activate
β β β Activity
β β β Groups
β β β Login
β Legal
but register doesn’t show up under membership, not does activate
and i just verified that the theme isn’t @fault…