How can I preset the CCK field privacy to "Buddies"

paul_constantine - February 9, 2009 - 07:26
Project:CCK Field Privacy
Version:5.x-1.3
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:obsidiandesign
Status:active
Description

Hello, I was wondering if there is a way to pre-select the privacy level of this module so that users can enter their data and later decide who to show it to.

Right now you enter your data and then have to hide it. I would like to turn this around.

I would prefer to have the user data hidden right from the start and have the user decide later on who to show it to by opening up certain fields to buddies or to all.

Appart from that I also have the double padlocks on all the link fields (the ones that came from the bio module).

Best wishes, Paul.

#1

paul_constantine - March 17, 2009 - 10:58
Title:Field Privacy preset to "private"» How can I preset the CCK field privacy to "Buddies"

Since no one answered my last question maybe I need to rephrase it.

Is there a way to pre-set the field privacy to "Buddies" or "Nobody"?

I noticed that there is something about a default setting in the code:

// set default radio checked on load
var e = $(this);
e.attr('checked', field_state == e.val()? 'checked' : '');
}).change((function(field_name) { return function() {

Would the fields be set to "buddies" if I change the code like this:

// set default radio checked on load
var e = $(this);
e.attr('checked', field_state == e.val()? 'checked' : 'Buddies');
}).change((function(field_name) { return function() {

And would that setting also apply to the level of field privacy or would it just be a preset radio buttom with no real impact on the level of privacy?

Regards. Paul.

#2

obsidiandesign - March 17, 2009 - 21:05
Assigned to:Anonymous» obsidiandesign

Paul,

Sorry, I thought I responded to your earlier post. Currently, it's not possible to do what you're looking for. CCK Field Privacy is a module meant to allow the user to restrict access to specific fields, so they have to set them one by one. The code you listed above is to set the default setting on the user form; it does nothing for default access restrictions.

There's not a plan at this time to include such a feature (it would require either moving the module in a totally different direction, or setting up the ability to switch modes), however I would be open to any patches that would start the process of adding such features.

Thanks,
Bryan O'Shea
Obsidian Design

 
 

Drupal is a registered trademark of Dries Buytaert.