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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contacts who wish to be anonymous
Pages: [1]

Author Topic: Contacts who wish to be anonymous  (Read 1512 times)

dalin

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 8
  • CiviCRM version: many
  • CMS version: Drupal 6
  • MySQL version: 5.0
  • PHP version: 5.2
Contacts who wish to be anonymous
May 08, 2008, 08:34:21 pm
Note that I'm not talking about an non-logged in CMS user here.  I'm talking about a contact who wishes their name to be hidden on all public facing documents.  Similarly our client is looking for the ability to mark single contributions as being anonymous. 

My first thought was to have custom fields for both contacts and contributions to mark them as anon.  I could then tie into hook_civicrm_pre where $op == 'view' to hide the name.  However I don't think this op has yet been implemented anywhere in the codebase. 

Further, this functionality is probably useful to the community at large, so I thought that building this into core may be the way to go. 

It does become tricky about how and where you hide contact details.  I'm not sure that it would be feasible to hide things anywhere within civicrm.  Perhaps only on the drupal side, and contribution and contact exports would need to include the fields.  So then it's basically little more than another field. 

Any thoughts? 
--
Dave Hansen-Lange
Web Developer
Advomatic LLC
http://advomatic.com
Hong Kong office

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contacts who wish to be anonymous
May 09, 2008, 01:21:07 am

you might want to define a public facing document more specifically. We consider online contrib / online event reg and profile pages to be public facing. If so, this reduces the problem to profile being able to not display certain information at the view / listings level. however, there are other issues since you need to suppress this field during profile search also

overall, this problem seems to be a bit more complicated than at first glance. Restricting the definition of public facing and/or getting the client to smaller definition of the anonymous issue might make the problem a bit easier

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: Contacts who wish to be anonymous
May 10, 2008, 11:51:41 am
I'm also interested in this feature.

Any overlap/difference with the existing 'Do Not Share' checkbox should also be clearly defined. I expect many would NOT want these to be the same.

Any progress on identifying where in the codebase changes would need to be made?

I am OK with defining 'public facing (listing) pages) as 'profile listings & event participant listings.'

Also, this should optionally be set for all data OR per Location. E.g., maybe I'm OK with my office phone being listed, but not my home phone.

(FYI, My current work around for this is to create a custom field group with 'Public Information' and using ACL to expose only these.)
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contacts who wish to be anonymous

This forum was archived on 2017-11-26.