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.
Locked

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

Updated Board, Portal no longer front page

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

archivar
Portal Professional
Posts: 1959
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 »

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

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

Re: Updated Board, Portal no longer front page

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

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

Re: Updated Board, Portal no longer front page

Post by Kirk »

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

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

Re: Updated Board, Portal no longer front page

Post 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

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

Re: Updated Board, Portal no longer front page

Post 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 "
User avatar

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

Re: Updated Board, Portal no longer front page

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

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

Re: Updated Board, Portal no longer front page

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

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

Re: Updated Board, Portal no longer front page

Post by Kirk »

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

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

Re: Updated Board, Portal no longer front page

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

archivar
Portal Professional
Posts: 1959
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 »

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"));
V.G. archivar
sorry for my bad english
Locked

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