vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Registering a user in vBulletin database from other system (https://vborg.vbsupport.ru/showthread.php?t=312229)

lettebasse 06-17-2014 06:19 PM

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

kh99 06-17-2014 06:38 PM

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).

kh99 06-17-2014 06:51 PM

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.

lettebasse 06-23-2014 01:05 AM

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

kh99 06-23-2014 08:44 AM

Yes, the data managers didn't change much from vb3 to vb4.

lettebasse 06-25-2014 09:50 PM

Thanks mate, you rock :)


All times are GMT. The time now is 05:24 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.00985 seconds
  • Memory Usage 1,709KB
  • 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
  • (6)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