coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: theweeeman on October 09, 2005, 06:54:50 PM

Title: phpbb and cgp login/log out probs now!
Post by: theweeeman on October 09, 2005, 06:54:50 PM
first we got em working together, now i cant log in to the album it keeps sending me back to the forum????
Well i was happy till i realised i cant log in now to the gallery? can someone test it from another location???
my gallery link is posted earlier and the username is .......test........ and password ..........tester...... just cant get into gallery now and before that it wasnt redirecting after log out from gallery? im lost now lol

http://www.madaboutbiking.co.uk/cpg135/index.php

http://madaboutbiking.co.uk/phpBB2/
Title: Re: phpbb and cgp login/log out probs now!
Post by: Stramm on October 09, 2005, 07:08:26 PM
OK, now we restart again.
Place the cpg_redir.php in your phpbb folder


<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/cpg135';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>



then you need to recheck if all's properly set in your bridge file phpbb.inc.php
especially
define('PHPBB_WEB_PATH', '/phpBB2/');
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); //needs to be what you've set in phpbb admin. Set the cookie path to / there
Title: Re: phpbb and cgp login/log out probs now!
Post by: theweeeman on October 09, 2005, 07:20:00 PM
done that too! but will check again ;D
Title: Re: phpbb and cgp login/log out probs now!
Post by: theweeeman on October 09, 2005, 07:27:50 PM
Quote from: Stramm on October 09, 2005, 07:08:26 PM
OK, now we restart again.
Place the cpg_redir.php in your phpbb folder


<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/cpg135';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>



then you need to recheck if all's properly set in your bridge file phpbb.inc.php
especially
define('PHPBB_WEB_PATH', '/phpBB2/');
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); //needs to be what you've set in phpbb admin. Set the cookie path to / there


ok but im not too clear on what i put where in the code? like i said very new to all this... ???
Title: Re: phpbb and cgp login/log out probs now!
Post by: theweeeman on October 09, 2005, 07:38:12 PM
ok, when i log into php, everthings cool, i can do all im supposed to. But if i click my link to voppermine, im not logged in and when i then click on log in it takes me back to php, where im still logged in, I cant seem to log in to coppermine now >:(
Title: Re: phpbb and cgp login/log out probs now!
Post by: Joachim Müller on October 10, 2005, 09:06:24 AM
When requesting bridge support.. (http://forum.coppermine-gallery.net/index.php?topic=17684.0)
Title: Re: phpbb and cgp login/log out probs now!
Post by: Joachim Müller on October 10, 2005, 09:08:17 AM
has the other thread you started (http://forum.coppermine-gallery.net/index.php?topic=22545.msg103606#msg103606) been solved or not? There are in fact two threads that deal with the very sam issue if you ask me.
Title: Re: phpbb and cgp login/log out probs now!
Post by: theweeeman on October 10, 2005, 09:10:48 AM
both solved now thanx, and sorry for startin a new one..lol