DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Dolphin - Change landing page after login

If you want to direct members to a page other than the standard dashboard page (member.php) after they log in, then follow these simply steps.

Edit member.php

Find the following code

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

Change it to...

if(!$sUrlRelocate = $_REQUEST['relocate'] or $_REQUEST['relocate'] == $site['url'] or basename( $_REQUEST['relocate'] ) == 'join.php' ) 
{
$sUrlRelocate = $_SERVER['PHP_SELF'];
}else{
   $sUrlRelocate = 'profile.php';
}

Where profile.php is the page to redirect to.

Dolphin - Record user Name and ID with IP address
Dolphin - Remove 'unregister' Links

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Sunday, 20 August 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image