MyBB Community Forums

Full Version: Add new myBB user programmatically via php code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there documentation somewhere that describes the procedure to add a new myBB user via a PHP script?

I have an existing website that has a pre-existing full-featured user-management system with its own user DB. When a new user registers with that user-management system I want to also automatically create a corresponding myBB user.

Thanks,

TM
You can either insert a new row into mybb_users, or you can go through the user datahandler at inc/datahandlers/user.php (refer to member.php or admin/modules/user/users.php on how to use the datahandler).