Thank you too for your answer. If i could just explain a bit further?
Your Q2A script is well thought out and geared up to integrate with other sites, but the script i'm trying to run it with does not have a user base of it's own, but rather relies on the user database of other scripts. This means that i would have to install Q2A with it's own user database, rather than by using the external config. My portal would then use Q2A's userbase.
If i was to integrate a forum called MyBB with the portal, then the correct settings would be:
$dbhost = $config['hostname'];
$dbname = $config['database'];
$dbuser = $config['username'];
$dbpasswd = $config['password']
If i use the AEF forum, the settings would be:
$dbuser = $globals['user'];
$dbpasswd = $globals['password'];
$dbname = $globals['database'];
$dbhost = $globals['server'];
If i were to use the VB forum with my portal, the settings would be:
$dbhost = $config['MasterServer']['servername'];
$dbname = $config['Database']['dbname'];
$dbuser = $config['MasterServer']['username'];
$dbpasswd = $config['MasterServer']['password'];
But instead of those, i wish to use Q2A's equivalent.
As mentioned above, this:
$dbhost =define('QA_MYSQL_HOSTNAME', 'localhost');
$dbuser =define('QA_MYSQL_USERNAME', 'myhost_chris');
$dbpasswd =define('QA_MYSQL_PASSWORD', 'password');
$dbname =define('QA_MYSQL_DATABASE', 'myhost_mydatabase');
Simply doesn't work. Your help would be most appreciated.
Aslo, you're quite welcome to look at the portal site i'm using if it helps to get a better idea, just click on the 'forum' link and understand that i wish to replace that with Q2A. Thanks for taking the time to assist.
http://yiphee.com