portal redirection after login -please-

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked
User avatar

Topic author
papicx
Active Member
Posts: 6
Joined: 29. May 2012 14:52
phpBB.de User: papicx
phpBB.com User: papicx
Location: France

portal redirection after login -please-

Post by papicx »

Your Portal Version: 2.0.1
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner
Boardlink: http://cxclub.org/phpbb/portal.php

What have you done before the problem was there?
nothing

What have you already tryed to solve the problem?
nothing

Description and Message
Hello,

On my forum, when connecting from the portal, it is redirected to the portal. This is what I want.
But if we connect leaving the index.php page, you are redirected to the index.php and I want users to be redirected to the portal page.

I just check the installation of the mod is installed for a long time, and it seems correct.
So I do not know if this is normal and I request a change or if I missed sth. : roll:

thank you in advance for your help

account test: test
Code: Mdp123456
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: portal redirection after login -please-

Post by Kirk »

Hi
Open: root/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}index.$phpEx"));
        }

        login_box(request_var('redirect', "portal.$phpEx"));
    break;
Open: root/styles/prosilver/template/index_body.html
Find:

Code: Select all

{S_LOGIN_REDIRECT}
Replace with:

Code: Select all

<input type="hidden" name="redirect" value="{U_PORTAL}" />
Changes to the templates:
Go to your ACP, choose "Styles -> Templates -> your style", which has been changed and click "refresh" - confirm with "yes".
In the end "ACP -> General" --> purge cache
It's recommended to purge your browser cache too.
Gruß Udo
User avatar

Topic author
papicx
Active Member
Posts: 6
Joined: 29. May 2012 14:52
phpBB.de User: papicx
phpBB.com User: papicx
Location: France

Re: portal redirection after login -please-

Post by papicx »

hello !
Thank you man ! you'r the best :)
papi enjoy

grazia
Valued Contributor
Posts: 53
Joined: 28. November 2014 13:54

Re: portal redirection after login -please-

Post by grazia »

good
Locked

Return to “Board3 Portal 2.0.x - English Support”