Page 1 of 1

portal redirection after login -please-

Posted: 5. June 2014 12:10
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

Re: portal redirection after login -please-

Posted: 5. June 2014 17:52
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.

Re: portal redirection after login -please-

Posted: 10. June 2014 15:13
by papicx
hello !
Thank you man ! you'r the best :)
papi enjoy

Re: portal redirection after login -please-

Posted: 26. November 2016 12:14
by grazia
good