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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • let contacts manage their own details
Pages: [1]

Author Topic: let contacts manage their own details  (Read 4988 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
let contacts manage their own details
January 23, 2008, 12:31:15 am
Hello,

My goal is to let the users update their details (a selection of fields, some are kept internally).

I'm not sure where to start, I've read about "CiviCRM profiles", but if I understood properly that's only to register (haven't managed to make it work yet)


I was looking for something like on phplist: a long unique id that serves as a login/pwd (you can update your details directly if you have this key generated by the system) everytime you receive an email, you have a link to the dashboard/update page (click here to modify).

Each of these link is obviously unique for each user.

Does it make sense ? Does it exists or is something similar offered ?

Tia

Xavier



-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: let contacts manage their own details
January 23, 2008, 04:54:08 am
Can you check

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

HTH

kurund

Found this reply helpful? Support CiviCRM

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: let contacts manage their own details
January 23, 2008, 12:46:01 pm
Quote from: xavier on January 23, 2008, 12:31:15 am
My goal is to let the users update their details (a selection of fields, some are kept internally).

I'm not sure where to start, I've read about "CiviCRM profiles", but if I understood properly that's only to register (haven't managed to make it work yet)

If you want to offer this for contacts who are registered users - you can check the "Used For: [ x ] View/Edit User Account" in the Settings for the CiviCRM Profile.

However, if you want to offer this for contacts who are NOT registered users of our site, Kurund's pointer to the hash feature is  a good place to start. The setup is not documented yet - but basically you can construct an email and link using tokens (example below),  and send it via the built-in "Send Email to Contacts" OR via CiviMail if you're using that component and want to send it to a larger number of contacts. Replace "1" in the gid=1 param below with the ID of the profile you've configured for this.

Code: [Select]
Dear {contact.display_name}:
Please update your contact information by going to...
http://www.yoursite.org/drupal/civicrm/profile/edit?reset=1&gid=1&id={contact.contact_id}&{contact.checksum}
Protect your investment in CiviCRM by  becoming a Member!

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: let contacts manage their own details
January 23, 2008, 06:10:54 pm
I can get the existing contact information to show up in the form after clicking on the link in an email, but no matter how many options I select in the profile, I get the error:
Quote
This profile is not configured for the requested action
  when I save the form with changes.   Any ideas?

I'm running 1.9.11960 under Drupal.

« Last Edit: January 23, 2008, 06:15:22 pm by Denver Dave »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: let contacts manage their own details
January 24, 2008, 09:49:10 am
Generally, this error means that a valid profile ID was not included in the URL (this is the gid=X portion) OR that the profile setting doesn't include "Used For: [ x ] Profile".

If this doesn't  clarify things for you, please try and recreate the behavior your getting on the 1.9 demo.
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: let contacts manage their own details
April 15, 2008, 12:29:14 am
Quote from: Dave Greenberg on January 23, 2008, 12:46:01 pm

Code: [Select]
Dear {contact.display_name}:
Please update your contact information by going to...
http://www.yoursite.org/drupal/civicrm/profile/edit?reset=1&gid=1&id={contact.contact_id}&{contact.checksum}


Hi, I came back to it, and I suppose there is a missing
http://www.yoursite.org/drupal/civicrm/profile/edit?reset=1&gid=1&id={contact.contact_id}&NAME={contact.checksum}

What is the NAME of the param ?

Is there an easiest way to find the hash than sending an email ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: let contacts manage their own details
April 15, 2008, 01:52:53 am

1. contact.checksum is a special token, it adds the name also (cs=)

2. the hash is based on the contact hash in the db (a random generated value), a timestamp and a time-to-live value, as such it will be different everytime u call it :)

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: let contacts manage their own details
April 17, 2008, 08:23:31 pm
Hi,

Does it mean that the update link is only working during a window of time and automatically doesn't work after a while ?

What is the TTL and is there an option to change it if needed ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: let contacts manage their own details
April 17, 2008, 10:20:47 pm

yes, it currently is set for 7 days. the code is in: CRM/Contact/BAO/Contact.php, line 2120 (function generate checkSum)

This code is experimental and not used a lot (or well documented). hence the time period is not configurable in the current version.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • let contacts manage their own details

This forum was archived on 2017-11-26.