Forums

Popup login/register window (2 posts)

  1. DoocesWild
    Member
    Posted 11 months ago #

    I would like to add a popup window that has the ability to login or register, pretty much identically to seekingalpha.com. Does anyone have any ideas how to do this?

  2. DoocesWild
    Member
    Posted 10 months ago #

    Anyone have any ideas? Perhaps you can help me figure out step by step.

    1) Popup windows. I'm using prettyPhoto to pop it up. I made login.php. Right now I have

    <?
    $blogurl = "http://www.URL.com";
    $postlink = $_GET['redirect'];
    ?>
    
    <link rel="stylesheet" href="<?=$blogurl ?>/wp-admin/css/login.css" type="text/css" />
    
    <div id="login">
    
    <form name="loginform" id="loginform" action="/wp-login.php" method="post">
    	<p>
    		<label>Username<br />
    		<input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
    	</p>
    	<p>
    		<label>Password<br />
    		<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    
    	</p>
    	<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember Me</label></p>
    	<p class="submit">
    		<input type="submit" name="wp-submit" id="wp-submit" value="Log In" tabindex="100" />
    		<input type="hidden" name="redirect_to" value="<?=$postlink ?>#respond" />
    		<input type="hidden" name="testcookie" value="1" />
    	</p>
    </form>
    
    <p id="nav">
    <a href="<?=$blogurl ?>/wp-login.php?action=lostpassword" title="Password Lost and Found">Lost your password?</a>
    </p>
    
    </div>
    
    <p id="backtoblog"><a href="#" class="lbAction" rel="deactivate">Close</a></p>
    
    <script type="text/javascript">
    try{document.getElementById('user_login').focus();}catch(e){}
    </script>

    inside of this file. I'm using this as the link
    <p>/wp-content/themes/<?php echo get_option('template'); ?>/login.php??iframe=true&width=700&height=400" rel="prettyPhoto[iframes]">Login or Sign Up
    and it pops up. I can enter my information in it and hit enter. This redirects to the wordpress login screen. If I close the prettyPhoto popup, and then refresh the page I am logged in. I'd like to have the code to automatically close the window and refresh the page, if at all possible. Also, I need to make the login to the side of it. Basically just having a login and password box would suffice.

    Thank you so much for any help!

Reply

You must log in to post.

About this Topic

Tags