• register but not redirect!!
    how to correct register and redirect ?
    (sorry my english!)

    -----------------------------------------------------------------------
    simplemodal-login.php: (original)
    
    function simplemodal_login_footer() {
    
    			printf('<div id="simplemodal-login-form" style="display:none;">
    	%s
    	<form name="loginform" id="loginform" action="%s" method="post">
    		<p>
    			<label>CHECK1%s<br />
    			<input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
    		</p>
    		<p>
    			<label>%s<br />
    			<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    		</p>', $this->options['theme'] === 'osx' ? '<div class="osx-title">Login</div>' : '', site_url('wp-login.php', 'login_post'), __('Username', $this->localizationDomain), __('Password', $this->localizationDomain));
    
    		do_action('login_form');
    
    		printf('
    
    		<p>
    		Registrar
    		</p>
    		<br />
    
    		<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> %s</label></p>
    		<p class="submit">
    			<input type="submit" name="wp-submit" id="wp-submit" value="%s" tabindex="100" />
    			<input type="button" class="simplemodal-close" value="%s" tabindex="101" />
    			<input type="hidden" id="redirect_to" name="redirect_to" value="%s" />
    			<input type="hidden" name="testcookie" value="1" />
    		</p>
    
    	</form>
    
    	<div class="simplemodal-login-credit"><a href="http://www.ericmmartin.com/projects/simplemodal-login/">%s</a></div>
    </div>', __('Remember Me', $this->localizationDomain), __('Log In', $this->localizationDomain), __('Cancel', $this->localizationDomain), $this->options['admin'] === true ? admin_url() : '', __('Powered by', $this->localizationDomain) . " SimpleModal Login");
    
    		}
    
    -----------------------------------------------------------------------
    simplemodal-login.php: (my code)
    
    function simplemodal_login_footer() {
    
    			printf('<div id="simplemodal-login-form" style="display:none;">
    	%s
    	<form name="registerform" id="registerform" action="%s" method="post">
    		<p>
    			<label>CHECK1%s<br />
    			<input type="text" name="user_login" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
    		</p>
    		<p>
    			<label>%s<br />
    			<input type="text" name="user_email" id="user_email" class="input" value="" size="20" tabindex="20" /></label>
    		</p>',
    		'',
    		site_url('wp-login.php?action=register', 'login_post'),
    		__('Username', $this->localizationDomain),
    		__('E-mail', $this->localizationDomain));
    
    		do_action('register_form');
    
    		printf('
    
    		<p>
    		Registrar
    		</p>
    		<br />
    
    		<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> %s</label></p>
    		<p class="submit">
    			<input type="submit" name="wp-submit" id="wp-submit" value="%s" tabindex="100" />
    			<input type="button" class="simplemodal-close" value="%s" tabindex="101" />
    			<input type="hidden" id="redirect_to" name="redirect_to" value="%s" />
    			<input type="hidden" name="testcookie" value="1" />
    		</p>
    
    	</form>
    
    	<div class="simplemodal-login-credit"><a href="http://www.ericmmartin.com/projects/simplemodal-login/">%s</a></div>
    </div>',
    __('Remember Me', $this->localizationDomain),
    __('Register', $this->localizationDomain),
    __('Cancel', $this->localizationDomain),
    $this->options['admin'] === true ? admin_url() : '',
    __('Powered by', $this->localizationDomain) . " SimpleModal Login");
    
    }

    http://wordpress.org/extend/plugins/simplemodal-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter 5imix4kankin

    (@5imix4kankin)

    anyone ? please

    You should be able to follow what was done for the login code. I’ll try to take a look into this, but you might want to email me directly in case I forget.

    5imix4kankin did you finally get this working? Who I need to kill to get this code fixed? 😉

    iuzzef – no need to kill anyone 😉

    I’ve updated SimpleModal Login to include the register functionality and will release it soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: SimpleModal Login] how to register and redirect ?’ is closed to new replies.