• Register
Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Multiple Q2A sites with shared user base in 1.4?

+5 votes
324 views

I saw that the dev preview says "Allow multiple Question2Answer sites to share a single user base, via new settings in qa-config.php."

Can you provide a few more details here? I'm assuming this would allow for "meta" sites and the like?

asked Apr 5, 2011 in Q2A Core by Scott
edited Dec 11, 2012 by Scott
that  sounds good.
what is this ?

1 Answer

+6 votes
 
Best answer

It's fairly straightforward and explained in qa-config.php.

Basically you can set a different prefix for those database tables which are related to users and their profiles. So you can set up multiple Q2A sites which use the same prefix for user-related tables, and different prefixes for the other tables.

There's a also a setting for the cookie domain, so that people logging in to one subdomain will automatically be logged in to other subdomains.

If you use Facebook login, be sure to also set the higher level domain in your FB application settings, so the Facebook cookie is also shared.

answered Apr 5, 2011 by gidgreen
Thanks, sounds good!
...