Some usernames are not valid when users trying to register using the membership plugin

The username that is invalid is Dave, however when I check the database there are no other users with the name Dave. I have tried other usernames and they work fine - just not Dave for some reason...

Any ideas why some usernames would show as invalid and how I can trouble shoot this?

Thanks in advance.

  • SparkPlug
    • Site Builder, Child of Zeus

    Duh, yes you are correct! I totally forgot that... I was doing it on my iPhone and it automatically capitalizes the first letter in the username field.

    How can I automatically convert that field to lowercase when submitting as my clients aren't going to necessarily know that usernames must be lowercase?

    Thanks!

  • Ash
    • WordPress Hacker

    Hi @SparkPlug

    Please use the following code in your theme's footer.php after wp_footer()

    <script type="text/javascript">
    jQuery(function($) {
        $('#signup_username').blur(function() {
            $(this).val($(this).val().toLowerCase());
        });
    });
    </script>

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers
    Ash

  • SparkPlug
    • Site Builder, Child of Zeus

    Thanks Ash, that should work perfectly however its not...

    Using firebug I see some other javascript errors that may be preventing this from working...

    TypeError: $(...).ajaxfileupload is not a function
    onCancel: function() {

    Could I send you the url privately for you to possible take a look at?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.