How to ... Redirect to the portal after login / logout
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.
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.
How to ... Redirect to the portal after login / logout
Your Portal Version: 2.1.0
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
What have you done before the problem was there?
Changed Ucp.php according to Knowledge Base: How to ... Redirect to the portal after login / logout
What have you already tryed to solve the problem?
Nothing
Description and Message
After changing the Ucp.php according to the knowledge Base, in order to come back to the portal after login/logout, I get this message :
"No route found for "GET /portal.php"".
Any tip to solve this problem ?
Thanks in advance
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
What have you done before the problem was there?
Changed Ucp.php according to Knowledge Base: How to ... Redirect to the portal after login / logout
What have you already tryed to solve the problem?
Nothing
Description and Message
After changing the Ucp.php according to the knowledge Base, in order to come back to the portal after login/logout, I get this message :
"No route found for "GET /portal.php"".
Any tip to solve this problem ?
Thanks in advance
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: How to ... Redirect to the portal after login / logout
Those changes won't work for phpBB 3.1.x and Board3 Portal 2.1.x. They were made for Board3 Portal 1.0.x. If you login via the portal, you should already get redirected to the portal after login.
Re: How to ... Redirect to the portal after login / logout
Thank you marc for this answer.
I'll do that.
I'll do that.
Re: How to ... Redirect to the portal after login / logout
I come back. In fact it does not work.
If I login from the portal, after validation, it comes back to the forum index. It's not the way I wish it works. If I log into the portal, I wish to stay in and not be redirected to the index.
So, what must I do to prevent this ?
Thanks for help.
If I login from the portal, after validation, it comes back to the forum index. It's not the way I wish it works. If I log into the portal, I wish to stay in and not be redirected to the index.
So, what must I do to prevent this ?
Thanks for help.
Last edited by Condor on 16. December 2015 12:56, edited 1 time in total.
Re: How to ... Redirect to the portal after login / logout
Hi
Thus you will be redirected after the login from the portal to the index.
Open: root/ext/board3/portal/styles/prosilver/template/portal/modules
Find and delete:
Thus you will be redirected to after login from the index to the portal.
Open: root/ucp.php
Find:
Replace with:
Open: root/styles/yourstyle/template/index_body.html
Find:
Replace with:
In the end "ACP -> General" --> purge cache
It's recommended to purge your browser cache too.
Thus you will be redirected after the login from the portal to the index.
Open: root/ext/board3/portal/styles/prosilver/template/portal/modules
Find and delete:
Code: Select all
<input type="hidden" name="redirect" value="{U_PORTAL_REDIRECT}" />
Open: root/ucp.php
Find:
Code: Select all
login_box(request_var('redirect', "index.$phpEx"));
Code: Select all
login_box(request_var('redirect', "portal"));
Find:
Code: Select all
{S_LOGIN_REDIRECT}
Code: Select all
<input type="hidden" name="redirect" value="{U_PORTAL}" />
It's recommended to purge your browser cache too.
Gruß Udo
Re: How to ... Redirect to the portal after login / logout
Hi kirk.
I thank you for your help. I did all that.
1) you confirm the first step has to be done with the "login_box_side.html" file.
2) Now, after login, the user is redirected to the portal. But I stay stucked with a new problem. Before that, access to the site was done via this adress : root/app.php/portal and the portal was displayed. But now, when this same adress is called, a redirection is called to the root/index.php and only the index is shown. Same after logout : the user is redirected to the index and does not see anymore the portal.
I wish the portal to be the frontpage and not the index as currently. Same after logout, the user must stay within the portal.
I have already alter my .htaccess with the following :
and set the server setting by Enabling URL Rewriting to yes , but this does not work.
To summarize, everything works well when logged in, but not if logged out.
What can I do more ?
Thanks again for your support.
PS : here is my .htaccess
I thank you for your help. I did all that.
1) you confirm the first step has to be done with the "login_box_side.html" file.
2) Now, after login, the user is redirected to the portal. But I stay stucked with a new problem. Before that, access to the site was done via this adress : root/app.php/portal and the portal was displayed. But now, when this same adress is called, a redirection is called to the root/index.php and only the index is shown. Same after logout : the user is redirected to the index and does not see anymore the portal.
I wish the portal to be the frontpage and not the index as currently. Same after logout, the user must stay within the portal.
I have already alter my .htaccess with the following :
Code: Select all
DirectoryIndex app.php/portal index.php index.html index.htm
To summarize, everything works well when logged in, but not if logged out.
What can I do more ?
Thanks again for your support.
PS : here is my .htaccess
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine on
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
#Ajout selon http://board3.de/viewtopic.php?f=71&t=10991
DirectoryIndex app.php/portal index.php index.html index.htm
Last edited by Condor on 19. December 2015 11:28, edited 1 time in total.
Re: How to ... Redirect to the portal after login / logout
For quick login on index.php
Open: root/styles/yourstyle/template/index_body.html
Find:
Replace with:
For logout:
Open: root/ucp.php
Find:
Replace with:
In the end "ACP -> General" --> purge cache
It's recommended to purge your browser cache too.
Open: root/styles/yourstyle/template/index_body.html
Find:
Code: Select all
<input type="submit" tabindex="5" name="login" value="{L_LOGIN}" class="button2" />
{S_LOGIN_REDIRECT}
Code: Select all
<input type="hidden" name="redirect" value="{U_PORTAL}" />
<input type="submit" tabindex="5" name="login" value="{L_LOGIN}" class="button2" />
Open: root/ucp.php
Find:
Code: Select all
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
Code: Select all
redirect(append_sid("{$phpbb_root_path}portal"));
It's recommended to purge your browser cache too.
Gruß Udo
Re: How to ... Redirect to the portal after login / logout
Ok Kirk, thanks for your support.
So all the tips you gave before are implemented.
I stay stuck with the following problem I can summarize so :
- When not logged in, the only possible access is the index page, even if I calla the portal adress.
- When logged in everything works correctly, the user is redirected to the portal. But because of the above behavior, at logout the user is redirected to the index page.
Since two days, I try to solve this problem, without success.
On another test forum including the portal, the behavior is correct according to the directives you gave me above.
As I wrote previously, the is set into the .htaccess.
Where could be the problem ?
Thanks again for your support.
So all the tips you gave before are implemented.
I stay stuck with the following problem I can summarize so :
- When not logged in, the only possible access is the index page, even if I calla the portal adress.
- When logged in everything works correctly, the user is redirected to the portal. But because of the above behavior, at logout the user is redirected to the index page.
Since two days, I try to solve this problem, without success.
On another test forum including the portal, the behavior is correct according to the directives you gave me above.
As I wrote previously, the
Code: Select all
DirectoryIndex app.php/portal index.php index.html index.htm
Where could be the problem ?
Thanks again for your support.
Last edited by Condor on 19. December 2015 11:29, edited 1 time in total.
Re: How to ... Redirect to the portal after login / logout
Guests have not permissions "Can view the Portal" Check this.
Gruß Udo
Re: How to ... Redirect to the portal after login / logout
Kirk, you 're really genious !
Thank so much for your help. I'll sleep quietly next night.
Thank so much for your help. I'll sleep quietly next night.