coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Phill on July 30, 2004, 09:10:22 PM

Title: PHPBB Page can not be displayed
Post by: Phill on July 30, 2004, 09:10:22 PM
Hello when I try integrate, when you click login it brings up a page can not be displayed.

my coppermine is at : http://coppermine.domain.co.uk/
my forum is at : http://www.domain.co.uk/forums/

But the coppermine url will work http://www.domain.co.uk/coppermine/

I was wondering if this would be a problem, or if it would be a cookie problem?

What would the paths look like, as im sure thats the problem

Thanks From Phill
Title: Re: PHPBB Page can not be displayed
Post by: Nibbler on July 31, 2004, 12:02:57 AM
Both the paths should be '/' or blank. The cookie domain should be '.domain.co.uk'. No guarantee this will work though, you would have read that in the documenation of course.

Page not displayed errors would be related to the paths your are redirecting to, not cookies.
Title: Re: PHPBB Page can not be displayed
Post by: Phill on July 31, 2004, 10:15:03 AM
in init.in.php it now looks like

// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');

and in phpbb.inc.php it looks like

// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forums/');
// Logout Flag

and in this new file named cpg_redir.php in the phpBB directory, it looks like..

}
$cpg_path='/gallery';
header("Location: http://".mydomain.com/.$cpg_path);
exit;

and I have left the cookie thingy as phpbb2mysql even though the forum the cookie name is forum

Please can someone advise me what to do!

At this moment in time if I go to
http://www.domain.com/gallery/ and click login it takes me 2 the forums  ???
and if I go to
http://gallery.domain.com/ and click login, the page can not be displayed! I need help!
Title: Re: PHPBB Page can not be displayed
Post by: EZ on July 31, 2004, 11:00:09 AM
That's because:

http://www.domain.com/gallery + /forum/ = http://www.domain.com/forum/ = correct path.
http://gallery.domain.com + /forum/ = http://gallery.domain.com/forum/ = incorrect path

EZ.
Title: Re: PHPBB Page can not be displayed
Post by: Phill on July 31, 2004, 11:37:14 AM
well how would i do it so I could use the gallery.domain.com method?!
Title: Re: PHPBB Page can not be displayed
Post by: Nibbler on July 31, 2004, 02:15:47 PM
header("Location: http://".mydomain.co.uk/.$cpg_path);

Is wrong. Try:

header("Location: http://mydomain.co.uk".$cpg_path);

for the subdir method, or for the subdomain method:

header("Location: http://gallery.mydomain.co.uk");
Title: Re: PHPBB Page can not be displayed
Post by: Phill on July 31, 2004, 03:12:49 PM
what about the path to the forums?!

And Cookie stuff etc!?