Viewing 4 replies - 1 through 4 (of 4 total)
  • BlackSheep42

    (@blacksheep42)

    Hi. I have exactly the same issue. Needed to restrict users from entering a space in their username during initial registration. Downloaded this plugin as it sounded perfect for my needs. Unfortunately it hasn’t stopped anyone from entering a space. I am also using Theme My Login 6.4.1 to keep users out of the backend during this process.

    WordPress 4.3.1. Paid Memberships Pro 1.8.3.

    Thanks

    Blair

    (@cbcbcb)

    +1 would love see this resolved.

    Hi

    You can do this like that

    it only accepts letters and numbers

    regards

    jQuery(document).ready( function () {
    
    jQuery("#username").on("input", function(){
            var regexp = /[^a-zA-Z0-9]/g;
            if($(this).val().match(regexp)){
              $(this).val( $(this).val().replace(regexp,'') );
            }
          });
    } );

    Same.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn't work with Paid Membership Pro’ is closed to new replies.