Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Share users on two installed forums?
I have a need to share some overlapping users on two different forums (installs). Is there a way to do this without forcing re-registration of those users?
As a simpler case, would it be possible to share all registered users of one forum with another where they were a subset of a larger group? They don't need a distinguished role - just members of both.
As a simpler case, would it be possible to share all registered users of one forum with another where they were a subset of a larger group? They don't need a distinguished role - just members of both.
1
This discussion has been closed.
Comments
ps: what is "CommentSpamCheck"?
$Configuration['DATABASE_NAME'] = 'database_name';
@Dinoboff - are there other fields besides "UserBlocksCategories" (Discovery? What is that?) that shouldn't be used? Is this a show-stopper for my use case? Can I turn off these fields within forum(s) as administrator when defining what a role can do, even if it limits to some degree the flexibility of Vanilla for users?
@Minisweeper - I love the idea of Multi-Role and expect it to be bullet-proofed. But am I wrong in worrying about a variety of subtle collisions (not always bugs; sometime UI) with other extensions or app requirements based, ultimately, on Vanilla's own simpler design point? I know that's vague at the moment; more of an intuition.
I recently explained in the Premoderation discussion why I need that extension to forestall users who may forget to set the correct categories for confidential (role-centric) discussions. Sharing the same users table and one database across multiple forums seems, in some respects, like a great way to guard the robustness and simplicity of Vanilla while gaining some (not all) of the benefit of multiple roles? I see this as complementary to multiple roles, depending on the requirement.
So, if you mysqldump one of your databases. Then go into the one you didn't mysqldump and change all of the table prefixes to something else. Then re-load your dump into that database, you'll have both installs of vanilla in the same database.
Then add either:
$DatabaseTables['User'] = 'LUM_User';
or
$DatabaseTables['User'] = 'OTHER_User';
to one of the installs.
Also be sure to change the database name on the set of tables that got moved into the first db.
Two minor questions:
... Should I be concerned with Dinoboff's comment about sharing certain fields in the Users Table?
... Is there any reason I can't have a reasonable 'x' number of shared installs in the same database (say, four or five)?
Field like that should have a default value, and in this case you should think to a default role for each forum. When a user sign-up to forum1 you should think to the default role for forum2, and maybe create an extension to allow him to resquest a new role in forum two.
@Dinoboff ... If I go bonkers, would I do the role id mapping also in conf/database.php? Would you mind supplying a 'typical' mapping statement? I am still wondering about UserBlocksCategories - how should I handle this?
I greatly appreciate the time spent helping. I know this is totally out-of-the-box caveat emptor stuff where the buyer who should beware is me.