Hi

I was wondering gow easy would it be to add XFN (http://gmpg.org/xfn/) support for buddylist? So, when buddylists are displayed, the code would be something like:

 <a href="/user/joe" rel="friend">

where the XFM 'rel' would be set by the buddylist group.

Also, I would like it to be possible for users to add any URL to their buddylist (again with XFN support) so they can link to their friends who don't happen to have an account on the current site.

Any suggestions would be most welcome, cheers.

Comments

dldege’s picture

The lastest version in the DRUPAL-5 branch in CVS has theme support for all the various buddylistings - you could override those as needed and add the 'rel' tags to the final output. If you want to make a patch for native support of this I'd be willing to review it.

Take a look for the functions in buddylist.module

function theme_buddylisting($account, $buddies, $buddies_per_page)
function theme_buddylist($buddies) 

You might also be able to do this by simply overriding

theme_username($user)

and adding in code to lookup up and build the XFN information you want from the buddylist tables in the db.

B747’s picture

I'm not sure I have the necessary skills to do something like that. Would it be possible for one of you guys to take a look at it, please?

B747’s picture

I looked in the CVS repository and couldn't find the phrase 'theme_buddylisting' anywhere.