I have two use cases involving buddylist with usernode/nodeprofile and views:

  1. In my view I'd like to be able to sort profile nodes by the time that the buddy relationship was created, e.g. most recent buddy first. I would also like this time to be made available to the view itself.
  2. I'd like to be able to use the username field as an argument in the view URL, i.e. http://www.example.com/[my_username]/friends. Currently http://www.example.com/[my_uid]/friends is possible, but I'd prefer not to have to create aliases.

Following is a patch for your consideration that implements these use cases. Thanks!
Mark

CommentFileSizeAuthor
#1 buddylist_views_0.patch5.62 KBmleicester
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mleicester’s picture

Status: Active » Needs review
FileSize
5.62 KB

This patch also removes what I think is a redundant array assignment (compare lines 103 with 131):
$tables['usernode_buddylist_buddyof'] = array( ...