coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Sy on April 15, 2005, 11:44:43 PM

Title: Integration issue CPG 1.3.2/phpBB 2.0.13 - login/logout re-dir menalto
Post by: Sy on April 15, 2005, 11:44:43 PM
Hi,
  I've only just installed CPG and everything looks great.  Installation went smoothly as did the intergration with phpBB.  The only problem I seem to of run into is that when any user logs in or out of CPG they are re-directed to http://gallery.menalto.com/modules.php?op=modload&name=News&file=index and I can't figure out why.

The cookie appears to be functioning correctly as when I reload the CPG index I'm logged in, or out respectivly.

Can anyone please explain to me why it is doing this and how I get it to reload back to the CPG index and not menalto?

cpg_redir.php looks like: -
<?php
if (!$_SERVER['/public_html/gallery/']) {
  
$cpg_host=$HTTP_SERVER_VARS['http://www.domain.co.uk/directory'];
} else {
  
$cpg_host=$_SERVER['http://www.domain.co.uk/directory'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


Any help appreciated.

Thanks

Sy
Title: Re: Integration issue CPG 1.3.2/phpBB 2.0.13 - login/logout re-dir menalto
Post by: Nibbler on April 15, 2005, 11:56:18 PM
eeeew, you're not supposed to change anything in that file except for:

$cpg_path='/gallery';

So put the rest back as it was.
Title: Re: Integration issue CPG 1.3.2/phpBB 2.0.13 - login/logout re-dir menalto
Post by: Sy on April 16, 2005, 12:11:13 AM
lol totally mis-read the help file  ::)

All sorted now and re-directing as it should.

Thanks Nibbler : ;D

Sy