Logs into phpBB but not to CPG Logs into phpBB but not to CPG
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Logs into phpBB but not to CPG

Started by pyimaung, May 27, 2005, 02:20:39 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

pyimaung

Hi everyone..new here.. Need some help desperately.. I'm trying to integrate/bridge CPG with phpBB. I did everything as instructed in the manual and everything works fine except for one thing.. When I click on login on the CPG page, it takes me to the phpBB login box (which is supposed to happen) and when I login, redirects me back to the CPG page (which is good) but does not log me in. When I go back to phpBB I am logged in. Do any of you know what my problem is? It just logs in to phpBB but not to CPG.. Please help..Thank you.


pyimaung

Thanks nibbler.. Details are below..

link to my CPG Gallery : http://www.g-mtonline.com/gallery

link to my phpBB Forum : http://www.g-mtonline.com/testforum

Login with Username: test Password: test

Below are what I've changed to bridge the 2.

This is the phpbb.inc file in the bridge folder :

// database configuration
define('PHPBB_DB_NAME', '*******'); // The name of the database used by the board
define('PHPBB_BD_HOST', '*******'); // 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', '/testforum/');
// 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', FALSE);
// ------------------------------------------------------------------------- //


Then I uncommented the line for phpBB in the file init.inc in the include folder:

// 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');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');


Then I created the file cpg_redir.php , pasted the code below and saved it in my phpBB folder.

<?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;
?>


Uploaded everything and had the problem I mentioned on top. Please try it out with the log in info I provided and please help me..Thank you!

pyimaung

ohh..and yes in phpbb, I have changed the cookie domain to my domain, changed the cookie name to phpbb2mysql and the cookie path to ' / '  as instructed in the documentation.

Nibbler

That isn't a valid account.

We have 1 registered user
The newest registered user is pyimaung

pyimaung

oh..Sorry Nibbler,
It's ok now! username : test  password: test

Thanks

Nibbler

I can't see anything wrong with your settings, make sure they are correct and that coppermine and phpbb are in the same database. How old is the phpbb you are using ? it would be a good idea to update.

pyimaung

I just updated phpBB to the newest version which is why the test account wasn't working just now. And they are both in the same database as well as the same domain. You can't login to my gallery right? I don't know what's wrong...

Wish u could help..
Thanx

Nibbler

If you are happy to PM me an ftp login to your site I can take a look.

pyimaung

I've PM'ed you all my FTP details.. Have you taken a look? Have u founf out what's wrong with it?

pyimaung

I've PM'ed you all my FTP details.. Have you taken a look? Have u founf out what's wrong with it?

Nibbler

Solved - incorrect table name prefix specified.