coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: globalfisher on October 02, 2004, 05:21:14 AM

Title: Memberlist Question
Post by: globalfisher on October 02, 2004, 05:21:14 AM
Ok I just installed the photo gallery, I think the latest version but anyway. I have a phpbb forum and I was wondering if there is a way to get the memberlist from that onto my photo gallery that I just installed. It would be easier if my members didnt have to re-register for the gallery, Can anyone help me?
Title: Re: Memberlist Question
Post by: kegobeer on October 02, 2004, 05:53:32 AM
Have you read the documentation that comes with Coppermine (in the docs directory)?
Title: Re: Memberlist Question
Post by: globalfisher on October 02, 2004, 07:44:42 AM
I get a access denied error when I go through the process....
Title: Re: Memberlist Question
Post by: Joachim Müller on October 02, 2004, 07:55:28 AM
post the actual error, together with a link to your site, a test user account (non-admin).

Joachim
Title: Re: Memberlist Question
Post by: globalfisher on October 02, 2004, 07:59:27 PM
This is the error:

Coppermine critical error:
Unable to connect to phpBB Board database !

MySQL said: Access denied for user: 'root@localhost' (Using password: NO)

As for the name, you wont be able to check out the album cause of the error.
http://www.globalfisher.com/album/index.php

Title: Re: Memberlist Question
Post by: globalfisher on October 02, 2004, 08:01:03 PM
I think one of the reasons is, I already installed the coppermine but didnt see the thing about the phpbb thing and I am just doing it now. So it will be installed twice right?
Title: Re: Memberlist Question
Post by: kegobeer on October 02, 2004, 08:04:33 PM
What will be installed twice?  If you have Coppermine installed, phpBB installed, and you follow the bridging instructions in the documentation, you should be ok.
Title: Re: Memberlist Question
Post by: kegobeer on October 02, 2004, 08:10:34 PM
Quotedidnt see the thing about the phpbb thing (emphasis mine)

Can you tell me what "thing" refers to?
Title: Re: Memberlist Question
Post by: globalfisher on October 03, 2004, 02:53:55 AM
It refers to the steps on making the integration.
Title: Re: Memberlist Question
Post by: globalfisher on October 03, 2004, 08:34:16 PM
Can anyone help me?
Title: Re: Memberlist Question
Post by: Joachim Müller on October 03, 2004, 09:28:35 PM
please  re-read this thread and do as suggested.

Joachim
Title: Re: Memberlist Question
Post by: globalfisher on October 03, 2004, 09:57:59 PM
I got most of it working now, just when I ltry loggin in or loggin out it says page cannot be displayed. The users page works and everything else just not logging in.

Forum:
http://www.globalfisher.com/phpbb

Coppermine Gallery:
http://www.globalfisher.com/album/index.php

Test Account on phpbb forum:
Name: testing
Password: 1234

phpbb cookie settings:
cookie domain: its blank
cookie name: phpbb2mysql
cookie path: /
cookie secure: disabled
session lengths: 3600

cookie settings on coppermine:
cookie name: cpg132
cookie path: /

phpbb.inc file:

// database configuration
define('PHPBB_DB_NAME', 'global_xmb5'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'global_album'); // 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', '/phpbb/');
// 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
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


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

Title: Re: Memberlist Question
Post by: globalfisher on October 04, 2004, 12:35:21 AM
I think I figured it out, I didnt have the "http://" in this coding:

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


Right after the word location:

It lets me login and logout with any member name from my phpbb board now!

Thanks Guys!