Question2Answer is designed to integrate with websites which have an existing user database and management system. If your site is running WordPress 3.x, you should follow the instructions for WordPress integration. To implement single sign-on for other sites, a small amount of PHP programming is required. Please follow the instructions below:
unzip in the Unix shell).qa-config-example.php in the unzipped question2answer folder, and rename it to qa-config.php.qa-config.php in the text editor you use for PHP programming. Insert the MySQL details at the top, then scroll down and set QA_EXTERNAL_USERS to true, then save the file.qa-external-example subfolder in the unzipped question2answer folder, and rename it to qa-external.
qa-external-users.php file in the qa-external folder, modify the qa_get_mysql_user_column_type() function to return the appropriate MySQL column type for your user identifiers. For example, if you use textual identifiers, return VARCHAR(x), where x is the maximum length. If you use numerical identifiers, return the appropriate numeric type, such as INT UNSIGNED or BIGINT. Ensure you get this right because it will be used in many of Question2Answer's MySQL tables.question2answer folder (including .htaccess and your changes) in the appropriate location on your web server.qa-external-users.php and read it through in full. You will need to modify several functions in order to complete the single sign-on integration. Everything is explained in this file, and lots of examples are included.