• Jdejean

    (@jdejean)


    [ Moderator note: moved to How-to and Troubleshooting. ]

    Hi everyone, I´m setting a website for members. Today each member has a card with a unique code on it. (AA0001)

    I would like them to register using this code as username. BUT, I would like to predefine the possible usernames, (AA0001, AB001, AA002 etc. ) so if they imput their number wrong, wordpress should say that that user isn´t possible.

    Is there a say to do so? Maybe a plugin? I have seen many that allows restrictions when it comes to characters long, characters, etc. wich are great, but doesn´t really do what I need them to do right now.

    I have also tried to register them in bulk using AMU plugin (another great one) But I feel like I shouldn´t predefine a password and email for them… I´d like that to be open.

    Thanks in advance, have a great week!

Viewing 3 replies - 1 through 3 (of 3 total)
  • webdesignerchristian

    (@webdesignerchristian)

    So you set up pre defined members and labeled them accordingly AA0001.
    then each member logs in using the predefined name you created.

    Thus, if name already exists then i just need my password to login. and suggest disabling name field so user can not change name.

    or you may create a look up table with all your predefined names and when the user creates account where user id 5 = name id 5 (AA0005) populates the name field and user never puts name in.

    Thread Starter Jdejean

    (@jdejean)

    Hi webdesignerchristian, thanks for your answer! But I´m not sure I´m following you…

    Maybe the answer is just removing the registration form and let users only log in to their premade accounts after I pre registered them (a001, a002, a003, etc)

    But… How can I let them set their own password and email when they log in into their accounts? Will I have to inform users about their password preset by me using this method? Maybe a plugin that let´s users choose their password upon first login?

    The thing is that I probably focused the whole thing wrong… I have seen this used in many applications, but I´m not sure I´m understanding it.

    Users have a alphanumeric ID that needs to be their username. (or at list, something that stays in a url for example mysite.com/user/A001

    Users set their profile, adding their ID number on their profile.

    But… here´s the catch, That ID has to be previously stored somewhere, just in case a (spammer, or external person to the group) wants to register himself with a made up id, won´t be able to complete the form.

    Hopefully someone understands what I´m trying to archive… I´m not even 100% understanding myself.

    webdesignerchristian

    (@webdesignerchristian)

    yeah im lost… lol no just kidding.

    maybe easier this way for you. create a separate table with list of all available names, then as user registers check against the list that the name is there. if so then continue registration, if not then stay on page and retry.

    if (username == one on list) {register}else {try again}

    it may be to be coded “recursive” i think is the word.

    if (username !== one on list) {try again}else {register}

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pre-ser usernames’ is closed to new replies.