profiles-brainstorming
From DiSo wiki
"Well, the SREG stuff makes sense to go in WP-OpenID (that's the only context SREG works in), but hCards kinda don't...
So I hacked together a basic implementation of what I meant: <http://singpolyma.net/hcard-import.tar.gz>
It's basically invisible. When a new user is added (by any means) it checks if there is a URL. (always will be with OpenID ;) ) If there is, it fetches that page and looks for an hCard. If it finds more than one it uses tho following rules to pick one (in order of decreasing priority):
1) If there is an hCard in an <address> element, pick that one 2) If there is an hCard where uid == the page we're fetching, pick that one 3) If there is an hCard where url == the page we're fetching, pick that one 4) Pick the first hCard on the page
Once an hCard has been selected, it copies first name, last name, email, fn to display name and nickname (assuming these values have not already been set by the user -- it will no overwrite) all other properties are imported into meta values that match their hCard class name.
As an added bonus for me, I added a quick thing to the (as yet unreleased) avatars plugin I use so that it now looks for a 'photo' meta key -- meaning those signing in with OpenID who have hCards on their URIs will get their comment avatar properly set ;)" -- Stephen Paul Weber
"Can i suggest you do some thinking about how your work can be morphed into a new wp-profile plugin?
Things we've been discussing:
[x] hcard import [ ] hcard *subscribing* - update automatically OR via user initiated [ ] user hcard pages (documented on the wordpress site) [ ] extended hCard profile fields for users [ ] multiple url (rel-me) fields in profile" -- Steve Ivy
"
- Maybe put a button on the profile page that will force import of
hCard from their primary URL/all their URLs? Two buttons -- one to override data with the hCard and one to only fill in blank fields
- Privacy settings for each field -- to be complemented by
diso-contactlist / other privacy whatever happens?
- Profile pages? With template hacks the author could be done (ie
http://singpolyma.net/author/singpolyma ), but it seems to give 404 on users that don't have post privileges... I'm debating what for this should take. Any/all of the following:
display_hcard_for(USERID); //put in author.php as display_hcard_for(intval($author))
<!--hcard(USERID)-->
Actually generate a /blah page for each user." -- Stephen Paul Weber
"I have made a similar wordpress plugin to use an hCard profile to fill out the comment form, similar to the OpenID comments implementation, if you are interested, you can take a look here: http://wordpress.org/extend/plugins/hcard-commenting/ and a demo in the comments of my blog: http://notizblog.org." -- Pfefferle

