The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Choosing their username for them
I have two custom fields on my registration form - one is for their firstname and the other for their lastname.
I want their username to always be firstname_lastname (or customfield1_customfield2). Is there a way to make that happen automatically? |
#2
|
||||
|
||||
You could overwrite the username variable just before it is inserted into the database via plugins.
|
#3
|
|||
|
|||
How would I do that?
|
#4
|
||||
|
||||
Create a plugin at register_addmember_process, overwriting whatever the username variable is.
|
#5
|
||||
|
||||
If you're an expert coder you can do it fairly easily. If you're like most of the rest of us, the answer to your original question is 'no'.
In fact, I don't think you can do it anyway in a practical sense. Some things just don't have a software solution. What would stop someone from entering "John <space>" and becoming just "John " on your board? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|