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 CiviMail (Moderator: Piotr Szotkowski) »
  • Opt-in in stead of opt-out (new law in our country)
Pages: [1]

Author Topic: Opt-in in stead of opt-out (new law in our country)  (Read 2425 times)

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Opt-in in stead of opt-out (new law in our country)
October 15, 2009, 03:35:36 pm
Hi there,

In our country it is (as of okt. 2009) law that customers should first opt-in for a newsletter. It is NOT permitted that they first get the newsletter and than opt-out.
So I'm trying to set this up in civi, but encounter some problems:

I'm going to send my customers a opt-in email. In this email I would like them to klik a link to sign-up and lead them to a civi/joomla profile page where they can complement there profile and confirm signup to newsletter. (opt-in)

1. Is there a opt-in function available in civi
2. users are not registered in Joomla and only have an email address in civi.
3. can they "semi-anonymus" edit there profile page and opt-in for a newsletter, or need they two steps. (opt-in and edit profile)

paragraph from civi wiki: http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles
Code: [Select]
Allow Anonymous (not-logged-in) Users to Edit Their Profile

A great feature is to "invite" your non-logged in users the ability to view and edit their contact info via a profile using CiviMail.
To do this, insert the following link with appropriate tokens as shown into a CiviMail message:
http://<site root>/civicrm/profile/edit?reset=1&gid=N&id={contact.contact_id}&{contact.checksum}
... where N is the ID of the Profile you want them to use for editing. The contact checksum token generates a special link
that gives a user access to edit their information in that profile for 7 days from the day you send them the mailing.

This sounds good, but it doesn't work. after hitting the link in the invitation email, I'm asked to login the backend. It seem that the url is formatted oké

http://www.mysite.com/administrator/index2.php?option=com_civicrm&task=civicrm/profile/edit&reset=1&gid=1&id=99&cs=30f678e574234ad9ecd53a45fc93a7d2_1255644699_168


Who can help me?


Edwin
« Last Edit: October 15, 2009, 03:38:08 pm by airwaves »

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: Opt-in in stead of opt-out (new law in our country)
October 15, 2009, 03:52:52 pm

that was a bug and it is now fixed. it will be part of 3.0.2 (out in 2-3 weeks)

check: http://issues.civicrm.org/jira/browse/CRM-5228?page=com.atlassian.jira.ext.fisheye%3Afisheye-issuepanel

You can also apply a patch from the above links

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

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Re: Opt-in in stead of opt-out (new law in our country)
October 15, 2009, 04:23:32 pm
Thank Lobo,

I'll install the patch.

Do you know if there a way to opt in for a newsletter?
(in combo with profile edit) usefull for first time contact with member?

Edwin

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Opt-in in stead of opt-out (new law in our country)
October 15, 2009, 05:12:46 pm
If you add the "Group(s)" field to a Profile - any group w/ type = "Mailing List" and Visibility="Public Pages" will appear as a checkbox. (Profile must also include an Email field). When the user checks a  group and submits - this is an "opt-in" to the Group. A confirmation request email ("double opt in") will be sent to the user.
Protect your investment in CiviCRM by  becoming a Member!

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Re: Opt-in in stead of opt-out (new law in our country)
October 16, 2009, 12:59:21 am
Thanks,

I will have a go and get back to you.


Edwin

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Re: Opt-in in stead of opt-out (new law in our country)
October 18, 2009, 12:19:13 pm
It's working now, but the double "opt-in" seems a little bit to much. First sign-up on website, than 2nd sign-up via email.
Is there a way to skip the second one?

I read somewhere that the email "authorisation" is only 7 day's active Is this adjustable?


Edwin

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: Opt-in in stead of opt-out (new law in our country)
October 18, 2009, 02:42:20 pm

1. check: http://issues.civicrm.org/jira/browse/CRM-4153 to disable the double opt in process

2. You'll have to make this adjustment in the code, check:CRM/Contact/BAO/Contact/Utils.php, line 118 or so

Code: [Select]
        if ( ! $live ) {
            $live = 24 * 7;
        }

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

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Re: Opt-in in stead of opt-out (new law in our country)
October 19, 2009, 01:56:54 am
Hi Lobo,

Option 1 doesn't work. I still get the confirmation email after online nieuwsletter sign-up.

I can imagine if someone opt-out or opt-in from their personal profile page, a confirmation email is nice, but for first-time opt-in. It's just one bumb to much.

Edwin

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: Opt-in in stead of opt-out (new law in our country)
October 19, 2009, 08:19:42 am

you might want to debug the code at: CRM/Profile/Form.php. search for profileDoubleOptIn

we had some otehr user test it earlier during the week quite successfully

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

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Re: Opt-in in stead of opt-out (new law in our country)
October 21, 2009, 08:40:19 am
My knowledge stops there. PHP is spanish for me.

I do have an other issue. When users get the newsletter opt-in email and the link takes them to the J. site, they have the option to opt-in and save. But is they press cancel, They get an error.

"Could not find valid value for gid"

I even put in the profile a cancel URL, but that doesn't seems to work.
I guess it has to do with public rights when canceling, but it shouldn't appear.


Any guess?
« Last Edit: October 21, 2009, 10:59:06 am by airwaves »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Opt-in in stead of opt-out (new law in our country)

This forum was archived on 2017-11-26.