phpBb integration problem phpBb integration problem
 

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

phpBb integration problem

Started by noworyz, May 06, 2005, 09:39:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

noworyz

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?

Nibbler

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.




noworyz

i changed it back and it still doesn't work!

All files have been uploaded.

url is http://www.egriz.com/GrizPics2/

noworyz

Is there anyone that can help!

I need to have this done very soon!

Thanks in advance for your help!  Chris

Nibbler

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.

noworyz

i found the probelm, there was a space in the code!

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