- Posts: 3
- Thank you received: 0
Login Form on restricted page
- Arrow
- Topic Author
- Offline
- New Member
-
Less
More
7 years 5 months ago #105867
by Arrow
Login Form on restricted page was created by Arrow
I have a support section that the user needs to log in to access.
I only want the login form on the main page of the support section, or to redirect to the login form if not logged in, the redirect to the main page after logging in.
I'm not sure how to do this, is it possible, and how would I go about doing this?
I only want the login form on the main page of the support section, or to redirect to the login form if not logged in, the redirect to the main page after logging in.
I'm not sure how to do this, is it possible, and how would I go about doing this?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 5 months ago #105897
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Login Form on restricted page
Hi David
The only way is that in the code of the extension which handle support section, you add add some code to check and redirect to login page if users is logged in
We usually do that in our extension. Not sure which extension you are using for that support section page?
Tuan
The only way is that in the code of the extension which handle support section, you add add some code to check and redirect to login page if users is logged in
We usually do that in our extension. Not sure which extension you are using for that support section page?
Tuan
Please Log in or Create an account to join the conversation.
- Jonathan Colls
- Offline
- Senior Member
-
Less
More
- Posts: 57
- Thank you received: 5
7 years 5 months ago #105911
by Jonathan Colls
Replied by Jonathan Colls on topic Login Form on restricted page
Not sure if it helps in your situation but I use {loadposition positionname} where I want a login to appear. Using a login module in the referenced position and set the access rights on the module to "Guest". It then only appears when a user is not logged in.
Please Log in or Create an account to join the conversation.
- Arrow
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
7 years 5 months ago #105993
by Arrow
Replied by Arrow on topic Login Form on restricted page
I'm using Membership Pro? Can I make it so that if a user tries to access the support page it goes to a login form, then will redirect back to the support page after the user logs in?
Please Log in or Create an account to join the conversation.
- Arrow
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
7 years 5 months ago #106037
by Arrow
Replied by Arrow on topic Login Form on restricted page
I think I got it to work using the method on the following page
docs.joomla.org/Auto_redirect_guests_to_login
Thanks for the suggestions
Thanks for the suggestions
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.