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 Drupal Modules (Moderator: Donald Lobo) »
  • Insert cid in link
Pages: [1]

Author Topic: Insert cid in link  (Read 1068 times)

mikem

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: 7.X
Insert cid in link
March 14, 2014, 08:41:24 am
Here is a pretty simple question. I am trying to embed a link that will push a person to edit their password. What code do i need to add below to get the link to pull the correct Contact id number and put it into the url?

 <p><a href="https://www.mysite.org/user/[contact_id]/edit">Click here to change your password (Click the &quot;Edit&quot; button after selecting link)</a></p>

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Insert cid in link
March 14, 2014, 02:11:57 pm
mike - i think you are asking about the User ID (drupal) not the Contact ID (civiCRM)

where are you wanting this link - in an email, or just on your site? If they are already logged in then there are various recipes for this using php in templates and stuff but you might find it easier with https://drupal.org/project/me
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Insert cid in link

This forum was archived on 2017-11-26.