I would like to solve the following scenario: A user comes to a website that has some content that is for members only while other content may be open to the public. When a user clicks a link that is members only, I would like to prompt them for their login information.
I would like this prompt to be a lightbox style dialog (i.e. over the current page, darkened background that still shows the current page but a login box in the middle of the window). I want to ensure they can not get to the other pages until they have successfully logged in.
I'm drawing a complete blank on how to do this.
The site is a (generally speaking) PHP/MySql site.
Any thoughts on how to do this?