Updated Board, Portal no longer front page

Current Version: 2.1.0
Released: 2015-10-26
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.
JohnnyBigspuds
Topic author
Active Member
Active Member
Posts: 6
Joined: 7. November 2017 20:33
phpBB.com User: JohnnyBigSpuds

Updated Board, Portal no longer front page

Post by JohnnyBigspuds » 7. November 2017 21:06

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
Last edited by JohnnyBigspuds on 12. November 2017 01:51, edited 1 time in total.

User avatar
archivar
Portal Professional
Portal Professional
Posts: 1875
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: Updated Board, Portal no longer front page

Post by archivar » 8. November 2017 00:28

Open: root/.htaccess
Insert the end:

Code: Select all

DirectoryIndex app.php/portal index.php index.html index.htm
V.G. archivar
sorry for my bad english

JohnnyBigspuds
Topic author
Active Member
Active Member
Posts: 6
Joined: 7. November 2017 20:33
phpBB.com User: JohnnyBigSpuds

Re: Updated Board, Portal no longer front page

Post by JohnnyBigspuds » 8. November 2017 01:15

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

User avatar
Kirk
Portal Professional
Portal Professional
Posts: 1434
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: Updated Board, Portal no longer front page

Post by Kirk » 8. November 2017 15:58

root is your forenroot where the config.php is located.
Gruß Udo

JohnnyBigspuds
Topic author
Active Member
Active Member
Posts: 6
Joined: 7. November 2017 20:33
phpBB.com User: JohnnyBigSpuds

Re: Updated Board, Portal no longer front page

Post by JohnnyBigspuds » 8. November 2017 20:18

Kirk wrote:
8. November 2017 15: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

JohnnyBigspuds
Topic author
Active Member
Active Member
Posts: 6
Joined: 7. November 2017 20:33
phpBB.com User: JohnnyBigSpuds

Re: Updated Board, Portal no longer front page

Post by JohnnyBigspuds » 11. November 2017 02:38

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 "

User avatar
Kirk
Portal Professional
Portal Professional
Posts: 1434
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: Updated Board, Portal no longer front page

Post by Kirk » 11. November 2017 11:13

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
Gruß Udo

JohnnyBigspuds
Topic author
Active Member
Active Member
Posts: 6
Joined: 7. November 2017 20:33
phpBB.com User: JohnnyBigSpuds

Re: Updated Board, Portal no longer front page

Post by JohnnyBigspuds » 11. November 2017 16: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

User avatar
Kirk
Portal Professional
Portal Professional
Posts: 1434
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: Updated Board, Portal no longer front page

Post by Kirk » 11. November 2017 21:46

This login logout function has nothing to do with the portal. Question on phpBB.com afterwards.
Gruß Udo

JohnnyBigspuds
Topic author
Active Member
Active Member
Posts: 6
Joined: 7. November 2017 20:33
phpBB.com User: JohnnyBigSpuds

Re: Updated Board, Portal no longer front page

Post by JohnnyBigspuds » 12. November 2017 05:38

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

User avatar
archivar
Portal Professional
Portal Professional
Posts: 1875
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: Updated Board, Portal no longer front page

Post by archivar » 15. November 2017 20:03

JohnnyBigspuds wrote:
11. November 2017 16: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"));
V.G. archivar
sorry for my bad english

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