Open Login form in popup menu

Open Login form in popup menu

per Himanshu Sharma -
Nombre de respostes: 4

Hi All,

I'm trying to open my login form in a popup menu but unable to achieve.

Please help me to find the solution to open my login form in a javascript popup menu modal.

I am using the Klass theme.

Where I can change in my code so that I will be able to open login form in javascript popup menu.


Thanks

Himanshu

Mitjana de qualificacions: -
En resposta a Himanshu Sharma

Re: Open Login form in popup menu

per Howard Miller -
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers

Popup from where? Why would you want to do that?

En resposta a Howard Miller

Re: Open Login form in popup menu

per Himanshu Sharma -

Popup on the current page.

Example -  If a user is on the front page and click on the login link then a popup menu will come and ask for the login credentials.

similarly, whenever a user clicks on course view page without login then he will be redirected to the login page, At that time a popup will come and ask for credentials and if the user enters the right credentials then he will be redirected to the requested page.


Thanks 

Himanshu

En resposta a Himanshu Sharma

Re: Open Login form in popup menu

per Olumuyiwa Taiwo -
Imatge Plugin developers

You could always style the login form to look like a pop-up. 

But if you insist on it being a popup, you could do it as a Bootstrap Modal -- https://www.w3schools.com/bootstrap/bootstrap_modal.asp -- considering that your theme is Bootstrap based.