vBulletin Mods

The Official vBulletin Modifications Site

Creating new user on VB4
by nicolasp
04 Nov 2016 16:27


I have a WordPress website and a VB forum.
I would like to do the following things:

1) Create a form on WP to register, and add the new registered user in VB4, creating a new entry in the user table.

2) Create another form in WP where logged users can see and modify their profile information available in VB.

I already create a script to add a new user to the "user" table in the VB database, but when I try to login it doesn't recognize the new user.
Is there another table to modify in order to create a valid user, or just the "user" table?

About the second point, I would also like to know if profile infos are also stored in the "user" table, or if I need to update other tables?

Thank you for your help!

Dave 04 Nov 2016 20:08

Check the file /includes/class_dm_user.php between lines 1150 and 2000.
This is the datamanager vBulletin uses for most interactions with users, including the creation and modification of users.
Best is if you create an instance of that datamanager and create a new user that way instead of making your own INSERT query.

Besides the user table, there's also a table called userfield (used for custom userfields that you can define in the AdminCP) and usertextfield (subscription folders, PM folders, ignorelist, signature, rank).

nicolasp 07 Nov 2016 08:52


Thank you Dave for your reply, I will check that.


All times are GMT. The time now is 23:18.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.