Topic-icon Show login popup on site entry (pageload)

Active Subscriptions:

None
10 years 8 months ago #35542 by Eduardo
Hello, I tried to add javascript to my template, within <body> also tried inside and outside <head> <html> and did not work. I'd like a modal similar to that in the case of site www.templeandwebster.com.au lrawling, customer of yours too.

For that I need to know the following:
1 - How to customize a modal window?
2 - How to make it appear on pageload?
3 - How to leave it fixed, so that the user can only enter the site after logging, such as the site in question?

I appreciate your help
The topic has been locked.
Support Specialist
10 years 8 months ago #35550 by alzander
Eduardo,
First see the answer I just posted for you in the other thread .

For the other questions:

1 - How to customize a modal window?

You can override any of the login module with your own code or styles by editing the files in the /modules/mod_sclogin/tmpl/ directory. Mainly, the login.php file is the 'main' login file that I think you'd want to edit. To edit, it's best to copy those files to /templates/<YOUR_TEMPLATE>/html/mod_sclogin/ first and edit there. That way, your changes won't be deleted when you upgrade.

2 - How to make it appear on pageload?

Please see the other thread that I already answered this in.

3 - How to leave it fixed, so that the user can only enter the site after logging, such as the site in question?

There's no current way to do that. That's not a feature of the SCLogin module currently and I'm not sure what it would take to implement that. Please note that the page you linked to is *not* a Joomla website and not using the SCLogin module. That is a page that the other user linked to stating what she was looking for. In the other thread, I specifically mentioned that the user would be able to close the window whenever they wanted.

I hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #35558 by Eduardo
Solved

Hi Alex, thank you by the fast answer, and I make the modal login work, but this open conflict with my top banner, and font size, in other words, mess up the style of my site, do you have a solution for this?
My top banner is gone... www.contangels.com.br

So, I make some changes and if I publish the module SCLOGIN on any position to Active Template (or theme), my TOP banner desapear, if I publish on any position of a non active template (or theme), the modal login window works fine, but, in this case, I have lost the capacity to make LOG-IN and LOG-OUT because the buttons isn't show on page.

Coclusion: If the modal windows work's I lost my top banner
If my top banner shows, I lost buttons to log-in and log-out


Problem solved by myself

USER wrote: Now, if you see this, my problem is that SCLOGIN Screen isn't appear on page load, if i click on login button, the modal window is shown, nothing happens on page load.


Problem solved by myself

Now work´s fine, thank's.
Last edit: 10 years 8 months ago by Eduardo.
The topic has been locked.
Support Specialist
10 years 8 months ago #35638 by alzander
Glad to hear you got these things going. If you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.