Answers.Body: <p>We've addressed this issue in v2.3 of the extension
  Two new tokens have been introduced for mass mailing and they keep the URL in tact.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-20T12:13:38.507Z
Answers.LastActivityDate: 2018-04-20T12:13:38.507Z
Answers.UserDisplayName: Parvez Saleh
Answers.Body: <p>I had a similar issue and posted here: <a href="https://github.com/veda-consulting/uk.co.vedaconsulting.gdpr/issues/50" rel="nofollow noreferrer">https://github.com/veda-consulting/uk.co.vedaconsulting.gdpr/issues/50</a></p>
  
  <p>I have not had a chance to see why the tokens were not working for me, but I can add them manually:</p>
  
  <pre><code>https://example.org/wp-civicrm-basepage/?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/update&amp;reset=1&amp;{contact.checksum}&amp;cid={contact.contact_id}
  </code></pre>
  
  <p>Replace example.org with your domain and wp-civicrm-basepage with your slug for the basepage you are using.</p>
  
  <p>Update:   Version 2.2 of the extension has fixed the issue with tokens </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-15T15:42:53.490Z
Answers.Text: Magic that worked!
Answers.UserDisplayName: John Bradford
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-15T15:35:28.010Z
Answers.LastActivityDate: 2018-04-17T17:47:13.380Z
Answers.LastEditDate: 2018-04-17T17:47:13.380Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>Wordpress 4.9.5 / CiviCRM 4.7.31 / GDPR extension 2.1</p>
  
  <p>How do I pass tokens to the GDPR communications preference page (using Veda's extension)?</p>
  
  <p>I've got the Communications Preference link working (not quite as formatted in the extension control panel, I think it's a Drupal / WP thing);</p>
  
  <p><a href="https://yoursite.org/civicrm/?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/update" rel="nofollow noreferrer">https://yoursite.org/civicrm/?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/update</a></p>
  
  <p>Which works great (when I'm logged in). However, when I visit as an anonymous user, I get a blank page. I could ask all my contacts to re-type their details in, however, the scope for errors / duplication / drop-out makes this less than ideal.</p>
  
  <p>I can format an email to send a token to update a profile but that doesn't pick up the GDPR consent date / data:</p>
  
  <p><a href="https://yoursite.org/?page=CiviCRM&amp;q=civicrm/profile/edit&amp;reset=1&amp;gid=profileID&amp;id=userID&amp;cs=checkSum" rel="nofollow noreferrer">https://yoursite.org/?page=CiviCRM&amp;q=civicrm/profile/edit&amp;reset=1&amp;gid=profileID&amp;id=userID&amp;cs=checkSum</a></p>
  
  <p>When I try and pass those tokens I get a blank form, so it's not picking up the userID and loading the relevant data from the db:</p>
  
  <p><a href="https://yoursite.org/civicrm/?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/update&amp;id=userID&amp;cs=checkSum" rel="nofollow noreferrer">https://yoursite.org/civicrm/?page=CiviCRM&amp;q=civicrm/gdpr/comms-prefs/update&amp;id=userID&amp;cs=checkSum</a></p>
  
  <p>I'm pretty sure this is possible (the built in tokens should provide this function), however, the built in tokens don't seem to generate valid links or URLs (or indeed anything).</p>
  
  <p>{contact.comm_pref_supporter_link}</p>
  
  <p>{contact.comm_pref_supporter_url}</p>
  
  <p>I can include {contact.checksum} and preview email as html and see a checksum, but the comm_pref tokens stay as {contact....}</p>
  
  <p>If someone can post a valid tokenised Communications Preference page I can probably reverse engineer something.</p>
  
  <p>So again, not sure if Drupal / WP related or some other missing dependancy?</p>
  
Tags: <wordpress><upgrade><gdpr>
Title: GDPR - updating preferences / forgetme
ThreadText: # GDPR - updating preferences / forgetme
  
  (Asked by: username_0 on 2018-04-15)
  
  Wordpress 4.9.5 / CiviCRM 4.7.31 / GDPR extension 2.1
  
  How do I pass tokens to the GDPR communications preference page (using Veda's extension)?
  
  I've got the Communications Preference link working (not quite as formatted in the extension control panel, I think it's a Drupal / WP thing);
  
  <https://yoursite.org/civicrm/?page=CiviCRM&q=civicrm/gdpr/comms-prefs/update>
  
  Which works great (when I'm logged in). However, when I visit as an anonymous user, I get a blank page. I could ask all my contacts to re-type their details in, however, the scope for errors / duplication / drop-out makes this less than ideal.
  
  I can format an email to send a token to update a profile but that doesn't pick up the GDPR consent date / data:
  
  <https://yoursite.org/?page=CiviCRM&q=civicrm/profile/edit&reset=1&gid=profileID&id=userID&cs=checkSum>
  
  When I try and pass those tokens I get a blank form, so it's not picking up the userID and loading the relevant data from the db:
  
  <https://yoursite.org/civicrm/?page=CiviCRM&q=civicrm/gdpr/comms-prefs/update&id=userID&cs=checkSum>
  
  I'm pretty sure this is possible (the built in tokens should provide this function), however, the built in tokens don't seem to generate valid links or URLs (or indeed anything).
  
  {contact.comm\_pref\_supporter\_link}
  
  {contact.comm\_pref\_supporter\_url}
  
  I can include {contact.checksum} and preview email as html and see a checksum, but the comm\_pref tokens stay as {contact....}
  
  If someone can post a valid tokenised Communications Preference page I can probably reverse engineer something.
  
  So again, not sure if Drupal / WP related or some other missing dependancy?
  
  **Tags:** wordpress, upgrade, gdpr
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-04-20. Score: 2 | Accepted answer
  
  We've addressed this issue in v2.3 of the extension
  Two new tokens have been introduced for mass mailing and they keep the URL in tact.
  
  
  ---
  
  ### Answer by username_2 on 2018-04-15. Score: 4
  
  I had a similar issue and posted here: https://github.com/veda-consulting/uk.co.vedaconsulting.gdpr/issues/50
  I have not had a chance to see why the tokens were not working for me, but I can add them manually:
  https://example.org/wp-civicrm-basepage/?page=CiviCRM&q=civicrm/gdpr/comms-prefs/update&reset=1&{contact.checksum}&cid={contact.contact_id}
  
  Replace example.org with your domain and wp-civicrm-basepage with your slug for the basepage you are using.
  Update:   Version 2.2 of the extension has fixed the issue with tokens
  
  > **Comments:**
  > **username_0**: Magic that worked!  
  
  ---
  
  