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
When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php?topic=24032.0)
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.
nibbler - thanks for the help. I'll give it a go later.
gau gau - sorry, I should have read that first. Next time :-)