BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: Requiring only Username at sign up. #2327

    ah thats awesome. Does it work with your change username plugin, so that if they change their username in settings, it will rechange the visible name? Also, does that go in the header or functions?

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: Requiring only Username at sign up. #2324

    By the way…the css code to get rid of the “visible username” options so that they can’t change it.

    #profile-details-section {
    display: none;
    }

    #profile-edit-form {
    display: none;
    }

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: Requiring only Username at sign up. #2323

    Works good, just will have a loophole if you use Buddydev’s username changer. A hack to make it possible to still change usernames would be awesome 😀 if not I still love you. Hope this helps someone

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: Requiring only Username at sign up. #2322

    I have found the solution to this (I think). Put this code into the header. Need to test to see if its changeable after you log in and see if @mentions is broken with it, but hopefully not.

    <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>

  • Participant
    Level: Enlightened
    Posts: 69

    I’m using this code. Thanks a lot!