View Full Version : Database Variable?
Kyojii
11-23-2010, 04:32 AM
I have something I'm trying to integrate into the forums. It has an option to link with a currently configured database.
// Database link:
$config['dbConnection']['link'] = $vbulletin->db;
However the above line doesn't seem to work. Would someone be able to tell me what I should put there?
Is that AJAX Chat by any chance? According to the instructions here: http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Database_Connection
if you want to use an existing database you should comment out a line:
If you prefer to use another database for the chat, you'll need to comment out a line in lib/class/CustomAJAXChat.php, e.g. for the phpBB3 integration version, you'll have to comment out the following:
// Use the existing phpBB database connection:
$this->setConfig('dbConnection', 'link', $db->db_connect_id);
After doing this you can set the database configuration settings alike the standalone version.
and then follow the instructions for a standalone version by setting:
$config['dbConnection']['host'] = 'your_database_hostname';
$config['dbConnection']['user'] = 'your_database_username';
$config['dbConnection']['pass'] = 'your_database_password';
$config['dbConnection']['name'] = 'your_database_name';
which I think you could copy the needed info from the vBulletin config.php file.
Hope this helps.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.