default to www.mysite.com/[nickname] after login

How would I go about doing this?

I've tried a couple of things posted here but they just direct to member.php

I really want to direct everybody after login to their profile page - www.mysite.com/[nickname]

Any takers?

Quote · 1 May 2010

Hi,

Try this.

On member.php around line 684 find:

if( !$sUrlRelocate = $_REQUEST['relocate'] or $_REQUEST['relocate'] == $site['url'] or basename( $_REQUEST['relocate'] ) == 'join.php' )

$sUrlRelocate = $_SERVER['PHP_SELF'];

And replace with:

if( !$sUrlRelocate = $_REQUEST['relocate'] or $_REQUEST['relocate'] == $site['url'] or basename( $_REQUEST['relocate'] ) == 'join.php' or $_REQUEST['relocate'] == $site['url'] . 'member.php') {

$sUrlRelocate = $site['url'] . ''. $_POST['ID'];

header('Location: ' . $sUrlRelocate);

}

Regards

Dave....

Quote · 1 May 2010

Thank you so much Dave, that works perfectly!

:)

Quote · 1 May 2010

You're Welcome

Quote · 1 May 2010

Short sweet and it works.

Nice work Dave. Thank you!

Quote · 1 May 2010
 
 
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.