vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Creating new user on VB4 (https://vborg.vbsupport.ru/showthread.php?t=323798)

nicolasp 11-04-2016 02:27 PM

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.

Dave 11-04-2016 06:08 PM

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 11-07-2016 06:52 AM

Hey,

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

Nicolas.


All times are GMT. The time now is 08:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00933 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete