Recent content by blantonl

  1. blantonl

    How to provision a new user via external script

    Perfect Jeremy, thank you. I just dumped out the user object to see all the attributes available and I think I'm set now. Many thanks!
  2. blantonl

    How to provision a new user via external script

    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 =...
  3. blantonl

    How to provision a new user via external script

    I don't see 2.0 support for either of those.
  4. blantonl

    How to provision a new user via external script

    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')...
  5. blantonl

    How to provision a new user via external script

    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...
Back
Top Bottom