coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: captinjack on November 23, 2005, 10:33:46 PM

Title: Integration of Coppermine with PHPbb
Post by: captinjack on November 23, 2005, 10:33:46 PM
I can't seem to get this to work I have searched the threads and seen other problems like this and tried everything I could find. The problem is this. They gallery and the board run great as a stand alone but when I try to integrate them the problems start. I have the redirect working right but it never shows as being loged into the gallery. I can log into the forum then goto the gallery and it says I am not logged in, I click on log in and it redirects me to the board shoing I am looged in there. I just can't seem to get loged into the gallery when I have them intergrated. any help would be great I have setup a test account the URL for the board is www.boater4life.com/forum and for the gallery it's www.boater4life.com/photo%20gallery the user name is test and the password is test123

Also here are the files I changed did I do something wrong with them?

cpg_redir.php

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



init.inc.php

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



phpbb.inc.php

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

// ------------------------------------------------------------------------- //
// 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', 'phpbb2_'); // 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
define('PHPBB_SESSIONS_KEYS_TABLE', 'sessions_keys'); // The new session key table

// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
// Group definitions



I have my cookies on the board set to phpbb2mysql nd the path is / the cookie name on the gallery is cpg11d and the path is /

I have been trying to get this working for about 3 weeks without any luck. I hope someone here can help me. Thank You sooo Much.
Title: Re: Integration of Coppermine with PHPbb
Post by: captinjack on November 23, 2005, 11:18:17 PM
I'm sorry I put this in the wrong thread. It won't happen again.
Title: Re: Integration of Coppermine with PHPbb
Post by: Nibbler on November 24, 2005, 06:48:22 PM
Your cookie path on your forum is /forum/, it must be / for Coppermine to be able to read them.
Title: Re: Integration of Coppermine with PHPbb
Post by: captinjack on November 24, 2005, 08:01:18 PM
Quote from: Nibbler on November 24, 2005, 06:48:22 PM
Your cookie path on your forum is /forum/, it must be / for Coppermine to be able to read them.

I will admit I am dumb when it comes to this. Where do you see my cookie path is /forum/ ? I thought I have gone through it and set it to / if I missed something please let me know where it is, I really want to get this working. Thanx
Title: Re: Integration of Coppermine with PHPbb
Post by: Nibbler on November 24, 2005, 08:35:16 PM
Login to your board as admin.
General admin -> Configuration
Scroll down to Cookie settings, option is 'Cookie path'.
Title: Re: Integration of Coppermine with PHPbb
Post by: captinjack on November 26, 2005, 06:33:32 PM
That fixed it, Thanks for your help you guys are great!!!!!