I have a sort of "hidden" login link in the body of my site. if the user clicks on it, lightbox shows up with login form. If the user (now logged in) clicks on it again, it shows a blank lightbox.
I would like to find a way to display a short message reading "already logged in. logout?"
I have managed to do this all using php, except for the message in a lightbox. I can think of two ways of doing this, both of which have problems:
#1 (messy): create a blank html in my theme folder with the message in it, and use lightframe to show the page.
#2 (the way I am doing it now):
using this code:
<a href="" rel="lightmodal[|width:300px; height:0px;][Already Logged in. <a href="logout">Logout?</a>]">user login</a>
i.e. the caption is the message I want to display, with a logout link embedded in it.
only problem is, the lightbox that shows up has a horizontal scroll bar at the top because it is all that is left of the main page shown when i defined a height of 0px. Not to mention that it is loading the entire front page only because i HAVE to define something to load, and the front page is something. screenshot attached.
Other than the page loading in the lightbox unneccesarily and the horizontal scroll bar, the caption displays exactly as I want it to. I guess my question then becomes: Is there any way to display a lightbox with JUST a caption in it? I.e. no actual content?
thanks for a wonderful module by the way.