PDA

View Full Version : Username


sybarites
03-06-2006, 06:46 AM
Is it possible to have a username where the user enters their first name into a box then their second name and it then Merges the two together to make a username and auto capitalizes it.

Thanks

merk
03-06-2006, 08:18 AM
Yes it is possible :p

Where? Registration Page?

sybarites
03-06-2006, 10:29 AM
Yes the registration page.

merk
03-06-2006, 10:41 AM
My advice would be to split the username field into 2 fields (in the templates), naming them appropriately like username_firstname, username_lastname - then in the initial registration hook for processing the submission, do your processing on the fields, then set $vbulletin->GPC['username'] to the processed result. (so it appears to have come from user input, but is processed)

I do this for thread titles, relying on other inputs (other fields), i then set the $vbulletin->GPC['subject'] to the title i want, overriding what they wrote in the title field (if need be)

I hope i made sense :)

sybarites
03-06-2006, 10:42 AM
Sorry I am completely new to this could you please give me some detailed instructions how and what to do.

Thank You so much

merk
03-06-2006, 11:16 AM
Sorry mate, I dont have time to look into it any furthur than that. Hopefully someone else can guide you.

Alternatively, you could ask in the requests forum, maybe someone can make it for you.

Marco van Herwaarden
03-07-2006, 08:00 AM
Moved to requests.

sybarites
05-24-2006, 09:51 AM
Anyone!