Pragmatism in Code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related...

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that has been used in the blog.
  • Login
Posted by on in Dolphin 7.0.x Modifications
  • Font size: Larger Smaller
  • Hits: 3959
  • 0 Comments
  • Print

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.

Rate this blog entry:
0
DeeEmm AKA Michael Percy is an industrial software engineer specialising in language based programming. A long time supporter and contributor to the open source community, he can mostly be found tinkering about creating web sites and plugins for various CMS platforms as well as maintaining several websites of his own.
  • No comments found
Add comment