coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: noworyz on May 06, 2005, 09:39:35 PM

Title: phpBb integration problem
Post by: noworyz on May 06, 2005, 09:39:35 PM
Ok, I have a forum that has been around for a while.  I recently added the copprmine gallery to my website.  They both work fine independently.  I followed the steps for integration and it isn't working.  I don't even get redirected to the phpbb login page when trying to login from cpg.

my setting are:

phpbb cookie settings

Cookie domain: www.egriz.com
Cookie name: grizboard
Cookie path: /


phpbb.inc.php settings

// database configuration

define('PHPBB_DB_NAME', 'grizboard'); // The name of the database used by the board

define('PHPBB_BD_HOST', 'db.egriz.com'); // The name of the database server

define('PHPBB_DB_USERNAME', 'left out for security'); // The username to use to connect to the database

define('PHPBB_DB_PASSWORD', ''); /left out for security/ 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', '/GrizBoard/');

// 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', 'grizboard'); // 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


init.inc.php settings

define('COPPERMINE_VERSION', '1.3.3');

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


cpg.redir.php settings

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


Any help?
Title: Re: phpBb integration problem
Post by: Nibbler on May 06, 2005, 09:48:23 PM
Can you post a link please ?

Also put

$cpg_host=$_SERVER['www.egriz.com'];

back as it was.

It probably means your changes haven't actually taken effect. Make sure you actually uploaded the file.



Title: Re: phpBb integration problem
Post by: noworyz on May 06, 2005, 11:37:31 PM
i changed it back and it still doesn't work!

All files have been uploaded.

url is http://www.egriz.com/GrizPics2/
Title: Re: phpBb integration problem
Post by: noworyz on May 08, 2005, 09:23:44 AM
Is there anyone that can help!

I need to have this done very soon!

Thanks in advance for your help!  Chris
Title: Re: phpBb integration problem
Post by: Nibbler on May 08, 2005, 09:04:20 PM
You can PM me an ftp login to check if you like, but I bet I will find the init.inc.php file is completely unchanged.
Title: Re: phpBb integration problem
Post by: noworyz on May 09, 2005, 03:51:22 AM
i found the probelm, there was a space in the code!

Not sure how it got there, but thanks for all your help, Chris