Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Username vs display name

  • Profile photo of xWafflecakes
    xWafflecakes
    Participant

    @xwafflecakes

    One thing about Buddypress that bothers me is the username vs display name. I have already managed to hide the display name field at registration and copy the value from the username, but users can still change their display name in their profile. Is there any way to prevent this?

    If not, can you tell me how I let Buddypress use the username everywhere instead of the display name (for example, the header of the profile shows the display name, as well as the tab in your browser, etc)

    Thank you very much, I hope someone can help me!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Profile photo of xWafflecakes
    xWafflecakes
    Participant

    @xwafflecakes

    Anyone?

    Profile photo of Henry
    Henry
    Member

    @henrywright-1

    Have you tried BuddyPress Usernames Only? https://wordpress.org/plugins/buddypress-usernames-only/

    Profile photo of aussiemike
    aussiemike
    Participant

    @aussiemike

    That plugin works well throughout the site EXCEPT on the user profile where their real name appears. It would be good to be able to show just their username on the profile and not allow any editing.

    I have searched far and wide through the forum here and search engines and there does not appear to be a simple solution. If anyone knows of a solution could they please let me know.

    Regards
    Michael

    Profile photo of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    As far as I can tell, you can copy the template into your theme and from there, alter to the desired output without affecting future BP updates.

    Profile photo of aussiemike
    aussiemike
    Participant

    @aussiemike

    Thanks for your reply Renato
    When you say ‘copy the template into your theme’ are you referring to copying the BP template folder into my WP theme directory?

    I am not sure I really understand what you mean?

    Regards
    Mike

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    He means you can over-ride a BP template by following the directions here

    Theme Compatibility & Template Files

    Profile photo of aussiemike
    aussiemike
    Participant

    @aussiemike

    Thank you

    Mike

    Profile photo of Thunderpeel
    Thunderpeel
    Participant

    @thunderpeel

    @xwafflecakes can you please share how you were able to do what you said in your first post?

    Profile photo of xWafflecakes
    xWafflecakes
    Participant

    @xwafflecakes

    Hey Thunderpeel, I used this code I found somewhere (just put it in your header somewhere):

    <script>
    var url = document.location.href;
    jQuery(document).ready(function() {
    //copy profile name to account name during registration
    if (url.indexOf("register/") >= 0) {
        jQuery('label[for=field_1],#field_1').css('display','none');
        jQuery('#signup_username').blur(function(){
            jQuery("#field_1").val(jQuery("#signup_username").val());
        });
    }
    });
    </script>
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Username vs display name’ is closed to new replies.
Skip to toolbar