[Plugin: Login With Ajax] Lwa can't (definitely) remember
-
Hi Marcus,
i’m back again with a “remember me” problem.
as mentionned in the title, Lwa can’t remember me.
because i modified the code of widgetout.php, i compared it with your original file but i didn’t see anything wrong…
could you be nice enough to show me the way to find my mistake?
many thx to Marcus you and have a nice happy end year!
my widgetout.php code:
<?php if( $is_widget ) { echo ('<div id="LoginWithAjax">'); } ?> <?php //Signup Links if ( get_option('users_can_register') ) { if ( function_exists('bp_get_signup_page') ) { //Buddypress $register_link = bp_get_signup_page(); } elseif ( file_exists( ABSPATH."/wp-signup.php" ) ) { //MU + WP3 $register_link = site_url('wp-signup.php', 'login'); } else { $register_link = site_url('wp-login.php?action=register', 'login'); } ?> <a href="<?php echo ('Sign in') ?>" id="LoginWithAjax_Form_Link_Login" rel="#LoginWithAjax_Form_Register"><?php echo 'Login';?></a><span style="color: #ffcc00"> |</span> <a href="<?php echo $register_link ?>" id="LoginWithAjax_Link_Register" title="<?php _e('Register') ?>" rel="#LoginWithAjax_Register"><?php echo 'Register'; ?></a> <?php echo ('<span style="color: #ffcc00">|</span>'); ?> <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" id="LoginWithAjax_Link_LostPass" title="<?php _e('Password Lost and Found') ?>"><?php echo 'Lost Password' ?> </a> <?php } ?> <form name="LoginWithAjax_Form" id="LoginWithAjax_Form" action="<?php echo $this->url_login; ?>" method="post"> <div class="username_label"> <div id="YourUserAlign"><?php echo 'Username' ?> <input type="text" name="log" id="lwa_user_login" class="champsUser" value="<?php echo $user_login ?>" onfocus="if(this.value == '<?php echo $user_login ?>'){this.value = '';}" onblur="if(this.value == ''){this.value = '<?php echo $user_login ?>'}" /> </div> </div> <div id="YourPassAlign"> <div class="password_label"> <label><?php echo 'Password' ?></label> <input type="password" name="pwd" id="lwa_user_pass" class="champsPass" value="" /> </div> </div> <?php echo '<div class="rmbme"><label>Remember Me</label>' ?> <input name="rememberme" type="checkbox" id="lwa_rememberme" value="forever" /> <br/> <?php $messLogin="Log in" ?> <input type="submit" name="wp-submit" id="lwa_wp-submit" class="buttonLogin" value="<?php echo $messLogin; ?>" tabindex="100" /> <input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" /> <input type="hidden" name="testcookie" value="1" /> <input type="hidden" name="login-with-ajax" value="login" /> <span class="buttonCancelLogin" id="LoginWithAjax_Form_Link_Login_Cancel">Cancel </span> <?php echo '</div>' ?> </form> <form name="LoginWithAjax_Remember" id="LoginWithAjax_LostPass" action="<?php echo $this->url_remember ?>" method="post" style="display:none;"> <?php echo __("Forgotten password") ?> <?php $msg = __("Fill username / email"); ?> <input type="text" name="user_login" id="lwa_user_remember" class="champsForgotten" value="<?php echo $msg ?>" onfocus="if(this.value == '<?php echo $msg ?>'){this.value = '';}" onblur="if(this.value == ''){this.value = '<?php echo $msg ?>'}" /> <input type="hidden" name="login-with-ajax" value="remember" /> <input type="submit" class="buttonLostPass" value="<?php echo ("Get New Password") ?>" /> <span class="buttonLostCancel" id="LoginWithAjax_Link_LostPass_Cancel">Cancel</span> </form> <?php //Taken from wp-login.php ?> <div id="LoginWithAjax_Register"> <form name="registerform" id="registerform" action="<?php echo $this->url_register ?>" method="post"> <?php echo __('<span style="color: #ffffff">Register with our blog</span>') ?> <?php $msg = __('Username') ?> <input type="text" name="user_login" id="user_login" class="champsRegUser" value="<?php echo $msg ?>" onfocus="if(this.value == '<?php echo $msg ?>'){this.value = '';}" onblur="if(this.value == ''){this.value = '<?php echo $msg ?>'}" /> <?php $msg = __('E-mail') ?> <input type="text" name="user_email" id="user_email" class="champsRegEmail" value="<?php echo $msg ?>" onfocus="if(this.value == '<?php echo $msg ?>'){this.value = '';}" onblur="if(this.value == ''){this.value = '<?php echo $msg ?>'}" /> <br/> <input type="submit" name="wp-submit" id="wp-submit" class="buttonRegister" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /> <span class="buttonCancelReg" id="LoginWithAjax_Link_Register_Cancel">Cancel </span> <!--<br/> <!-- <?php _e('<span style="color: #ffffff">A password will be e-mailed to you</span>') ?> <br/>--> <input type="hidden" name="lwa" value="1" /> </form> </div> <script type="text/javascript"> jQuery(document).ready(function($) { $('#LoginWithAjax_Form').hide(); $('#LoginWithAjax_Form_Link_Login').click(function(event){ event.preventDefault(); $('#LoginWithAjax_Form').show(); $('#LoginWithAjax_Register').hide(); $('#LoginWithAjax_LostPass').hide(); }); $('#LoginWithAjax_Form_Link_Login_Cancel').click(function(event){ event.preventDefault(); $('#LoginWithAjax_Form').hide(); }); $('#LoginWithAjax_Register').hide(); $('#LoginWithAjax_Link_Register').click(function(event){ event.preventDefault(); $('#LoginWithAjax_Register').show(); $('#LoginWithAjax_Form').hide(); $('#LoginWithAjax_LostPass').hide(); }); $('#LoginWithAjax_Link_Register_Cancel').click(function(event){ event.preventDefault(); $('#LoginWithAjax_Register').hide(); }); $('#LoginWithAjax_LostPass').hide(); $('#LoginWithAjax_Link_LostPass').click(function(event){ event.preventDefault(); $('#LoginWithAjax_LostPass').show(); $('#LoginWithAjax_Form').hide(); $('#LoginWithAjax_Register').hide(); }); $('#LoginWithAjax_Link_LostPass_Cancel').click(function(event){ event.preventDefault(); $('#LoginWithAjax_LostPass').hide(); }); }); </script> </div>
- The topic ‘[Plugin: Login With Ajax] Lwa can't (definitely) remember’ is closed to new replies.