vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Auto register from other website page (https://vborg.vbsupport.ru/showthread.php?t=237037)

skyfey 02-27-2010 02:17 PM

Auto register from other website page
 
Hi there,

I've got a website which has a registration system itself but I would like it to automaticly as well create the account for the vBulletin forum once registering at the normal website. How could this be done?

Thanks in advance.

compwhizii 02-27-2010 02:22 PM

Give this a read, its for vB 3 but it hasn't changed much: https://vborg.vbsupport.ru/showthread.php?t=82836

If you're using software (i.e. MediaWiki), check to see if a integration mod exists.

skyfey 02-27-2010 02:27 PM

Thank you, but what files should be included to be able to do this?

Thanks for your help.

EDIT: nvm, found the class in the post. Will try this thanks.

EDIT2: I tried with the example, doesn't seem to work ( probbably doing something wrong ) :

PHP Code:

<?php
define
('VB_AREA''External');
define('SKIP_SESSIONCREATE'1);
define('SKIP_USERINFO'1);
define('CWD''forums');
require_once(
CWD '/includes/init.php'); 

$newuser =& datamanager_init('User'$vbulletinERRTYPE_ARRAY);
$newuser->set('username''testUser');
$newuser->set('email''foo@bar.com');
$newuser->set('password''verysecret');
$newuser->set('usergroupid'2);   
?>

EDIT3: lol forgot to actually create the user, will try again

EDIT4: Got it working! Thanks :D


All times are GMT. The time now is 04:49 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.00924 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_php_printable
  • (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