Page 1 of 1

Updated Board, Portal no longer front page

Posted: 7. November 2017 20:06
by JohnnyBigspuds
Updated my board from phpbb 3.1.2 to 3.1.8 then to 3.1.11
Portal page no longer shows on as main website page, not to sure when it happened
The portal can be accessed by clicking on the portal link
and the side portal is all displayed correctly on all pages

Since the update, the landing page of the site is now the index page.

I have followed numerous topics to resolve this and havent been able to get it to work
prior to updates, when you went to " test.com " it shows the portal page and the http address bar was

Code: Select all

www.test.com
now it shows the index page.
To have the portal page show as main page now have to have the http address bar as

Code: Select all

www.test.com/app.php/portal
i have made the following changes but it hasnt rectified the issue ( i have also purged the cache )

Open includes/functions.php
Find:

Code: Select all

$redirect = request_var('redirect', "{$phpbb_root_path}index.$phpEx");
Replaced with

Code: Select all

$redirect = request_var('redirect', "{$phpbb_root_path}YOUR PAGE NAME.$phpEx");
And

Open root/.htaccess
Add

Code: Select all

DirectoryIndex app.php index.php index.html index.htm
And
In 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")); 
Replaced with

Code: Select all

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

        login_box(request_var('redirect', "portal.$phpEx")); 
Can anyone please help?
many thanks

Re: Updated Board, Portal no longer front page

Posted: 7. November 2017 23:28
by archivar
Open: root/.htaccess
Insert the end:

Code: Select all

DirectoryIndex app.php/portal index.php index.html index.htm

Re: Updated Board, Portal no longer front page

Posted: 8. November 2017 00:15
by JohnnyBigspuds
Thank you for approving my topic.
Alas the modification above has not worked either.
any other ideas? or info i could provide?

board is forumbook style based on prosilver

Re: Updated Board, Portal no longer front page

Posted: 8. November 2017 14:58
by Kirk
root is your forenroot where the config.php is located.

Re: Updated Board, Portal no longer front page

Posted: 8. November 2017 19:18
by JohnnyBigspuds
Kirk wrote: 8. November 2017 14:58 root is your forenroot where the config.php is located.
yes, the same location as .htaccess file

my board URL is

Code: Select all

http://ukgunbook.com/
Interestingly, when logging out, you get returned to the portal page

Re: Updated Board, Portal no longer front page

Posted: 11. November 2017 01:38
by JohnnyBigspuds
It solved itself, but a new problem developed
when using the login from the portal user menu its fine, it logs straight in
BUT if i try and log in from anywhere else on the board i get the error

" No route found for "GET /portal.php "

Re: Updated Board, Portal no longer front page

Posted: 11. November 2017 10:13
by Kirk
What do you mean by
"BUT if i try and log in from anywhere else on the board i get the error"

There is no portal.php under phpBB 3.1

Re: Updated Board, Portal no longer front page

Posted: 11. November 2017 15:53
by JohnnyBigspuds
exactly, i appear to have an error that affects logins somewhere but cannot locate it
i have made a vid clip showing what i mean

https://www.youtube.com/watch?v=ISJjs_Z3mms

Re: Updated Board, Portal no longer front page

Posted: 11. November 2017 20:46
by Kirk
This login logout function has nothing to do with the portal. Question on phpBB.com afterwards.

Re: Updated Board, Portal no longer front page

Posted: 12. November 2017 04:38
by JohnnyBigspuds
Solved it
in the ucp.php there were incorrect edits
there was redirects to app.php/portal
i changed them to app.php
and now is fully working

Re: Updated Board, Portal no longer front page

Posted: 15. November 2017 19:03
by archivar
JohnnyBigspuds wrote: 11. November 2017 15:53 exactly, i appear to have an error that affects logins somewhere but cannot locate it
i have made a vid clip showing what i mean

https://www.youtube.com/watch?v=ISJjs_Z3mms
Successfully tested for phpBB 3.1.11 / phpBB 3.2.1
Make the original again and try my changes:
Redirect login / logout for phpBB 3.1.11 / phpBB 3.2.1 to Board3 portal
open: root/.htaccess
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

DirectoryIndex app.php/portal index.php index.html index.htm
for phpBB 3.1.11
open: root/ucp.php
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

		login_box(request_var('redirect', "index.$phpEx"));
Replace with
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select all

		login_box(request_var('redirect', "app.$phpEx"));
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

			$message = $user->lang['LOGOUT_FAILED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
			trigger_error($message);
		}

		redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
Replace with
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select all

			$message = $user->lang['LOGOUT_FAILED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
			trigger_error($message);
		}

		redirect(append_sid("{$phpbb_root_path}app.$phpEx"));
for phpBB 3.2.1
open: root/ucp.php
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

		login_box($request->variable('redirect', "index.$phpEx"));
Replace with
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select all

		login_box($request->variable('redirect', "app.$phpEx"));
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

			$message = $user->lang['LOGOUT_FAILED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
			trigger_error($message);
		}

		redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
Replace with
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select all

			$message = $user->lang['LOGOUT_FAILED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
			trigger_error($message);
		}

		redirect(append_sid("{$phpbb_root_path}app.$phpEx"));