OpenID, ID Selector and WordPress

by billso on Saturday, 18 October 2008

There’s a new ver­sion of the WP-OpenID plu­gin avail­able. Ver­sion 3.0 includes some new fea­tures, but it is not com­pat­i­ble with Word­Press plu­g­ins that inter­cept HTTP POST requests, includ­ing the fol­low­ing list. If you rely upon these plu­g­ins, then don’t try to install OpenID support.

This new OpenID plu­gin also requires some changes for sites that use the Jan­Rain ID Selec­tor. I posted some code on 30 April 2008 in a billso.com arti­cle called Updat­ing WP-OpenID to sup­port ID Selec­tor.

Example of an OpenID selector box

The code updated the OpenID plu­gin to accom­mo­date this ID Selec­tor fea­ture, which dis­plays an attrac­tive drop­box of OpenID providers in the main Word­Press login box. This code won’t change the com­ment form at all.

Here’s the updated code, which is almost iden­ti­cal to my ear­lier work. Ver­sion 3 of the OpenID plu­gin shifted the login_form func­tion to a new file, so upgrad­ing the OpenID plu­gin will over­write any pre­vi­ous changes that we made.

The code below should be placed inside func­tion openid_wp_login_form() in the wp-login.php script, and should be uploaded to the OpenID plu­gin direc­tory. The key­word “hex” should be replaced with the long hexa­dec­i­mal string embed­ded in the ID Selec­tor script that you must gen­er­ate at idselector.com

Share
  • http://maseko.com/ Eko Pra­muyanto

    Just want to know how WP-OpenID works

Previous post:

Next post: