Closed (duplicate)
Project:
Profile Privacy
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2008 at 14:36 UTC
Updated:
14 Sep 2011 at 13:33 UTC
Hello, I think an integration with user relationships would be also wonderful. Right now there is an issue regarding integration with User Friendlist http://drupal.org/node/314195 and I think we could follow the same approach with this one. I'm right now really busy, but I will try to help alex (the mantainer of User relationships) next week with this issue.
Comments
Comment #1
frankcarey commented+1 for this... quicksketch, is there an API in place to do this for the various relationship modules or does that still need to be written?
Comment #2
cpliakas commentedThis issue may provide a solution to the problem: #597546: Code attached that forks profile_privacy to add support for onepageprofile, user relationships
Thanks,
Chris
Comment #3
coltrane@cpliakas If you would, I'd appreciate some more information on how profile_privacy and user relationships were integrated in your fork. I could start digging through the code but from the description on #597546: Code attached that forks profile_privacy to add support for onepageprofile, user relationships profile_privacy was forked in many different ways.
Comment #4
cpliakas commentedHi coltrane.
The code isn't forked too badly so you can use WinMerge or Meld to see the differences, but the major difference is as follows. Currently, the user override privacy settings are boolean, i.e. they are either public or private. I modified the schema to accept strings so that more than two privacy settings may exist, and I added a couple of hooks that allows other modules to define privacy settings and react accordingly. The forked module has a profile_privacy.api.inc file that defines the hooks, and it also has a user relationships add-on in contrib/ that implements the hooks and adds UR support. The base module was a great help for us, and I appreciate your work on it. The fork works for our specific implementation, but I think there are pieces like the hooks mentioned above that could be added back into the community version of the module. Again, it isn't forked too badly (yet too much for a patch to make sense in an issue queue) so you should be able to see the differences.
Again, thanks for your work on this module. It helped us out a ton.
~Chris
Comment #5
brunorios1 commentedsubscribing!
Comment #6
halloffame commentedWhats the progress on this? Especially for D7 version.
Comment #7
cpliakas commentedJust an FYI, this functionality has been added to my Profile Privacy fork at http://drupal.org/sandbox/cpliakas/1268060. In conversations with Ben to roll the changes back into this module.
Comment #8
cpliakas commentedMarking as a duplicate of #314195: Integrate with friends module using the Universal Relation API. The 6.x-2.x branch provides hooks that will allow any module to add access settings, and it comes with a UR integration module OOB.