Very nice hack. I will use it.
But I have a suggestion for an improvement: If you define in the AdminCP forbidden usernames, they are not taken into account for your check. That means, the user e.g. enter as username "Administrator", the green bar appears "Everything o.k., username is not used yet", but when the registration is send, the vB-errormessage says: Username is already taken.
Maybe there is a way to look for forbidden usernames in your check too ?
BR
Jörg
[EDIT] I found out, that all other checks (username too short, too long, etc.) are not checked with your skript. Maybe you can have a look, if you can use exact the same checks, as the vB-standard ? [/EDIT]
|