4

I have a question about what the best way to set something up. I am using Drupal 7 and CiviCRM 4.6.

I have a contribution page, where I want to add people to a newsletter group when they make a donation. I know that there are urls in emails that go out that allow someone to come back and remove themselves from groups, but I would also like to have these users be able to find and edit their profile, see previous donations, etc.

Is there a way to do this just in CiviCRM? Do I have to create Drupal Users? I am currently trying to do everything with CiviCRM profiles, but would it be better to use Drupal webforms? What is your experience and what do you recommend as best practices?

Thanks in advance.

2
  • The title/subject of this question isn't very helpful and doesn't be much relationship to the information that is actually being sought. Perhaps you might consider editing the question so that it is clearer what the question is about form the subject line?
    – Graham
    Apr 14, 2015 at 13:39
  • I wrote the question that way because it is a question about what is best practice, and it concerns setting up contribution pages, using profiles and signing up for newsletters. I searched extensively for an answer before I posted a question and if something had been written like this, I would have found the question.
    – Jon
    Apr 14, 2015 at 14:16

1 Answer 1

5

You can do this by including a checksum link in your emails that returns the user to their contact dashboard and allow them to edit it.

You can also use a checksum link to a profile to let them update things.

it'd be something like the following

http://mydomain.org/civicrm/user?reset=1&cid={contact.contact_id}&{contact.checksum}
4
  • thanks @frTommy, if the user just navigates to the site and I provide a button somewhere that says "Edit Profile", how would I identify what their contact_id would be... or is that just a variable that smarty would make available to me?
    – Jon
    Apr 14, 2015 at 4:24
  • This link seems to take me where I want to go: /civicrm/user?reset=1&cid={$contact_id}
    – Jon
    Apr 14, 2015 at 4:31
  • 1
    It seems I don't have enough reputation and can't edit anything yet... obviously I need to add the checksum or any user could pull any other users data by changing the contact id to another number.
    – Jon
    Apr 14, 2015 at 14:20
  • That's right. You need the checksum.
    – frTommy
    Apr 14, 2015 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.