Hi,
I need help. cpg as standalone works fine. I can login as admin. After I did the phpbb bridging, I was redirected to forums login page, entered my id and pwd. Then, it redirects me back to the gallery page but I remain log out for gallery. I stayed logged-in for forums.
Thanks in advance for any advice.
cpg and phpbb tables are stored in same database. Both forums and cpg are hosted in same server.
site: www.sgparenting.com
www.sgparenting.com/forums
www.sgparenting.com/gallery
userid: test
pwd: test1234
www.sgparenting.com/gallery/include/init.inc.php
define('COPPERMINE_VERSION', '1.3.4');
// 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');
www.sgparenting.com/gallery/bridge/phpbb.inc.php
// database configuration
define('PHPBB_DB_NAME', 'sgparen_xxxxx'); // The name of the database used by the board
define('PHPBB_BD_HOST', '72.41.4.4'); // The name of the database server
define('PHPBB_DB_USERNAME', 'xxxxx'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'xxxxx'); // 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', '/forums/');
// 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', 'gpare_app'); // 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
www.sgparenting.com/forums/cpg_redir.php
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
You need to set your cookie path to '/' in phpbb's settings. It is currently set to /forums and so cannot be read from /gallery
Thanks Nibbler for the fast response.
Cheers and keep up the excellent work and support.
Regards,
Louis