PDA

View Full Version : Add user to database from outside vbulletin


AmazingRibs
07-17-2014, 02:26 AM
I want members to be added to my vbulletin when filling out a registration form on a different part of my site. What all needs to be added to database to make the account work? Seems like token and secret are fields I need to be generated in vbulletin also don't know how to encrypt the password.

Any help appreciated, thanks!

Dead Eddie
07-17-2014, 03:33 AM
Either go through the API (vB_Api_User::save()) or the datamanager (vB_Datamanager_User).

Either will make your life much easier.

Zachery
07-17-2014, 03:54 AM
Don't use datamanagers in 5, they're legacy and not used directly anymore.

Dead Eddie
07-17-2014, 11:16 AM
Hm. The only reason I suggested it was because it's used in the API. :)