The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Automatic Account creation Error Handling & Usergroup Updating
Hi,
Thanks for the great support and codes. I have this code from another thread which is working great adding new account automatically. PHP Code:
I just stuck with error handling.. i.e. there could be two types of errors.. 1. Email is already in use.. that means this user is already registered ! in that case i want to add him to additional usergroup 2. Username already exists... but Email does not in use, that means user need to choose some other USERNAME, in that take to form again to ask to choose different username.. I am stuck on #1 above.. as in errors $newuser->errors how can i make sure that if $newuser->errors[0] is error case #1 or #2 $newuser->errors[1] is error case #1 or #2 Ideally it would be great if i could have $newuser->errors['email'] that means email already exists but not username, error case #1 above. $newuser->errors['username'] that means username already exists error case #2 above. Maybe i am approaching it wrong, i am very new to VBulletin.. hope you can guide me Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|