Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Eric

    (@emartin24)

    Can you explain what is broken about it and what version of IE you are experiencing the issue with?

    Thread Starter Jimmycodotcom

    (@jimmycodotcom)

    IE 8. The first time you click on Login or Register, it is fine. Once you click on it a second time it breaks. Screencap: https://www.armlsblog.com/error-simple-modal-login.jpg

    I am using a slight modification, but it was working great before.

    * @desc Builds the login form HTML.
    		 * If using the simplemodal_login_form filter, copy and modify this code
    		 * into your function.
    		 * @return string
    		 */
    		function login_form() {
    			$output = sprintf('
    	<form name="loginform" id="loginform" action="%s" method="post">
    		<div class="title">%s</div>
    		<div class="simplemodal-login-fields">
    		<p>
    			<label>%s<br />
    			<input type="text" name="log" class="user_login input" value="" size="20" tabindex="10" /></label>
    		</p>
    		<p>
    			<label>%s<br />
    			<input type="password" name="pwd" class="user_pass input" value="" size="20" tabindex="20" /></label>
    		</p>',
    				site_url('wp-login.php?redirect_to=/', 'login_post'),
    				__('Login', 'simplemodal-login'),
    				__('Username', 'simplemodal-login'),
    				__('Password', 'simplemodal-login')
    			);
    
    			ob_start();
    			do_action('login_form');
    			$output .= ob_get_clean();
    
    			$output .= sprintf('
    		<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" class="rememberme" value="forever" tabindex="90" /> %s</label></p>
    		<p class="submit">
    			<input type="submit" name="wp-submit" value="%s" tabindex="100" />
    			<input type="button" class="simplemodal-close" value="%s" tabindex="101" />
    			<input type="hidden" name="testcookie" value="1" />
    		</p>
    		<p class="nav">',
    				__('Remember Me', 'simplemodal-login'),
    				__('Log In', 'simplemodal-login'),
    				__('Close', 'simplemodal-login')
    			);
    
    			if ($this->users_can_register && $this->options['registration']) {
    				$output .= sprintf('<a class="simplemodal-register" href="%s">%s</a>',
    					site_url('wp-login.php?action=register', 'login'),
    					__('Register', 'simplemodal-login')
    				);
    			}
    
    			if (($this->users_can_register && $this->options['registration']) && $this->options['reset']) {
    				$output .= ' | ';
    			}
    
    			if ($this->options['reset']) {
    				$output .= sprintf('<a class="simplemodal-forgotpw" href="%s" title="%s">%s</a>',
    					site_url('wp-login.php?action=lostpassword', 'login'),
    					__('Password Lost and Found', 'simplemodal-login'),
    					__('Lost your password?', 'simplemodal-login')
    				);
    			}
    
    			$output .= '
    			</p>
    			</div>
    			<div class="simplemodal-login-activity" style="display:none;"></div>
    		</form>';
    
    			return $output;
    		}
    Thread Starter Jimmycodotcom

    (@jimmycodotcom)

    Here are my Simple-modal files: https://www.armlsblog.com/simplemodal-login.zip

    Thread Starter Jimmycodotcom

    (@jimmycodotcom)

    Update: The problem seems to be IE 8 specific. I cannot repeat the same error in Firefox or IE 7. The problem came after the 3.0.5 upgrade. Any help you can give me would be greatly appreciated and would lead to a plugin donation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: SimpleModal Login] Login / Register Now Broken’ is closed to new replies.