[support] How do I allow viewing of certain user profile fields without allowing viewing of the user profile?

Lucas D Hedding lucashedding at gmail.com
Thu Apr 11 13:53:57 UTC 2013


Steve, I think you could do a form alter and hide the profile values. I did
that recently with the site-wide contact form. See
http://www.mtechinformationsolutions.com/blogs/lucas-hedding/simple-site-wide-contact-form
.


Lucas
MTech, LLC <http://www.mtechinformationsolutions.com>


On Thu, Apr 11, 2013 at 8:34 AM, Steve Wickham <steve at wickwoodonline.com>wrote:

> Thank's Walt, I'll check it out.
>
> But I don't really don't want the profiles viewable by anyone but the
> admins and the user themselves.  Plus, I don't want the users deciding
> which data can be public and which cannot beyond allowing there name, email
> and phone number into the public directory.
>
> All the Best,
> Steve
>
>
> On Wed, Apr 10, 2013 at 10:26 PM, Walt Daniels <wdlists at gmail.com> wrote:
>
>> Look at Profile Privacy module. It allows users to say which of their
>> profile fields are public.
>>
>>
>> On Wed, Apr 10, 2013 at 8:53 PM, Steve Wickham <steve at wickwoodonline.com>wrote:
>>
>>> Hello and I hope someone can help me.
>>>
>>> I have a situation where I need to allow 3 user profiles fields which
>>> are computed from the values of other user profile fields to be viewable by
>>> other anonymous and authenticated users.
>>>
>>> To be more specific I have the computed fields Full Name, Public Phone,
>>> and Public Email which are computed from the values of other profile fields
>>> and only have values if the user checks the user profile field called "List
>>> in Public Directory".
>>>
>>> I have the field permissions module installed which allows the setting
>>> of permissions by field, and I have set these 3 fields to be viewable
>>> by  anonymous and authenticated users.
>>>
>>> But no fields are viewable by other anonymous and authenticated
>>> users, even the non-computed fields, unless I set the general permission of
>>> "View user profiles" for those roles.
>>>
>>> Anyone have any ideas how I can get around this? I'm also posting this
>>> issue in the field permissions module issue queue, but I'm open to any
>>> solution.
>>>
>>> Thanks for any and all help in advance!
>>> Steve
>>>
>>> --
>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>
>>
>>
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130411/046d6615/attachment.html 


More information about the support mailing list