'topics', 'categories' => 'sections', 'users' => 'contributors', 'user' => 'contributor', ); */ /* Set QA_EXTERNAL_USERS to true to use your user identification code in qa-external/qa-external-users.php This allows you to integrate with your existing user database and management system. For more details, consult the online documentation on installing Question2Answer with single sign-on. The constants QA_EXTERNAL_LANG and QA_EXTERNAL_EMAILER are deprecated from Q2A 1.5 since the same effect can now be achieved in plugins by using function overrides. */ define('QA_EXTERNAL_USERS', false); /* Out-of-the-box WordPress 3.x integration - to integrate with your WordPress site and user database, define QA_WORDPRESS_INTEGRATE_PATH as the full path to the WordPress directory containing wp-load.php. You do not need to set the QA_MYSQL_* constants above since these will be taken from WordPress automatically. See online documentation for more details. define('QA_WORDPRESS_INTEGRATE_PATH', '/PATH/TO/WORDPRESS'); */ /* Out-of-the-box Joomla! 3.x integration - to integrate with your Joomla! site, define QA_JOOMLA_INTEGRATE_PATH. as the full path to the Joomla! directory. If your Q2A site is a subdirectory of your main Joomla site (recommended), you can specify dirname(__DIR__) rather than the full path. With this set, you do not need to set the QA_MYSQL_* constants above since these will be taken from Joomla automatically. See online documentation for more details. define('QA_JOOMLA_INTEGRATE_PATH', dirname(__DIR__)); */ /* Some settings to help optimize your Question2Answer site's performance. If QA_HTML_COMPRESSION is true, HTML web pages will be output using Gzip compression, which will increase the performance of your site (if the user's browser indicates this is supported). This is best done at the server level if possible, but many hosts don't provide server access. QA_MAX_LIMIT_START is the maximum start parameter that can be requested, for paging through long lists of questions, etc... As the start parameter gets higher, queries tend to get slower, since MySQL must examine more information. Very high start numbers are usually only requested by search engine robots anyway. If a word is used QA_IGNORED_WORDS_FREQ times or more in a particular way, it is ignored when searching or finding related questions. This saves time by ignoring words which are so common that they are probably not worth matching on. Set QA_ALLOW_UNINDEXED_QUERIES to true if you don't mind running some database queries which are not indexed efficiently. For example, this will enable browsing unanswered questions per category. If your database becomes large, these queries could become costly. Set QA_OPTIMIZE_DISTANT_DB to false if your web server and MySQL are running on the same box. When viewing a page on your site, this will use many simple MySQL queries instead of fewer complex ones, which makes sense since there is no latency for localhost access. Otherwise, set it to true if your web server and MySQL are far enough apart to create significant latency. This will minimize the number of database queries as much as is possible, even at the cost of significant additional processing at each end. The option QA_OPTIMIZE_LOCAL_DB is no longer used, since QA_OPTIMIZE_DISTANT_DB covers our uses. Set QA_PERSISTENT_CONN_DB to true to use persistent database connections. Requires PHP 5.3. Only use this if you are absolutely sure it is a good idea under your setup - generally it is not. For more information: http://www.php.net/manual/en/features.persistent-connections.php Set QA_DEBUG_PERFORMANCE to true to show detailed performance profiling information at the bottom of every Question2Answer page. */ define('QA_HTML_COMPRESSION', false); define('QA_MAX_LIMIT_START', 19999); define('QA_IGNORED_WORDS_FREQ', 10000); define('QA_ALLOW_UNINDEXED_QUERIES', false); define('QA_OPTIMIZE_DISTANT_DB', false); define('QA_PERSISTENT_CONN_DB', false); define('QA_DEBUG_PERFORMANCE', false); /* And lastly... if you want to, you can predefine any constant from qa-include/db/maxima.php in this file to override the default setting. Just make sure you know what you're doing! */