coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Ravie13 on May 14, 2005, 09:57:53 AM

Title: PhPBB 2.0.8 and Coppermine Login Problem
Post by: Ravie13 on May 14, 2005, 09:57:53 AM
Hi there!  I've just updated the files per the integration directions on the Coppermine manual.  I'm not getting any horrible error messages or anything so I think I did things sorta right.

However - when I pull up my Coppermine Gallery and click "Login" it takes me to my phpbb board login page (which I guess is normal) - however once I am logged in on the board and navigate back to the Gallery - I am not logged in there.  (Which means I can't login as admin or anything in the Gallery.)

I've created a test user (using the PhPBB admin panel):

User: Test
Pass: Test

Board is located at:  http://FGObsession.RavenWolfProds.com/board
Gallery is located at:  http://FGObsession.RavenWolfProds.com/Gallery

Bridge file code looks like:

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


Init file looks like:

define('COPPERMINE_VERSION', '1.3.2');
// 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);


cpg file looks like:

<?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;
?>



Any hints/ideas/advice?
Title: Re: PhPBB 2.0.8 and Coppermine Login Problem
Post by: Tranz on May 14, 2005, 05:03:54 PM
First, you really need to upgrade your phpbb 2.0.15 to fix several security issues since 2.0.8.
Title: Re: PhPBB 2.0.8 and Coppermine Login Problem
Post by: Nibbler on May 14, 2005, 05:47:54 PM
Are phpbb and coppermine in the same database ?
Title: Re: PhPBB 2.0.8 and Coppermine Login Problem
Post by: Ravie13 on May 18, 2005, 10:13:09 PM
I've just upgraded the PhPBB to 2.0.13 (which is the highest the Fantastico at my host was offering).

I'm not really sure what you mean by are the Coppermine and Phpbb in the same database.  How do I check?
Title: Re: PhPBB 2.0.8 and Coppermine Login Problem
Post by: Joachim Müller on May 19, 2005, 09:49:47 AM
you shouldn't use fantastico builds, but the actual packages (the original phpBB software that is available on the phpBB site). The admin panel of phpBB should tell you on which database it is installed. Check your_coppermine_dir/include/config.inc.php to find out on what database coppermine is installed.
IMO auto-installers like fantastico suck for this very reason: users are lured into not understanding the software good enough to be able to fully control and maintain it. Ask your webhost if you can't figure out on which databases your apps are.
Title: Re: PhPBB 2.0.8 and Coppermine Login Problem
Post by: pyimaung on May 28, 2005, 03:26:15 AM
I'm having the exact same problem! Does anyone have a solution to this?? Thank you!
Title: Re: PhPBB 2.0.8 and Coppermine Login Problem
Post by: Nibbler on May 28, 2005, 02:53:17 PM
Put them in the same database or wait for CPG 1.4