The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Registering a user in vBulletin database from other system
Hi guys, we are connecting our vBulletin with a new system we programmed from scratch, and we will be handling users registration from this new system. After a user registers in the system that has it's own database, we also need to create that user in the vBulletin database, so he can also use the forum. How should we do this ?
The creation of a user in vBulletin only adds records in the "user" table ? Or do we need to add or modify something else in the database? Many thanks |
#2
|
|||
|
|||
There are other tables, I think 3 total if I'm remembering correctly. You could use the vbulletin "data manager" to create a user, the same way that register.php or admincp/users.php does it, but that would mean including some vb php code in your script. Or you could look at the save() function in includes/class_dm_user.php to see what it does when a user is created (you might also have to study class_dm.php to see how the datamanager base class works).
|
Благодарность от: | ||
lettebasse |
#3
|
|||
|
|||
Well, I had a quick look at it myself, and it seems like maybe if you also insert a row in userfield and usertextfield (using the userid from the user table insert) then you should be good.
|
#4
|
|||
|
|||
Hi mate, thank you very much for that information. Regarding vBulletin Data Manager, this also works for vBulletin 4 ? That's the one we are using.
Many thanks |
#5
|
|||
|
|||
Yes, the data managers didn't change much from vb3 to vb4.
|
Благодарность от: | ||
lettebasse |
#6
|
|||
|
|||
Thanks mate, you rock
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|