• I’ve had to disable OpenID on my blog because on Windows + IE, it causes the regular WP entry-field labels on the register page to not be displayed. A new user wishing to register can still do so, only they have to have ESP, I guess, since you can’t tell what the top two fields (Username and Email address) are FOR. The OpenID field is perfectly displayed.

    Weirdly, this problem doesn’t show up on the login page, and it doesn’t show up on any other platform/browser combo that I’ve noticed. I tested Firefox 3.0 on XP, no problem. And it works in all browsers (that I’ve tried) on Mac (tried firefox, camino, safari and OmniWeb). But not in XP/IE. And that’s a problem, as most of the world uses the Windows/IE combination.

    Anyone else had this problem? Try it: enable OpenID plugin, then go to /wp-login?action=register using IE on Windows. Let me know if you have the same problem. Help!!! I want OpenID functionality, but don’t want to make it impossible for most of the world to figure out how to register!

    (My server details: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.5)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Lars,
    I have the same problem with wp2.7 and latest OpenID on XP + IE. Working on a site for a customer who want’s OpenID right now, so a fix for this would be great.

    I’m using swedish IE6 browser for testing and I figure your swedish to. Have you tried other language installations of IE?

    I don’t have easy access to a Windows machine, so won’t be able to fix this myself in the immediate future. If either of you figure it out, though, I’d be apply to apply whatever changes are necessary.

    I took a look at the “openid_wp_register_form()” function at line 101 in login.php and it seems that it’s the “hr” tags that are somehow messing with IE rendering. I tried enclosing the entire code in a div with the width set to 100%, and that seems to fix it.

    I’ve been unable to reproduce this on the US version of IE6 or IE7. Can either of you confirm that it is indeed limited to the swedish version of IE? Also, oledole: can you provide the exact changes you made to login.php. An actual file diff would be ideal. Alternately, could you just point me to your site where you have this modified version of the plugin running, so I can look at the HTML output you have there? thanks.

    oledole

    (@oledole)

    I made changes so the openid_wp_register_form() function now looks like below. The only change I did was enclosing the entire code in the div. Hope it helps.

    function openid_wp_register_form() {
    	global $wp_version;
    	echo '<div style="width:100%;">'; //Added to fix IE problem
    	if (get_option('openid_required_for_registration')) {
    		$label = __('Register using an OpenID:', 'openid');
    		echo '
    		<script type="text/javascript">
    			jQuery(function() {
    				jQuery("#user_login/..").hide();
    				jQuery("#user_email/..").hide();
    				jQuery("#reg_passmail").hide();
    				jQuery("p.submit").css("margin", "1em 0");
    				var link = jQuery("#nav a:first");
    				jQuery("#nav").text("").append(link);
    			});
    		</script>';
    	} else {
    		$label = __('Or register using an OpenID:', 'openid');
    
    		echo '<hr id="openid_split" style="clear: both; margin-bottom: 1.5em; border: 0; border-top: 1px solid #999; height: 1px;" />';
    
    		echo '
    		<script type="text/javascript">
    			jQuery(function() {
    				jQuery("#reg_passmail").insertBefore("#openid_split");
    				jQuery("p.submit").css("margin", "1em 0").clone().insertBefore("#openid_split");
    			});
    		</script>';
    	}
    
    	echo '
    	<p>
    		<label style="display: block; margin-bottom: 5px;">' . $label . '</label>
    		<input type="text" name="openid_identifier" id="openid_identifier" class="input openid_identifier" value="" size="20" tabindex="25" /></label>
    	</p>
    
    	<p style="float: left; font-size: 0.8em; margin: 0.8em 0;" id="what_is_openid">
    		<a href="https://openid.net/what/" target="_blank">'.__('What is OpenID?', 'openid').'</a>
    	</p>';
    
    echo '</div>'; //Added to fix IE problem
    
    }

    fixed in trunk, and will be in the 3.2.2 release. thanks for the patch.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘OpenID makes register labels invisible on XP IE!’ is closed to new replies.