Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing Primary (Display Name) Profile Field

  • @pmcvicker

    Participant

    Is there any harm done in removing the Primary (Display Name) Profile field from the database? I don’t want my users to have alternate names from their wordpress login name, and as it appears that BP falls back on the wordpress username virtually everywhere, I can’t see any reason why I shouldn’t just delete it from the database altogether. I know this is locked in via BP Settings, but on a test site I was able to remove it from the database and didn’t notice any problems.

Viewing 12 replies - 1 through 12 (of 12 total)
  • @oaklawn

    Member

    I am having a similar problem. I need to have users to my site ‘Schoolspeakout.com’ to be anonymous. I either need the display name to default to nothing or not be required.

    @djpaul

    Keymaster

    I am pretty sure deleting this default field will cause all sorts of subtle bugs and errors throughout BuddyPress. You’ve been warned.

    @oaklawn

    Member

    Instead of deleting, can it default to nothing or not be a required field?

    @alexanderraoul

    Member

    I need help with this aswell. I don’t want my site to have names or display names, just the usernames. Please, can someone tell us how to fix this without jeopardizing anything?

    @naijaping

    Participant

    @alexanderraoul, i am sure u can hide this with css

    @ramatheron

    Participant

    I’m bumping this topic. I’d like to know too if I can just limit the names for my members to the username. I don’t understand why the ‘Name’ field is required and can’t be turned off… :/

    Can someone help?

    @talha8877

    Participant

    This is really nonsense. People do not want to become a member because this field is public by default and most of them don’t know how to change it.
    It’s really annoying.

    @greenmeanie

    Participant

    Most are using this field to SPAM with any idea’s on how to remove it?

    @rsgguru

    Participant

    I found this thread doing a Google search for the same type of problem noted above. Not finding a solution, I came up with a quick and dirty fix for my site.

    Copy (public) profile name to account user name during registration… the code below simply hides the account user name field and uses jQuery to fill in that field with the profile name value after it is entered or changed by the user.

    Hopefully this will prove useful to the next person that comes along with the same problem 🙂

    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=signup_username],#signup_username').css('display','none');
        jQuery('#field_1').blur(function(){
            jQuery("#signup_username").val(jQuery("#field_1").val());
        });
    }
    });
    

    @hanstis

    Participant

    Hi,

    Where do I have to place this code?

    Best regards, Hans.

    @rsgguru

    Participant

    Sorry for the delay Hans. You can just put the code in your site’s header. Different themes handle this in different ways. For example, in Genesis themes there is a Theme Settings option in the WP Admin tool that has options for adding header and footer code to the site.

    Most themes also have a header.php file that you can edit if you’re comfortable with coding but this is usually a bad idea as future updates may undo your work.

    Finally, there are some plug-ins that will give you the ability to add code within your sites HTML HEAD section:

    https://wordpress.org/plugins/tags/head

    Hope that helps!

    @hanstis

    Participant

    Thanks for your help, my theme supports header code so this will work 😉

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Removing Primary (Display Name) Profile Field’ is closed to new replies.
Skip to toolbar