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
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.
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!
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.
well how would i do it so I could use the gallery.domain.com method?!
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");
what about the path to the forums?!
And Cookie stuff etc!?