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 CiviEvent (Moderator: Yashodha Chaku) »
  • Is there a way to stop "tell-a-friend" from writing to the db?
Pages: [1]

Author Topic: Is there a way to stop "tell-a-friend" from writing to the db?  (Read 903 times)

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Is there a way to stop "tell-a-friend" from writing to the db?
August 24, 2009, 01:26:59 pm
My client likes tell-a-friend, but absolutely does not want the data written to the db? Is there a way to turn that part of the feature off? Ideas of how to deal with this?

Thanks,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

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: Is there a way to stop "tell-a-friend" from writing to the db?
August 24, 2009, 01:38:46 pm

u'll need to hack the code at: CRM/Friend/Form.php, function postProcess

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

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: Is there a way to stop "tell-a-friend" from writing to the db?
August 24, 2009, 01:49:56 pm
Is it possible to create a group of contacts who were all added via the tell-a-friend feature?
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

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: Is there a way to stop "tell-a-friend" from writing to the db?
August 24, 2009, 01:58:36 pm

We store the "tell a friend" between the two contacts as an activity of type "tell a friend"

you will need to modify the activity search to give you all target contact ids for a specific activity type, which will give you all the contacts that were ever contacted via a TAF form

http://drupal.demo.civicrm.org/civicrm/contact/search/custom?csid=8&reset=1

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

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: Is there a way to stop "tell-a-friend" from writing to the db?
August 24, 2009, 02:03:51 pm
Lobo,

Thanks,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Is there a way to stop "tell-a-friend" from writing to the db?

This forum was archived on 2017-11-26.