Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Nov 2016, 16:27
nicolasp nicolasp is offline
 
Join Date: Oct 2016
Creating new user on VB4

Hi!

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!
Nicolas.
Reply With Quote
  #2  
Old 04 Nov 2016, 20:08
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
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).
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 07 Nov 2016, 08:52
nicolasp nicolasp is offline
 
Join Date: Oct 2016
Hey,

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

Nicolas.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:00.

Layout Options | Width: Wide Color: