Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
HI
Thanks of the alternative, I just installed your module and find there is only option to select privacy for friends. but I Hope User Relationships is not only for Friends. how can I enable the privacy for all of the defined relationships?
Thanks
Vinoth
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedI guess the mini-module shipped in this package that integrates CCK Private Fields with User Relationships needs a settings panel from where to choose which relationship types mean both users are *friends*.
I'm not using UR myself, and I just implemented this quickly. Any suggestion on where to look?
PS: The module still works, so this is not critical.
Comment #2
vinoth.3v CreditAttribution: vinoth.3v commentedsee, I have defined 5 relationships between users,
but it displays "Private - visible to you and your friends." only, other two are, public & Hidden,
Please let me know from where I can enable privacy for other relationships?
PS: I am getting "Error: $dialogContainer.dialog is not a function
Source File: sites/all/modules/cck_private_fields/js/privacy_status_dialog.js?G Line: 148
" too
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedDo you think if the text "Private - visible to you and your friends." was changed would work for your use-case? ...or is it that you need to chosse which relationships mean friendship between users?
PS: It looks like jQuery UI is not present, or... please, open a separate issue for that.
Comment #4
RicardoJBarrios CreditAttribution: RicardoJBarrios commented+1
Same here.
I have different relation types, and I'm now using "UR-Field Permissions" because it let me select permissions to each relation.
Comment #5
vinoth.3v CreditAttribution: vinoth.3v commentedHI
Please refer the issue #377950: Integration of CCK_field_privacy with user_relationship_module for the clear understanding.
"Private - visible to you and your friends."
We can let users to select all the defined relation types along with the private option.
Thanks & Regards
Vinoth
Comment #6
markus_petrux CreditAttribution: markus_petrux commentedWell, I've been looking at UR API and I believe I see how this could be implemented. The following would affect cck_private_fields_user_relationships submodule:
1) Implement hook_form_alter() to extend the CCK Private Fields section in CCK field settings form to allow site administrators choose which relationship types can be used to grant access to view this field when Private option is selected.
2) When this new option is selected, then we use it to append a condition to the query performed against UR (using function user_relationships_load) to know how many relations exist between node owner and user trying to view the node.
PS: I'm changing the status of this issue into a feature request. The module works. It is just it does not allow you to choose relationships, which might be a problem only when you use more relationships that do not mean *friendship*, so this is not strictly a bug, but the need to extend the current functionality.
Comment #7
markus_petrux CreditAttribution: markus_petrux commentedWell, I have committed this feature to CVS:
http://drupal.org/cvs?commit=259972
It works as described in #6. Please, let me know how it works. I have only browsed UR code and tried to guess how it works. I haven't tested the feature at all. lol
PS: If you already had the "User Relationships integration with CCK Private Fields" module installed, then please run update.php. The weight of the module needs to be changed so that this module executes after CCK Private Fields itself.
[EDIT] BTW, this feature should be available in the next development snapshot. Please, report any issues that you may find. Thanks.
Comment #8
vinoth.3v CreditAttribution: vinoth.3v commentedHI
Thanks for the update. let me upgrade and let you know.
Thanks a lot.
Comment #10
RicardoJBarrios CreditAttribution: RicardoJBarrios commentedOnly a question.
I've installed last dev, and when I edit a CCK field I can select the relationships types I want to select as "friend", but it doesn't let me choose one when I edit the field in the node.
Is this the correct behavior?
Comment #11
markus_petrux CreditAttribution: markus_petrux commentedYes. The ability to choose a particular user relationship on node edit is not implemented.
Comment #12
RicardoJBarrios CreditAttribution: RicardoJBarrios commentedOk, tanks :)