Redirect to bord3 portal after loggin not working

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Manuel
Active Member
Posts: 2
Joined: 18. April 2010 15:21

Redirect to bord3 portal after loggin not working

Post 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 :?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Redirect to bord3 portal after loggin not working

Post 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; 

Topic author
Manuel
Active Member
Posts: 2
Joined: 18. April 2010 15:21

Re: Redirect to bord3 portal after loggin not working

Post by Manuel »

Done but stil goes to the board index :?

werks
Active Member
Posts: 2
Joined: 17. February 2010 23:16

Re: Redirect to bord3 portal after loggin not working

Post by werks »

this worked for me in 3.07 :) also changed logout in similar manner and worked!
Locked

Return to “board3 Portal 1.0.x - English Support”