application/rdf+xml

Added jabber id to user’s profile

I don’t know why it wasn’t in the profile, but… I added a user_jid field to WordPress user profile. First of all I added the approp field to the MySQL table by:
alter table dbrei_users add user_jid varchar(50) after user_yim;

After that a little of updates to wp-admin/profile.php, get the new profile.php (rename it) and put it in wp-admin/. I also updated mortenf’s foaf-output plugin 1.9 to output the <foaf:jabberID/> by adding the following lines right after the first occurence of user_yim:

if($authordata->user_jid)
$rdf .= "nt" . '<jabberID>' . htmlspecialchars($authordata->user_jid) . '</jabberID>';

That’s it, have fun.. comments welcome


About this entry