Add user relationships support

Michelle - January 17, 2008 - 20:22
Project:Advanced Profile Kit
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Michelle
Status:won't fix
Description

"friend" features currently rely on buddylist. I want to make them all work with user relationships as well.

Michelle

#1

txcrew - February 3, 2008 - 17:02

Couldn't this easily be added now by editing the buddylist view and adding a snippet based on the buddylist sction in

panels-content_userinfo.inc

  // Add / remove from buddylist
  if (module_exists('buddylist')) {
    if (user_access('maintain buddy list') && @in_array($accountid, array_keys(buddylist_get_buddies($user->uid)))) {
      // Remove buddy
  ...

and perhaps something in

view-buddylist_of_uid.inc ??

TIA,
txcrew

#2

Michelle - February 3, 2008 - 18:35

To do this, I need to:

1) Installing the module and figuring it all out because I've never looked at it
2) Find the equavalent functions for adding/removing buddies as well as checking if the user is a buddy and any restrictions on adding buddies. Also, I believe user relationship adds in types of buddies that I'd need to take into consideration.
3) Write a view to replace the buddies by uid view since that is hardcoded to use buddylist and usernode.

So not terribly complex but not simple, either. I'll get to it. I just have a lot on my plate so one thing at a time. :)

Michelle

#3

Tannerjf - April 25, 2008 - 05:06

I'm interested in this too once you can get to it :)

#4

ajayg - April 25, 2008 - 05:21

+1 for this request.

#5

sprsquish - April 25, 2008 - 14:21

watching (thanks for notifying me ajayg)

#6

ajayg - April 26, 2008 - 03:21

Look at the comment#7 on this node. Perhaps it has something you need?
http://drupal.org/node/202827

#7

Michelle - April 26, 2008 - 03:28

Unfortunately, what I need is time. I know what I want to do with this but don't have time to do it.

Michelle

#8

Vuds - July 4, 2008 - 13:43
Version:5.x-1.x-dev» 5.x-1.0-alpha5

Hi, any news here? Subscribing.

Thanks!

#9

Michelle - July 4, 2008 - 14:14
Version:5.x-1.0-alpha5» 5.x-1.x-dev

No news. Please don't change the version. New features can't go into an existing alpha.

Michelle

#10

Michelle - September 1, 2008 - 13:48
Status:active» won't fix

UR looks dead and 5.x isn't getting new features anyway.

Michelle

#11

ajayg - September 7, 2008 - 14:37
Status:won't fix» active

Now that we have new maintainer for UR , would you please consider this?

#12

Michelle - September 12, 2008 - 23:08
Status:active» won't fix

The second part still applies.

Michelle

#13

kryptik - October 3, 2008 - 21:59

I'm confused as to what the problem with using user relationships inside advanced profile is.
Perhaps, I'm mistaken on the goal. I simply, added the Relationship blocks to a panel, with the relationship actions, in another panel. When I visit a user profile, it shows their friends, with the links to add or remove, plus tells me the relationship to the person. And When I view my own profile, it works properly.

What other functionality is needed?

#14

Michelle - October 3, 2008 - 22:14

This is about adding support directly into APK. Now that APK is going to be worked on again, this might happen but I don't know, yet, so I'm just leaving the status as is for now.

Michelle

 
 

Drupal is a registered trademark of Dries Buytaert.