MyBB Community Forums

Full Version: 2 forums using the same user base
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was wondering if any1 could code anything up for doing this...
I am planning to setup a second forum but i dont want my users to reregister again if they are going to use the second forum, so i was wondering if something could be done for it Big Grin

-Thanks
You can import the mybb_users table in your other database, though.
Same db login for config?
So, you want to run 2 boards with the same mybb_users table? When they are in the same database, you can rename the "normal" table for that board (for example mybb2_user) to the table of the other board (for example mybb_user).

Open inc/db_mysql.php and find:
PHP Code:
        $qtimer = new timer(); 

After add:
PHP Code:
        $string preg_replace("/mybb2_users/""mybb_users"$string); 

Open inc/db_mysqli.php and find:
PHP Code:
        $qtimer = new timer(); 

After add:
PHP Code:
        $string preg_replace("/mybb2_users/""mybb_users"$string); 

When you have other prefixes:
mybb2_ is the original prefix of that board
mybb_ is the prefix of the other board

Note that this only works when the two boards are in the same database and that when you add a post with mybb2_users, it will also change to mybb_users, but I don't think that is so bad.
And you must to do this with only one of the two boards.
^ Note that the above will have some caching issues (ie number of users registered won't update across all boards).
ZiNgA BuRgA Wrote:^ Note that the above will have some caching issues (ie number of users registered won't update across all boards).

So i'll have to syncronise the forum manually?
or are there any other methods
Well, it is only usable when the board on which you rename the mybb2_users to mybb_users is a new one, when there are already new users (except you) and posts, it wont work.
Then what if its an existing forum with a few hundred members like here
To use the "system" like I said, one of the two boards must to be new.
How about a forum in a different database or server?
or are there any other methods
Pages: 1 2
Reference URL's