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 Profiles (Moderator: Dave Greenberg) »
  • Double opt-in on a per-profile basis
Pages: [1]

Author Topic: Double opt-in on a per-profile basis  (Read 1989 times)

robertjd

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Double opt-in on a per-profile basis
October 14, 2009, 07:05:30 am
I'd like to resurrect the topic of being able to override the double-opt in requirement that was discussed here:

http://forum.civicrm.org/index.php?topic=6650.0

The solution that was given is to override a define in civicrm.settings.php, as described here:

http://issues.civicrm.org/jira/browse/CRM-4153

But what if I would like to use the double opt-in feature on one profile, but not another?  Is there a workaround?  My situation is this:

Some visitors to my site may join a mailing list, via a profile which exposes an e-mail address field.  I want that profile to utilize the double opt-in feature.

However, I have other profiles exposing custom data that a visitor will enter if they are signing up to be a member of the site (creating a drupal user account).  I don't want to utilize double opt-in for those profiles, otherwise I would have to include the e-mail address in every profile (the member signup page exposes several profiles).

Thank you,
Robert

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: Double opt-in on a per-profile basis
October 14, 2009, 08:36:54 am

the double optin stuff is only relevant if you are adding users to a CiviCRM group

if you are just collecting information, but not adding them to a group, then that setting is immaterial

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

robertjd

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Double opt-in on a per-profile basis
October 14, 2009, 11:27:08 am
Yes, on the user registration page I am allowing the user to become part of the mailing list groups.  But because Drupal is already providing the entry of the e-mail address, I don't need it in the exposed profile.

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: Double opt-in on a per-profile basis
October 14, 2009, 08:38:01 pm

You'll need to add the "selective" double optin to the system now. Currently it is all or nothing

Do chat with us on IRC if you can write and contribte code to make this happen. You will need to change the profile db schema (civicrm_uf_group) and add this boolean to make this happen

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Double opt-in on a per-profile basis
October 14, 2009, 10:50:08 pm
Pretty sure that we suppress Email address fields which are part of a Profile WHEN that profile is embedded in Drupal User Registration flow. Not sure whether we send out the confirmation (double-opt-in) request in that case - altho IMO it's a bug if we don't.
Protect your investment in CiviCRM by  becoming a Member!

robertjd

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Double opt-in on a per-profile basis
October 15, 2009, 07:16:09 am
Dave, you are correct.  The e-mail field is suppressed on the Drupal registration page.  I had not thought to try this configuration, thanks.

The e-mail field will show up when the user views the profile under their user edit page in Drupal.  Is that behavior expected?  Either way we don't want it, so I'm going to continue with the CIVICRM_PROFILE_DOUBLE_OPTIN override.

Lobo, I will definitely hop on IRC if we find the time to work on adding this functionality.  I'll need some help finding the right place to start.

Cheers,
Robert

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Double opt-in on a per-profile basis

This forum was archived on 2017-11-26.