Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
We start having the same need for both the profile/donation and event registration at least, looks like something to be put in a common class ?
In the past for various client projects, we've written a "drupal dashboard" module that directs them to various places based on what they have done / need to do.
Lobo - want to share more about this Drupal dashboard - does it allow people to move across a series of Profiles without having to reenter their details, or log in?
Now that we can send people to a profile with a checksum to log them in, our next question is how to do the same with contribute pages.
... and here's the patch for a clean 2.0.5 installation.
@@ -1053,7 +1051,12 @@ $data = CRM_Utils_Token::getContactTokenReplacement($token, $contact); } else if ( $type == 'action' ) { $data = CRM_Utils_Token::getActionTokenReplacement($token, $verp, $urls, $html);- } + } else if ( empty( $type ) ) {+ $from = '{contact.checksum}' ;+ $cs = CRM_Contact_BAO_Contact::generateChecksum( $contact['contact_id'] );+ $value = "id={$contact['contact_id']}&cs={$cs}";+ $data = str_replace( $from, $value, $data ) ;+ } return $data; }
Originally posted here http://forum.civicrm.org/index.php/topic,4620.msg20154.html#msg20154Firstly, with Track Click Throughs on we end up with the same problem as here, namely that the URL provided for the profile gets preceded with that sort of address so we gethttp://(our.web.site.address)/sites/all/modules/civicrm/extern/href=%22http://(our.web.site.address)/civicrm/profile/edit?reset=1&gid=1&cs=82040e6e5e0ed56201080d2e6e66a9da_1220440559_168
the token is: contact.checksum and has a life of 7 days since it was generatedIts not documented very well, and hence u've not heard of it lobo