cpg and phpbb, more log in/out issues cpg and phpbb, more log in/out issues
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

cpg and phpbb, more log in/out issues

Started by JDuc, September 15, 2005, 10:20:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JDuc

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!


JDuc

#2
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

Nibbler

You are missing a single quote here:

$cpg_path='/coppermine;

that should be

$cpg_path='/coppermine';

JDuc

#4
ok, so I fixed that, and I'm still getting the parse error...guess I'll start another thread?

Joachim Müller


JDuc

yeah - I was impatient and deleted it all and restarted....apparently the problem is fixed now for whatever reason

thanks