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 |
Jump to:
Description
"friend" features currently rely on buddylist. I want to make them all work with user relationships as well.
Michelle

#1
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 buddylistif (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
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
I'm interested in this too once you can get to it :)
#4
+1 for this request.
#5
watching (thanks for notifying me ajayg)
#6
Look at the comment#7 on this node. Perhaps it has something you need?
http://drupal.org/node/202827
#7
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
Hi, any news here? Subscribing.
Thanks!
#9
No news. Please don't change the version. New features can't go into an existing alpha.
Michelle
#10
UR looks dead and 5.x isn't getting new features anyway.
Michelle
#11
Now that we have new maintainer for UR , would you please consider this?
#12
The second part still applies.
Michelle
#13
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
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