Relotation after login

i would like to stop the relocation to the profile window when a user logs in. the user should simply remain on the page where he was when he pressed the login button. now i have this working for almost all windows by editing the file join.php.

i removed the line:

$aFormReplace['relocate_url']   = $_SERVER['PHP_SELF'];

now the only page that still does relocation is the homepage itself.

I have been looking at this for hours, but cant find the code that does this. Is there anybody that can give me a hint on this?

Quote · 18 Jan 2009

Hi, have you had a look at $sUrlRelocate in member.php - about line 577 ???

Quote · 19 Jan 2009

at first glance it seems its working now.

in member.php at around line 539 i replaced

if( !$sUrlRelocate = $_REQUEST['relocate'] or basename( $_REQUEST['relocate'] ) == 'index.php' or basename( $_REQUEST['relocate'] ) == 'join.php' )
$sUrlRelocate = $_SERVER['PHP_SELF'];

with


$sUrlRelocate = $_REQUEST['relocate'];

It does need some more testing though, for instance this might give some problems after joining.

tnx for the info Smile

Quote · 19 Jan 2009

You're welcome ;-)

Quote · 25 Jan 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.