This topic has 4 replies, 2 voices, and was last updated 9 years by Norman.

  • Author
  • #53800
     Norman
    Participant

    Hi on my site I do not allow users to use an empty space in their username.
    But I can’t inform people on that fact.

    For XUserfields I can easily add a comment, for example for the nickname.
    But I can’t do that for the USERNAME.

    is there a way that I can display this in the registration form:

    Username (required) ( no empty spaces allowed )

    #53846
     sharmstr
    Moderator

    There’s no way to inject the message so you’ll have to edit the register page.

    Copy /kleo/buddypress/members/register.php to your child theme then edit.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #53901
     Norman
    Participant

    thx @shrmstr,

    what kind of code do i have to place, if i simply want to add a line of text under the username field like
    ” no spaces in usernames allowed ”
    and still keep the WPML multi language usability- should be able to translate this string or is this not possible.

    #53918
     sharmstr
    Moderator
    COPY CODE
    
    <?php _e( 'No spaces in usernames allowed.', 'buddypress' ); ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #53981
     Norman
    Participant

    @sharmstr,

    thanks it works. I couldn’t find the string in WPML string translation yet, but maybe i need to rescan all available strings. Thanks again.

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?