Page 1 of 1

Re: admin login module for content area

Posted: Tue Sep 06, 2011 10:33 pm
by gocreative
It's not ideal, but you could load the login page within an iframe on your public website. If the login fails, you stay within the iframe. If it's successful (i.e. you reach the admin section), have a Javascript reload the page in the parent frame (a brief auto-refresh).

Example script to add within the </__body> of your admin template:

Code: Select all

<__script__> 
<!-- 
if (top.location.href != self.location.href)
top.location.href = self.location.href;
//--> 
</__script>
This is untested; just an idea.