Page 1 of 1

Redirect to bord3 portal after loggin not working

Posted: 18. April 2010 15:52
by Manuel
Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner

PHP Version: phpbb 3.0.7 PL1

What have you done before the problem was there?
Nothing

What have you already tryed to solve the problem?
Change the code into the HTACCESS file (DirectoryIndex portal.php index.php index.html index.htm) into (DirectoryIndex index.php index.html index.htm portal.php)

Description and Message
Hi.

I have a test forum installed on my pc,everything is working great but i just have a little probleem with the redirection after loggin.
This part is alredy done knowledge/kb_show.php?id=10
When i loggin i'm not redirected to the portal.

Redirect to the portal after login is not working.

Redirect to the portal after logout is working.

Change text "Return to the index page" to "Return to the portal page" is working.

Installed MOD's before the portal MOD = Nothing

Thanks in advance for any help.....by the way...great portal :D .... and sorry for my bad english :?

Re: Redirect to bord3 portal after loggin not working

Posted: 18. April 2010 16:14
by Marc
phpBB 3.0.7-PL1 handles redirects a little bit different, so if you want to force the redirect to portal.php after the login, try this:
Open ucp.php
Find:

Code: Select all

    case 'login':
        if ($user->data['is_registered'])
        {
            redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
        }

        login_box(request_var('redirect', "index.$phpEx"));
    break; 
Replace with:

Code: Select all

    case 'login':
        if ($user->data['is_registered'])
        {
            redirect(append_sid("{$phpbb_root_path}portal.$phpEx"));
        }

        login_box("portal.$phpEx");
    break; 

Re: Redirect to bord3 portal after loggin not working

Posted: 18. April 2010 16:22
by Manuel
Done but stil goes to the board index :?

Re: Redirect to bord3 portal after loggin not working

Posted: 22. November 2010 10:08
by werks
this worked for me in 3.07 :) also changed logout in similar manner and worked!