MyBB Community Forums

Full Version: More then 1 mybb, same user database?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering if it would be possible to have:
Lets say:
1 MyBB is already up, it has over 100 members would it be possible to make another MyBB different domain, (but same webhosting) to share the same use database so that if user XX registers on site A, he can also log in perfectly fine at site B, and vice versa.
(2008-11-06, 01:27 AM)yeti Wrote: [ -> ]I was wondering if it would be possible to have:
Lets say:
1 MyBB is already up, it has over 100 members would it be possible to make another MyBB different domain, (but same webhosting) to share the same use database so that if user XX registers on site A, he can also log in perfectly fine at site B, and vice versa.

It requires some major reconstruction of the MyBB core coding to do this. I recommend you don't do it, but there is an "easy" option.

The file ./inc/datahandlers/user.php is where MyBB updates the majority of user information (emails etc.). By using this, you can sync two user tables on different databases, but it takes ages and is not fully tested. For every insert or update query, you need to duplicate it to update the other database. In theory it will work, but not without a headache or three...