Login/Register Links don't work Login/Register Links don't work
 

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

Login/Register Links don't work

Started by phillyfan088, September 12, 2005, 06:52:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

phillyfan088

Hey,

I'm sorry if this is in the wrong forum, but my problem is related to bridging.  My phpbb 2.0.17 is integrated with my coppermine 1.3.4 gallery.  Everything was working fine, but I recently discovered that the "login" and "register" links don't work.  They say that the page cannot be found.  I did upgrade my phpbb board from 2.0.15 to 2.0.17 and I suspect that this might have something to do with my problem.  I have looked all over the place for a possible error but nothing has worked.  Can someone check my photo gallery out and try to find a possible solution?  The test user account "thefan/thefan" (username/password) can be used.  The gallery URL is http://media.philliesfanpage.com.
Thank You. 

phillyfan088

Here are my scripts:

phpbb.inc.init
// 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


forums/cpg_redir.php
<?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;
?>




And I uncommented the phpbb part out in the include file.

Nibbler

Because you are using Coppermine on a subdomain you need to edit the udb_redirect function in the bridge file as follows:

Find:

function udb_redirect($target)
{
   header('Location: http://' . $_SERVER['HTTP_HOST'] . PHPBB_WEB_PATH . $target);
    exit;
}


Change that to


function udb_redirect($target)
{
   header('Location: http://philliesfanpage.com' . PHPBB_WEB_PATH . $target);
    exit;
}


You will also need to hardcode the cpg_redir.php file

<?php
header
("Location: http://media.philliesfanpage.com/");
exit;
?>

phillyfan088

Thanks so much for the quick reply.  Everything's working fine now.