coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: buchananben on June 20, 2006, 01:16:59 AM

Title: double login with coppermine bridging
Post by: buchananben on June 20, 2006, 01:16:59 AM
I have coppermine version 1.4.8 and punBB version 1.2.12 running on my site www.nightcats.org . The gallery is in /gallery and the forum is in /forum . I have them bridged and both work fine if I don't modify the punBB login file for login redirection. However, when I modify the punBB login file so that logging in from my gallery redirects back to the gallery, I have the problem that I have to login twice from coppermine, and the second time, the login redirect goes to the forum page. The changes I made to the login.php file are as follows:


For login/logout redirection:

Edit punbb's login.php


Find: $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Login'];

Add before it: $redirect_url = (isset($_GET['redir'])) ? $_GET['redir'] : $redirect_url;


Find: redirect('index.php', $lang_login['Logout redirect']);

Change to: redirect(isset($_GET['redir']) ? $_GET['redir'] : 'index.php', $lang_login['Logout redirect']);


Is there a way to fix this? Right now I've undone my changes as the double login is more confusing thatn being redirected to the forum when logging into the gallery in my opinion.
Thanks very much
Regards
Ben
Title: Re: double login with coppermine bridging
Post by: Joachim Müller on June 20, 2006, 07:23:14 AM
When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php?topic=24032.0)
Title: Re: double login with coppermine bridging
Post by: Nibbler on June 20, 2006, 01:55:54 PM
You need to use the same domain for both your forum and the gallery. You have your gallery set at http://nightcats.org so it cannot read cookies that your forum set on www.nightcats.org. Either use nightcats.org for both or www.nightcats.org for both.
Title: Re: double login with coppermine bridging
Post by: buchananben on June 21, 2006, 08:06:07 AM
nibbler - thanks for the help. I'll give it a go later.

gau gau - sorry, I should have read that first. Next time :-)