This is what the coppermine (1.2.1) readme saysIntegrating the script with your bulletin board
Coppermine can be integrated with the following bulletin boards (eg. Coppermine and your bulletin board will share the same user database)
phpBB 2
Invision Power Board
vBulletin
YaBB SE
The login integration use your bulletin board cookies, therefore it won't work if your board cookies are not visible by Coppermine. So unless you are an expert, keep things simple and install Coppermine and your bulletin board on the same domain. Example :
Bulletin board:
http://yourdomain.com/board/ Coppermine:
http://yourdomain.com/gallery/ If you are using phpBB 2, go to the admin control panel and check that "Cookie domain" corresponds to your domain, "Cookie name" is "phpbb2mysql" and "Cookie path" is "/".
If you are using Invision Power Board, go to the "admin control panel / board settings / cookies" and check that all fields are blank. If they are not, you modified the default values and you are an expert.
If you are using vBulletin, go to the "admin control panel / vBulletin options / HTTP Headers and output" and check that the value for "Cookie Domain" corresponds to your domain and that "Path to save cookies" is "/"
It is also recommended that you use the same database for your board and Coppermine.
You will also need to perform the following operations after having unpacked the archive on your harddrive and before uploading the files to your webserver :
Edit the file include/init.inc.php. At the beginning of the file you will find the following lines :
// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin');
// define('UDB_INTEGRATION', 'yabbse');Un-comment the line that corresponds to the bulletin board you use (eg. remove the "//" that are at the beginning of the line)
define('UDB_INTEGRATION', 'phpbb');The go to the bridge directory and open the file that corresponds to the bulletin board you use (eg. phpbb.php).
At the beginning of the file there are a number a configuration values that need to be set. For phpBB they are the following :
// database configuration
define('PHPBB_DB_NAME','phpBB'); // The name of the database used by the board
define('PHPBB_BD_HOST','localhost'); // The name of the database server
define('PHPBB_DB_USERNAME','root'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD',''); // The password to use to connect to the database
// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH','/phpBB2/');Modify them according to the configuration of your board and save the file.
Upload all files onto your webserver and run the install script. Note that the admin username and password you enter during the installation will be ignored by the script. To login as an admin, you will need to use the admin username and password of your board.
Once you have completed the installation, login using the admin account of your board. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board. The permission you will see for each group will be completely messy, so take some time to set them properly.
Each time you add or delete a group in your board you will need to do the operation above in order to keep the synchronisation of the groups.
When you will try to login / logout or manage users from Coppermine, you will be redirected to the corresponding page of your bulletin board. Once the login or logout is performed you won't be redirected automatically to the gallery because your board does not have any function for that. It's up to you to add a link on your board to get you back to the gallery.
if i don't follow the instructions php asks me to define variables...