PDA

View Full Version : Create new user account


BulliM
02-05-2019, 01:30 PM
I try to add new users by an own php script. Is there a vb method, to create new user accounts to vbulletin without using admincp ?

I have USERNAME, EMAILADRESS, PASSWORD and other defaults if needed.

Todo:

1. Have to check, if username already exists.
2. Convert password into token and secret. (May a function do automatically?)
3. Write new user into database.

Two questions:

1. What is the easiest way to do this?
2. Are there any steps to do furthermore?

delicjous
02-05-2019, 03:20 PM
Look at "core/vb/api/user.php->function save"
Small example in do_not_upload examplepackages.

BulliM
02-05-2019, 04:29 PM
Was helpful. Above this function is explained, what's to do. I'll try that. Thank you delicjous!

doc55
08-15-2019, 12:09 PM
Hi, Were you able to figure this out? I need the same exact thing for my site. I am not an expert in coding (know some basics). I appreciate if you could help me with your code example.
Thanks