r4merlin -
What you are asking for can be done, but it requires modifying the code. Here's how I think you can do it. Note that I have NOT tested it, so you may need to debug and fix it yourself:
1. In your phpBB directory, find the file cpg_redir.php. Make two copies of that file (so the original remains untouched), and name them cpg_redir_login.php and cpg_redir_logout.php.
2. Edit the new cpg_redir_logout.php and put whatever URL target you want to redirect to after logout. Assuming that URL is on the same server as Coppermine & phpBB (most likely), you only need to provide the target path in the $cpg_path variable. For example to redirect to the high score page in your games directory, you need something like this: $cpg_path=/games/hiscore.html
3. Make a backup of your <coppermine>/bridge/phpbb.inc.php.
4. Open <coppermine>/bridge/phpbb.inc.php for editing.
5. Find this section // HTML code for login/logout redirection
DEFINE("REDIR1",'<html><body onload="document.redir.submit();"><form name="redir" method="post" action="');
DEFINE("REDIR2",'"><input type="hidden" name="redirect" value="cpg_redir.php" /></form></body></html>');
DEFINE('LOGIN_REDIR', 'login.php?redirect=cpg_redir.php');
DEFINE('LOGOUT_FLAG', '&logout=true');
// Login
function udb_login_page()
{
udb_redirect(LOGIN_REDIR);
}
// Logout
function udb_logout_page()
{
if (PHPBB_LOGOUT_GET) {
udb_redirect(LOGIN_REDIR.LOGOUT_FLAG);
} else {
echo(REDIR1.PHPBB_WEB_PATH.LOGIN_REDIR.LOGOUT_FLAG.REDIR2);
exit();
}
}
6. Replace with this // HTML code for login/logout redirection
DEFINE("REDIR1",'<html><body onload="document.redir.submit();"><form name="redir" method="post" action="');
DEFINE("REDIR2",'"><input type="hidden" name="redirect" value="cpg_redir_logout.php" /></form></body></html>');
DEFINE('LOGIN_REDIR', 'login.php?redirect=cpg_redir_login.php');
DEFINE('LOGOUT_REDIR', 'login.php?redirect=cpg_redir_logout.php');
DEFINE('LOGOUT_FLAG', '&logout=true');
// Login
function udb_login_page()
{
udb_redirect(LOGIN_REDIR);
}
// Logout
function udb_logout_page()
{
if (PHPBB_LOGOUT_GET) {
udb_redirect(LOGOUT_REDIR.LOGOUT_FLAG);
} else {
echo(REDIR1.PHPBB_WEB_PATH.LOGOUT_REDIR.LOGOUT_FLAG.REDIR2);
exit();
}
}
7. Test and debug.
As GauGau mentioned this is not part of Coppermine's standard functionality, so you'll have to repeat those steps each time you update or re-install Coppermine.
Good luck, and please post the results.
Eyal.