coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: JDuc on September 15, 2005, 10:20:51 PM

Title: cpg and phpbb, more log in/out issues
Post by: JDuc on September 15, 2005, 10:20:51 PM
Ok, I've just spend the lat 30 min or so looking through these posts and haven't found anything that matches my problem exactly.

I just installed coppermine and bridged it with phpBB.

However, I am running into some issues with the bridge.

I cannot log out of either the bb or coppermine now.

When I click on the log out button in Coppermine, it takes me to the coppermine home page?!

I'm not sure what files you need to look at to help me trouble shoot, and I'm sorry about that, but I'm still learning how to do all of this.

Any help would be greatly appreciated.

TIA!
Title: Re: cpm and phpbb, more log in/out issues
Post by: Nibbler on September 16, 2005, 04:55:05 AM
http://forum.coppermine-gallery.net/index.php?topic=17684.0
Title: Re: cpm and phpbb, more log in/out issues
Post by: JDuc on September 16, 2005, 03:22:20 PM
For coppermine:
http://www.tamumc.org/coppermine

For the forum:
http://www.tamumc.org/forum

For the bridge file:

// database configuration
define('PHPBB_DB_NAME', 'tamumc'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'XXXXXXX.powweb.com'); // The name of the database server
define('PHPBB_DB_USERNAME', 'XXXXXXXXXXXX'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'XXXXXXXXXXXX'); // 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', '/forum/');
// 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);


Enabled phpbb:
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');


My cpg_redir.php file:
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/coppermine;
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


I completely undid everything that was required of me for the bridge, thinking I needed to redo it all.

And now I get the following error when I try to log into coppermine (it sends me to the forum log-in and when I log in I get the following):
Parse error: parse error, unexpected T_STRING in /www/x/xxxxxxxxxx/xxxxxx/forum/cpg_redir.php on line 2

What am I doing wrong?

thanks
Title: Re: cpm and phpbb, more log in/out issues
Post by: Nibbler on September 16, 2005, 03:24:36 PM
You are missing a single quote here:

$cpg_path='/coppermine;

that should be

$cpg_path='/coppermine';
Title: Re: cpm and phpbb, more log in/out issues
Post by: JDuc on September 16, 2005, 03:30:17 PM
ok, so I fixed that, and I'm still getting the parse error...guess I'll start another thread?
Title: Re: cpg and phpbb, more log in/out issues
Post by: Joachim Müller on September 20, 2005, 10:28:25 AM
I get a "404 not found" when I try to access http://www.tamumc.org/coppermine
Title: Re: cpg and phpbb, more log in/out issues
Post by: JDuc on September 20, 2005, 02:19:06 PM
yeah - I was impatient and deleted it all and restarted....apparently the problem is fixed now for whatever reason

thanks