Well, I just made some guesses and stumbled into this which actually works:
<?php
// bootstrap framework
$dir = __DIR__;
require($dir . '/src/XF.php');
XF::start($dir);
// create user
/** @var \XF\Service\User\Registration $registration */
$registration =...
I found code for doing this in XF 1.5 - but I need to do this for XF 2.0
$newusername = "Joseph";
$newpassword = "12345";
$newemail = "joseph@yahoo.com";
$fileDir = "/home1/myserver/public_html/mywebsite/forums";
require($fileDir.'/library/XenForo/Autoloader.php')...
I need to provision users in Xenforo 2.0 via an external registration system. Does anyone have any code examples or documentation on how to accomplish this?
I see in a previous thread that I can initialize the XF Framework and then access the user methods and objects, like below, but I don't...