phpBB2 bridge Installed - Doesn't recognize CPG membres phpBB2 bridge Installed - Doesn't recognize CPG membres
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

phpBB2 bridge Installed - Doesn't recognize CPG membres

Started by Hooligan, May 26, 2005, 05:29:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hooligan

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
You know, Hobbes, some days even my lucky rocketship underpants don't help.

Nibbler


Hooligan

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?
You know, Hobbes, some days even my lucky rocketship underpants don't help.

Nibbler

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.

Hooligan

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?
You know, Hobbes, some days even my lucky rocketship underpants don't help.