coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Hooligan on May 26, 2005, 05:29:46 PM

Title: phpBB2 bridge Installed - Doesn't recognize CPG membres
Post by: Hooligan on May 26, 2005, 05:29:46 PM
I guess I may not understand the purpose of the bridge but here's what happened after I installed it.

Going to my cpg gallery and clicking login redirects to the phpbb login screen (?)

A cpg member's login user name and pwd is rejected
A phpbb user name and pwd is accepted and taken to the gallery

If admin logins in to the gallery and clicks on "users" he is taken to the phpbb users screen (!?)

I just uninstalled the bridge files but have pasted them below.


init.inc.php=========//snip
define('COPPERMINE_VERSION', '1.3.3');
// 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');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);

set_magic_quotes_runtime(0);
// used for timing purpose
$query_stats = array();
$queries = array();
//end snip

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://www.mygallery.com/gallery".$cpg_host.$cpg_path);
exit;
?>

phpbb.inc.php=========//snip

// ------------------------------------------------------------------------- //
// phpBB2 Integration for Coppermine                                         //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('PHPBB_DB_NAME', 'mydbname'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'mydbusername'); // 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', '/board/');
// 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
// ------------------------------------------------------------------------- //

//endsnip
Title: Re: phpBB2 bridge Installed - Doesn't recognize CPG membres
Post by: Nibbler on May 26, 2005, 05:33:26 PM
Yes, that's exactly what is supposed to happen.
Title: Re: phpBB2 bridge Installed - Doesn't recognize CPG membres
Post by: Hooligan on May 26, 2005, 08:11:22 PM
So does using the bridge files mean a cpg admin gives up the "user menu" in cpg? If so, how do you manage cpg users?
Title: Re: phpBB2 bridge Installed - Doesn't recognize CPG membres
Post by: Nibbler on May 26, 2005, 08:27:35 PM
There are no such thing as cpg users when you bridge. All you have are forum users, which are naturally managed best by your forum.
Title: Re: phpBB2 bridge Installed - Doesn't recognize CPG membres
Post by: Hooligan on May 27, 2005, 05:53:49 AM
OK - think I got it


Even tho the users screen no longer is available in cpg, they have the same rights granted to members created/registered thru the bridge?