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) »
  • Update E-Newsletter Preferences?
Pages: [1]

Author Topic: Update E-Newsletter Preferences?  (Read 910 times)

cmurrayweb

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
    • C. Murray Consulting
Update E-Newsletter Preferences?
May 14, 2010, 05:26:21 am
We have a Profile form set up where we collect: email, first name, last name, and then list out a number of opt-in email lists. This will be the page where our "Sign Up for E-News" links will point, and for first time sign-ups it looks like it will work great. Unsubscribe links in the email footers will let people get off the lists no problem.

We are struggling however with a scenario when a user originally signed up for just one list and then wants to come back to sign up for more lists:

- By default, the profile form will give them a "you are already in the system" message if they try to fill the profile form out again.
- If we enable Update Contact on Duplicate Match we have a scenario where someone could enter any email address in the form and overwrite an existing contact's name.
- We thought of having a link in the emails to /civicrm/mailing/subscribe but there does not seem to be a way to pre-populate the info via URL like you can with Profile forms.

Ideally, we would like to have a link in the email that says "Update E-Newsletter Preferences" where we link (with a token like &id={contact.contact_id}&{contact.checksum} work with the profile forms) a user to a page where:

1. Their info and subscriptions are pre-populated in the form
2. It lets them add new subscriptions
3. It lets them unsubscribe from mailings to (though we can live without this)

Any ideas or guidance would be much appreciated!


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: Update E-Newsletter Preferences?
May 14, 2010, 07:52:06 am

did u check

http://drupal.demo.civicrm.org/civicrm/user?reset=1

That might be a good starting point. U'll need to add checksum support for it, which you can "copy" from the profile code

ping us on IRC if you need any help

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

cmurrayweb

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
    • C. Murray Consulting
Re: Update E-Newsletter Preferences?
May 14, 2010, 08:06:01 am
Bingo. Thank you. For others interested in this, the following URL pasted into your email template will bring users to a screen that does just what we're looking for:

http://www.YOURDOMAIN.org/civicrm/user?reset=1&id={contact.contact_id}&{contact.checksum}

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Update E-Newsletter Preferences?
May 14, 2010, 08:34:36 pm
this is what i'm looking for as well but for some reason it doesnt work for an anonymous user. I played with permissions but still can't get it to work. Can someone help me out on how to get it to work properly?

Thanks in advance!

Fr. Tommy

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Update E-Newsletter Preferences?

This forum was archived on 2017-11-26.