double login with coppermine bridging double login with coppermine bridging
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

double login with coppermine bridging

Started by buchananben, June 20, 2006, 01:16:59 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

buchananben

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

Joachim Müller


Nibbler

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.

buchananben

nibbler - thanks for the help. I'll give it a go later.

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