Darren Mothersele

Software Developer

Warning: You are viewing old, legacy content. Kept for posterity. Information is out of date. Code samples probably don't work. My opinions have probably changed. Browse at your own risk.

Friends lists for Drupal 6. Buddylist, Friendlist, User Relationship?

Oct 6, 2008

web-dev

There are lots of modules for adding friend list, or buddy list functionality to your Drupal site. Some good, some bad, and some just plain ugly. I started using the BuddyList2 Drupal 6 port because I was using that for Drupal 5... but now I'm starting to favour Friendlist... read on to find out why...

BuddyList was my preferred method for Drupal 5 sites, and the excellent BuddyList2 module provided a nice API and extra functionality.

There's lots of ways to do this in development for Drupal 6 - so selecting a friend list module is not straightforward at the moment. I've been playing around with both BuddyList2 and FriendList - and I've had to patch both to get them to work with Views. Out of the two I have preferred working with Friendlist:

http://drupal.org/project/friendlist

One key requirement I have for a friend list module is the ability to produce lists of content based on a user's friend relationships, i.e. a "friend feed" kind of thing. This isn't available out of the box yet with Friendlist but you can use my patch, as submitted here, which currently let's you do this. There's also an example view, just follow the link here to the Friendlist issue queue on Drupal.org:

http://drupal.org/node/317611#comment-1046616

Update: I've considered using Flag. Plus points include the fact I'm already using flag module for favourites, so re-using it for friend lists reduces the total number of modules that are required. It only supports one-way "follow" style connections though doesn't it? So something like Friendlist is still needed to enable reciprocal relationships.