title: use fancybox iframe to login wordpress, then reload original page
body: <p>On one of my sites I've added a custom div to the footer.php which goes to the login page for the wordpress site:</p>
  
  <pre><code>&lt;p id="login" align="left"&gt;&lt;?php if ( is_user_logged_in() ) {  ?&gt;
     &lt;a href="http://mydomain.com/wp-login.php?action=logout&amp;_wpnonce=518b41a419" alt="logout"&gt;[-] logout&lt;/a&gt;
  &lt;?php } else { ?&gt; 
     &lt;a href="http://mydomain.com/wp-login.php" alt="login"&gt;[+] members login&lt;/a&gt;
  &lt;?php } ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I use the "Fancybox for Wordpress" plugin to load iframes for contact forms and the like.
  I was wondering how I can make the login show in an iframe, so that when the login is successful, the iframe closes and the page they were on reloads (so they're not taken to the cms).</p>