coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: pyimaung on May 27, 2005, 02:20:39 PM

Title: Logs into phpBB but not to CPG
Post by: pyimaung on May 27, 2005, 02:20:39 PM
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.
Title: Re: Logs into phpBB but not to CPG
Post by: Nibbler on May 27, 2005, 06:34:14 PM
http://forum.coppermine-gallery.net/index.php?topic=17684.0
Title: Re: Logs into phpBB but not to CPG
Post by: pyimaung on May 28, 2005, 03:18:10 AM
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!
Title: Re: Logs into phpBB but not to CPG
Post by: pyimaung on May 28, 2005, 03:22:30 AM
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.
Title: Re: Logs into phpBB but not to CPG
Post by: Nibbler on May 28, 2005, 02:55:40 PM
That isn't a valid account.

We have 1 registered user
The newest registered user is pyimaung
Title: Re: Logs into phpBB but not to CPG
Post by: pyimaung on May 28, 2005, 03:12:07 PM
oh..Sorry Nibbler,
It's ok now! username : test  password: test

Thanks
Title: Re: Logs into phpBB but not to CPG
Post by: Nibbler on May 28, 2005, 03:24:31 PM
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.
Title: Re: Logs into phpBB but not to CPG
Post by: pyimaung on May 28, 2005, 05:01:09 PM
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
Title: Re: Logs into phpBB but not to CPG
Post by: Nibbler on May 28, 2005, 05:03:53 PM
If you are happy to PM me an ftp login to your site I can take a look.
Title: Re: Logs into phpBB but not to CPG
Post by: pyimaung on May 29, 2005, 02:24:19 AM
I've PM'ed you all my FTP details.. Have you taken a look? Have u founf out what's wrong with it?
Title: Re: Logs into phpBB but not to CPG
Post by: pyimaung on May 29, 2005, 02:24:35 AM
I've PM'ed you all my FTP details.. Have you taken a look? Have u founf out what's wrong with it?
Title: Re: Logs into phpBB but not to CPG
Post by: Nibbler on May 29, 2005, 07:46:30 PM
Solved - incorrect table name prefix specified.