I'm having some weird login issues with Coppermine, but they're not the normal issues I've been reading about.
If I try to login from the gallery page, only my main administrator account for the gallery is allowed to login (the same admin for my bb.) No other users I've tried can login like that, whether it's a user with admin status, or a test user.
I am, however, able to login to the gallery if I go to the bb, and login there, and then go to the gallery directory. This works with any user.
I don't know if this an issue with the cookies, or if it's some bug or what. Any help is greatly appreciated. Thanks.
bb:
http://www.texastrumpets.com/phpbb/
gallery:
http://www.texastrumpets.com/photos/
Test user
login: test
pwd: test
cpg_redir.php
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/photos';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
phpbb.inc.php
// database configuration
define('PHPBB_DB_NAME', 'texastr_phpbb1'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'texastr_phpbb2'); // 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
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/phpbb/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies
// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table
init.inc.php
define('COPPERMINE_VERSION', '1.3.2');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
Coppermine also uses the texastr_phpbb1 database?
Quote from: kegobeer on February 05, 2005, 10:32:15 PM
Coppermine also uses the texastr_phpbb1 database?
Yes...
It works fine for me. Try deleting your cookies.
When you log in at phpbb, the url goes from http://www.texastrumpets.com/phpbb to http://texastrumpets.com/phpbb, which can cause problems since a cookie may be written as www.texastrumpets.com originally, then you log in and the cookie is suddenly texastrumpets.com.
You should look at your phpbb configuration and see if you have the www in front of your domain.
Seems to be working now... I deleted the texastrumpets.com cookies before, but I didn't check for any www.texastrumpets.com cookies. I also changed the address in my phpbb config. It didn't have the www on it before, but now with it on, all seems to work well. Thanks.