MyBB Community Forums

Full Version: Add user outside forum and set cookie
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I use the add user function outside my mybb forum?
I would like to be able to create a user with a php script outside of my forum. And can I also set the login cookie outside the forum? like logging in users outside with a php script.

I'm trying to integrate my forum with my existing website.
thank you!
For the cookie you'll need to adjust your cookie path to just /. For creating a user, you use the UserDataHandler Class located in the inc/datahandlers/user.php file.