I have phpbb 3.0.4
I have coppermine 1.4.22
I have followed instructions from http://forum.coppermine-gallery.net/index.php/topic,53678.0.html for bridging phpbb3 with coppermine. The login etc works fine. But I would like to find out how do I make redirect work back to coppermine page after login/logout is clicked? I did update ucp.php with the following under the logout section, but it just goes to the default index page:
case 'logout':
if ($user->data['user_id'] != ANONYMOUS && isset($_GET['sid']) && !is_array($_GET['sid']) && $_GET['sid'] === $user->session_id)
{
$user->session_kill();
$user->session_begin();
$message = $user->lang['LOGOUT_REDIRECT'];
}
else
{
$message = ($user->data['user_id'] == ANONYMOUS) ? $user->lang['LOGOUT_REDIRECT'] : $user->lang['LOGOUT_FAILED'];
}
meta_refresh(3, request_var('redirect', append_sid("{$phpbb_root_path}index.$phpEx")));
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . request_var('redirect', append_sid("{$phpbb_root_path}index.$phpEx")) . '">', '</a> ');
trigger_error($message);
And I didn't find any instructions on how to take care of the login page. The urls are setup like this:
http://domainname/forum
http://domainname/multimedia/pgallery
When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php/topic,24032.0.html)
Nevermind. It just started working fine on its own. Sorry for any trouble.