CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Keeping some profile fields private in membership directory
Pages: [1]

Author Topic: Keeping some profile fields private in membership directory  (Read 1248 times)

syoumans

  • Guest
Keeping some profile fields private in membership directory
May 29, 2007, 05:58:45 am
We have a membership directory that displays only to logged-in members. We also let users decide how much of their information is published in the directory (we also print the directory annually and send it to members). We'd like to make it so that members can decide which of their profile fields appear in the online member directory.

We were able to achieve this by modifying core: we created a copy of CRM/Profile/Pages/Dynamic.php (OurDynamic.php) that handles the logic of showing/hiding the field values based on a custom data field. We then changed CRM/Profile/Pages/View.php to use the class in OurDynamic.php for displaying profile fields. We also modified drupal/civicrm.module to also use the OurDynamic class for displaying profiles (at line 520 & 534).

I'd like to be able to di this without changing core. Is there a module out there that I'm missing that provides this functionality?

Thanks, Scott

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Keeping some profile fields private in membership directory
May 29, 2007, 01:43:21 pm
Scott - I don't think there's (yet) a ready-to-roll complete solution for what you're trying to do (although it is clearly a valid and useful requirement). :-(

There are some pieces in place that you should look at - and then consider working with us to extend core to completely handle this requirement...

* You can assign a Visibility level to each field in a Profile. If you assign "User and Admin Only" - then that field is basically "private". Only the user themselves OR a CiviCRM Admin permissioned user can see those fields when viewing that Profile. This handles your requirements decently on the viewing side - but there's no mechanism to allow end-users to set / store a "personalized" visibility level for each field.

* You can use CiviCRM Access Control to set permissioning on Custom Field Groups.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Keeping some profile fields private in membership directory

This forum was archived on 2017-11-26.