Redirect users to a page other than index on login, logout and registration
Partial request I have seen many times on phpBB.com - I've used the replacement file as portal.php, as more often than not users want to redirect to their portal page instead - but you can put any file in here of your choosing.
# #-----[ OPEN ]------------------------------------------ # ucp.php # #-----[ FIND ]------------------------------------------ #
            case 'register':
                    if ($user->data['is_registered'] || isset($_REQUEST['not_agreed']))
                    {
                            redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
                    } 
# #-----[ REPLACE WITH ]------------------------------------------ #
            case 'register':
                    if ($user->data['is_registered'] || isset($_REQUEST['not_agreed']))
                    {
                            redirect(append_sid("{$phpbb_root_path}portal.$phpEx"));
                    } 
# #-----[ FIND ]------------------------------------------ #
        case 'login':
            if ($user->data['is_registered'])
            {
                redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
            }
            login_box(request_var('redirect', "index.$phpEx")); 
# #-----[ REPLACE WITH ]------------------------------------------ #
        case 'login':
            if ($user->data['is_registered'])
            {
                redirect(append_sid("{$phpbb_root_path}portal.$phpEx"));
            }
            login_box(request_var('redirect', "portal.$phpEx"));  
# #-----[ FIND ]------------------------------------------ #
            meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
            $message = $message . '<br /<br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> '); 
# #-----[ REPLACE WITH ]------------------------------------------ #
            meta_refresh(3, append_sid("{$phpbb_root_path}portal.$phpEx"));
            $message = $message . '<br /<br />' . sprintf($user->lang['RETURN_PORTAL'], '<a href="' . append_sid("{$phpbb_root_path}portal.$phpEx") . '">', '</a> '); 
			
			
# #-----[ OPEN ]------------------------------------------ # language/en/common.php # #-----[ FIND ]------------------------------------------ #
'RETURN_INDEX' => '%sReturn to the index page%s',
# #-----[ REPLACE WITH ]------------------------------------------ #
'RETURN_PORTAL' => '%sReturn to the portal page%s',