Advanced search  

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]

Pages: [1]   Go Down

Author Topic: bridge problem with phpbb  (Read 4072 times)

0 Members and 1 Guest are viewing this topic.

phillyfan088

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
bridge problem with phpbb
« on: June 27, 2005, 07:10:00 am »

Hey,

I just integrated my coppermine 1.3 gallery to my phpbb 2.0 board following all of the instructions in the manuel.  Everything seems to work fine, except when I try to log in from my gallery.  It directs me to the forum login page.  But after I submit my username and password, it say "page cannot be found."  I suspect it has something to do with my redirection but I've check everthign and i can't find anything wrong.  They are in the same database.

Bridge file:

Code: [Select]
// database configuration
define('PHPBB_DB_NAME', '***'); // 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', '/forums/');
// 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

the cpg redirection:

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

my gallery URL is http://www.philliesfanpage.com/media
my forum URL is http://www.philliesfanpage.com/forums

To test, username "test", password: "test"

Any help would be appreciated.
« Last Edit: June 27, 2005, 08:07:05 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: problems with logging in
« Reply #1 on: June 27, 2005, 07:46:16 am »

I got this:

You have specified an incorrect or inactive username, or an invalid password.
Logged

phillyfan088

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: problems with logging in
« Reply #2 on: June 27, 2005, 08:06:12 am »

I'm still having the same problem.  I made sure the forum nad photo gallery were in the same database.  username: test  password: test  will work.  Please help!
« Last Edit: June 27, 2005, 07:16:17 pm by phillyfan088 »
Logged

phillyfan088

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
bridge problem with phpbb
« Reply #3 on: June 27, 2005, 07:32:59 pm »

Hey,

I just integrated my coppermine 1.3 gallery to my phpbb 2.0 board following all of the instructions in the manuel.  Everything seems to work fine, except when I try to log in from my gallery.  It directs me to the forum login page.  But after I submit my username and password, it say "page cannot be found."  I suspect it has something to do with my redirection but I've check everthing and i can't find anything wrong.  They are in the same database.  Sorry for repeating posts, but the problem wasn't solved.

Bridge file:

Code: [Select]
// database configuration
define('PHPBB_DB_NAME', '***'); // 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', '/forums/');
// 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

the cpg redirection:

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

my gallery URL is http://www.philliesfanpage.com/media
my forum URL is http://www.philliesfanpage.com/forums

To test, username "test", password: "test"
Logged

Nibbler

  • Guest
Re: bridge problem with phpbb
« Reply #4 on: June 27, 2005, 07:39:24 pm »

cpg_redir.php is supposed to be in the forums directory, not the coppermine directory.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.