coppermine and phpbb intergration coppermine and phpbb intergration
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

coppermine and phpbb intergration

Started by aducrejr, December 25, 2004, 06:35:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aducrejr

can some provide assistance I followed the instructions and I am getting stuck



here is the code i used


define('PHPBB_DB_NAME', 'phpbb2mysql'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'mysql'); // 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://aducrejr.com/phpBB/',
// you'll have to set the below var to '/phpBB/'.
define('http://aducrejr.com', '/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);
// -------------------------------


Here is the cpr_redir.php as I have it modded

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



www.aducrejr.com/gallery
personal Gallery

Nibbler

Put the header() line back as it was in cpg_redir.

Also you have the wrong info in the wrong place here
define('http://aducrejr.com', '/phpbb/');

That should be

define('PHPBB_WEB_PATH', '/phpbb/');

The host and db name are also highly suspect - check them.

aducrejr

I think the intergration took place. I can see phpbb groups in CPG 1.3 groups.

Problem is when I try to logout of phpbb 2.0.11 or cpg 1.3 i get a page not found htt404 error
/ database configuration
define('PHPBB_DB_NAME', 'phpmyadmin_9'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'mysql'); // The name of the database server
define('PHPBB_DB_USERNAME', 'xxxxx'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'xxxxx'); // 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



cpr_redir.php
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/coppermine';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
www.aducrejr.com/gallery
personal Gallery

Joachim Müller

when going to http://www.aducrejr.com/coppermine I get
QuoteNot Found
The requested URL http:// was not found on this server.
, so the problem seems to be somewhere else ::)

Joachim

aducrejr

#4
Quote from: GauGau on December 26, 2004, 11:58:47 AM
when going to http://www.aducrejr.com/coppermine I get
QuoteNot Found
The requested URL http:// was not found on this server.
, so the problem seems to be somewhere else ::)

Joachim

Sorry I change the coppermine dir to gallery to see if it would help

www.aducrejr.com/gallery
www.aducrejr.com/phpbb
www.aducrejr.com/gallery
personal Gallery