My coppermine Development version phpBB hacks

Discussion and questions about anything in the tech section, or any of the software or libraries I've released or have worked on.
Site Admin
Posts: 57
Joined: Wed May 07, 2003 6:19 pm

My coppermine Development version phpBB hacks

Postby Giz » Thu Jul 10, 2003 6:25 pm

These will get redirection working properly:

In /bridge/ Find:


and after it add:


This could be whatever will get you from the phpBB2 script path in the phpBB2 board configuration to the site relative location of your gallery.

Then find inside function udb_login_page():

$target = 'login.php?redirect='.$CONFIG['ecards_more_pic_target'];

comment this out by changing it to

//$target = 'login.php?redirect='.$CONFIG['ecards_more_pic_target'];

Add this line instead:

$target = 'login.php?redirect='.PHPBB_RELATIVE_RETURN_PATH;

Again in bridge/

replace function udb_logout_page() with this one:

[php]function udb_logout_page()

$session_id = addslashes($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX.'_sid']);
$target = 'login.php?logout=true&sid='.$session_id . '&redirect='.PHPBB_RELATIVE_RETURN_PATH;
} [/php]

This fixes the invalid_session error you get when logging out.

Return to “Tech”

Who is online

Users browsing this forum: No registered users and 1 guest