How can I show the Users Profile Picture on a Civicrm Form please (in joomla)?

Thanks a lot, Sri

  • Hi Sri welcome to Civicrm Stackexchange what kind of form? Do you mean a contribution page/event page or a "profile" form. – Luke Stewart Dec 17 '18 at 19:21
  • Hi Luke, a profile form or a code snippet that I can use to display the profile picture on a joomla article please. - Sri – sri Dec 18 '18 at 5:15

You can use an API to get the image URL for a contact. For eg -

$result = civicrm_api3('Contact', 'getsingle', [
  'return' => ["image_URL"],
  'id' => contact_id,

And then copy the value returned by the above API and fed it to the source of image tag in simple HTML code:-


  <img src = "$result['image_URL']" />
  • Hi Jitendra. Sorry for the late response. Thanks very much for your help. I will try this! - Sri – sri Feb 13 at 11:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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