coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: banstey on January 03, 2005, 07:03:46 AM

Title: redirection
Post by: banstey on January 03, 2005, 07:03:46 AM
when i link go to the index page in coppermine and press the login button im redirected to www.lop.com  i have gone over all the files i am suppose to change and everything is right.  has anyone come across this before? any suggestions on how to fix it?
Title: Re: redirection
Post by: Joachim Müller on January 03, 2005, 09:48:48 AM
this is expected behaviour: when bridging is enabled in coppermine, clicking the login link will send you to the login page you specified in your bridge file. Post your actual coppermine url and a test user account (non-admin) for further details.

Joachim
Title: Re: redirection
Post by: banstey on January 03, 2005, 10:53:26 AM
the url is http://www.apluscs.net/snozone 

i cant make a test account as it wont let me get to the login
Title: Re: redirection
Post by: Nibbler on January 03, 2005, 12:56:00 PM
Your login page trys to redirect to : http://www.apluscs.nethttp://www.apluscs.net/forumlogin.php?redirect=cpg_redir.php


Review your changes to the bridge file.
Title: Re: redirection
Post by: banstey on January 03, 2005, 02:52:12 PM
thank you the bridge file had an issue in it..  i got logged into coppermine  but now there are a number of other places i cant go..  i can upload and arrange pics..  but other things like logout profile and login for anyone other then me wont work..  i created a test account on my message forum it is username jk password test.. 
Title: Re: redirection
Post by: Joachim Müller on January 04, 2005, 06:04:48 AM
when bridging is enabled, coppermine's login page shouldn't show up when clicking on the login link, but the user should be redirected to your bbs app's login screen (expected behaviour), so I guess you disabled bridging/integration by turning off the switch in include/init.inc.php. As coppermine and your bbs are currently not bridged, you can't log in with a test account that is only valid on your bbs. Re-enable bridging, so we can try again.

Joachim
Title: Re: redirection
Post by: Mr Tee on April 28, 2005, 10:34:03 AM
I am having a problem with redirection. If I try to log in through coppermine I am redirected to my BB, which is fine, however, when I log in I the receive a 404 error. It tries to find a a folder called thegallery when it should direct to gallery.

I have checked all files but can find no code that directs to thegallery.

Title: Re: redirection
Post by: Nibbler on April 28, 2005, 03:41:01 PM
It's in the cpg_redir.php file. Post it here if you can't locate the error.
Title: Re: redirection
Post by: Mr Tee on April 28, 2005, 11:03:57 PM
Thanks,

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/forum/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
Title: Re: redirection
Post by: Nibbler on April 29, 2005, 02:04:54 PM
That's a cpg_redir.php in your gallery directory. You need to edit the one in your forum directory, and remove the one in your gallery directory.
Title: Re: redirection
Post by: Mr Tee on April 29, 2005, 07:56:17 PM
Yep, that would do it....... ::) Now I see the problem, I must have tried to install Coppermine previously. Thanks for the help.