Topic-icon How to avoid the Joomla Component Login page

Active Subscriptions:

None
4 years 5 months ago #65822 by joomleb
Hi guys,
Joomla 3.9.13 and last SCLogin 8.0.5. I am using SCLogin in an Offcanvas position and it works well.

Now, using Joomla ACL and/or any type of Component Extensions, when a no permitted user tries to view the content it shows the alert message, something like: "Please login to view content..." within the Joomla Login (User Component).

Now, as far as I understand, there are two login views available:
- component view
- module view
SCLogin is a module view, so when a user has no ACL permissions he will be redirected to login, but the login component view.

WIth surprise I cannot see any type of SCLogin meu item to create a Login page where redirect all those calls.

Am I missing anything ? Please, How can be avoid this issue ?
The topic has been locked.
Support Specialist
4 years 5 months ago #65824 by alzander
You described it perfectly above. SCLogin is a module. The way Joomla works is that every page must have a component section. Modules simply 'decorate' the component view in some way. There is no way to setup a URL to only a module. URLs only point to a specific component, and on that page you could show any modules you want. For instance, this site has the SCLogin module in the top right, but the component view of this page is the forum.

Based on the above, I hope that helps explain why there's no way to point directly to the SCLogin module. Joomla and other extensions will automatically redirect to the standard Joomla Login (or Register) pages (which is the user component) when a user tries to visit an unauthorized page. Some extensions can override the redirect to take them to a different component view (like a login/register page for JFBConnect, JomSocial or other authentication provider), but there's no way for a module to override the redirect to the login/register page.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 5 months ago #65826 by joomleb
Hi Alex,
many thanks for your reply. What I still don't understand is:
- Is it possible in theory to override the standard Joomla user component (Login or Register) ?

If Yes, Do you have any plan implement it (SCLogin component + Module OR JFBConnect + SCLogin module) ?
The topic has been locked.
Support Specialist
4 years 5 months ago #65834 by alzander
Yes, it's possible to override the standard Joomla user component. No, we don't plan to do it. Here are the main reasons:
* JFBConnect has a registration page, but it's only shown after the user has tried to authenticate with a social network. It's not a landing page on its own and users shouldn't be redirected to it.
* The SCLogin module is a login module only. It doesn't support registration. Even if we were to set it up to be a login component, it wouldn't offer much more additionally over the Joomla login component. The SCLogin module is a upgraded login module with template overrides, popups and other features, but few of those would apply to a component version of that module.

I hope that helps explain, but if you need anything else, please let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 5 months ago #65835 by joomleb
Hi Alex,
many thanks for the explanations. Just a last question:

Do you have any trick, tip to add the SCLogin (JFBConnect) connection authenticate Socials icons at tbottom of the standard Joomla Login user component page ?
To add the same "connect by" Social icons to a module position, like in the SCLogin module ?
The topic has been locked.
Support Specialist
4 years 5 months ago #65841 by alzander
Ahh.. if that's what you're mainly trying to do, please use the "Integrate with Joomla Login" setting in JFBConnect. That will automatically add the social login buttons to the login and register pages of Joomla.

Let me know if that helps or if you need anything else.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 5 months ago #65843 by joomleb
Hi Alex,
thanks for the suggestion:

1 - Login - it is running. As far as I understand Custom CSS is the only way to hide title, center icons and set their dimensions, Am I right ?

2 - Registration - I'm using SCLogin with this settings to use Sebod Registration form:
- Registration Component: Custom
- Custom Registration Link: Registrarse
But the icons are not shown... Maybe, Can I use a Custom Module to show them on the Registration page ? What is the code ?
The topic has been locked.
Support Specialist
4 years 5 months ago #65849 by alzander
Correct that you'd need to use CSS to override those styles. Every template and site is different, so it's impossible for us to make a one-size fits all style.

To get you started on the login page, use the following:
span.sourcecoast.login {
    text-align: center;
    justify-content: center !important;
    display: flex;
}

2) Our automatic integration only works with the Joomla login and registration page. It doesn't work for all other components. You can use the following tag to add the login button yourself:
{jfbclogin}
You can also customize it quite a bit, like showing only certain providers or even custom images for each provider:
{jfbclogin providers=facebook,twitter,instagram}
For more details on all tag options, see our social network Easy Tag documentation.

Thanks,
Alex
The topic has been locked.