Answers.Body: <p>I am not sure if its a bug or indented to show url in profile search listing. I have just written a small <a href="https://github.com/pradpnayak/org.civicrm.profileimageurl" rel="nofollow noreferrer">extension</a> that converts imageurl into image.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-19T12:11:18.330Z
Answers.Text: So kind Pradeep - I will get on to this and let you know how I do. Mike
Answers.UserDisplayName: Mike Halson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-02T21:00:22.467Z
Answers.Text: Hi Pradeep - it appears the extension has stopped working. Could you possibly look into it? This is an example of an image that once again shows on the listing as a url: https://wccsa.org.uk/members/membership-details/amend-profile/?page=CiviCRM&q=civicrm%2Fcontact%2Fimagefile&photo=Karen_Sylva_1b0e8c7134a807f30446b0cd2ce4bf41.JPG
Answers.UserDisplayName: Mike Halson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-19T10:12:16.220Z
Answers.LastActivityDate: 2019-08-19T10:12:16.220Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p><a href="https://i.sstatic.net/n06wH.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/n06wH.jpg" alt="enter image description here"></a><a href="https://i.sstatic.net/B2veT.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/B2veT.jpg" alt="enter image description here"></a><a href="https://i.sstatic.net/EfRUQ.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EfRUQ.jpg" alt="enter image description here"></a>On a newly built WordPress site for a City livery company, I have created a membership list that members can opt to appear on. This is working perfectly, and the list is showing name, member type, role, email and phone number.</p>
  
  <p>However, if I include the contact image (which works on individual profiles), it just shows as a url.</p>
  
  <p>Is there a solution to this? I know the livery company members will be disappointed if they can't see member photos.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T09:36:15.560Z
Comments.Text: Are you using civicrm profile search to list the member with their images?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T09:53:30.143Z
Comments.Text: Hi Pradeep. No - the members just want to see a simple list of all fellow members, showing basic contact details and their profile photo. They are very unsophisticated users! I have attached a screenshot to the post showing the profile fields.
Comments.UserDisplayName: Mike Halson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T13:06:41.657Z
Comments.Text: I have successfully installed the extension. However, it is not fixed yet - see listing2 attachment.   I note that the urls shown for the images include the amend-profile page which is the WordPress page where the member can change their profile and save a picture.
Comments.UserDisplayName: Mike Halson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T13:09:00.950Z
Comments.Text: For example, my image is: https://wccsa.org.uk/members/membership-details/amend-profile/?page=CiviCRM&q=civicrm%2Fcontact%2Fimagefile&photo=09_04_Le_Touquet_4_d0dc0c07fe19da0c12781936a5c205b7.jpg.   If I look at my contact page in Civi, the image url is: https://wccsa.org.uk/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Ffile&reset=1&filename=09_04_Le_Touquet_4_d0dc0c07fe19da0c12781936a5c205b7.jpg&mime-type=image/jpeg
Comments.UserDisplayName: Mike Halson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T13:24:35.593Z
Comments.Text: I just pushed a minor typo. Can you try updating your extension code to reflect my new changes?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T14:13:26.913Z
Comments.Text: Almost there! Images are now appearing but there is one error message see listing3. It reads: Notice: Undefined index: field_name in /home/sites/6a/e/e4289cd3a4/public_html/wp-content/uploads/civicrm/ext/org.civicrm.profileimageurl-master/profileimageurl.php on line 153
Comments.UserDisplayName: Mike Halson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T14:56:19.680Z
Comments.Text: Just updated code to fix the notice error
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T15:09:28.663Z
Comments.Text: Fixed - thanks a million!
Comments.UserDisplayName: Mike Halson
Tags: <wordpress>
Title: Can I show contact photos in a public membership list on a WordPress site?
ThreadText: # Can I show contact photos in a public membership list on a WordPress site?
  
  (Asked by: username_0 on 2019-08-19)
  
  [![enter image description here](https://i.sstatic.net/n06wH.jpg)](https://i.sstatic.net/n06wH.jpg)[![enter image description here](https://i.sstatic.net/B2veT.jpg)](https://i.sstatic.net/B2veT.jpg)[![enter image description here](https://i.sstatic.net/EfRUQ.jpg)](https://i.sstatic.net/EfRUQ.jpg)On a newly built WordPress site for a City livery company, I have created a membership list that members can opt to appear on. This is working perfectly, and the list is showing name, member type, role, email and phone number.
  
  However, if I include the contact image (which works on individual profiles), it just shows as a url.
  
  Is there a solution to this? I know the livery company members will be disappointed if they can't see member photos.
  
  **Tags:** wordpress
  
  > **Comments:**
  > **username_1**: Are you using civicrm profile search to list the member with their images?  
  > **username_0**: Hi username_1. No - the members just want to see a simple list of all fellow members, showing basic contact details and their profile photo. They are very unsophisticated users! I have attached a screenshot to the post showing the profile fields.  
  > **username_0**: I have successfully installed the extension. However, it is not fixed yet - see listing2 attachment.   I note that the urls shown for the images include the amend-profile page which is the WordPress page where the member can change their profile and save a picture.  
  > **username_0**: For example, my image is: https://wccsa.org.uk/members/membership-details/amend-profile/?page=CiviCRM&q=civicrm%2Fcontact%2Fimagefile&photo=09_04_Le_Touquet_4_d0dc0c07fe19da0c12781936a5c205b7.jpg.   If I look at my contact page in Civi, the image url is: https://wccsa.org.uk/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Ffile&reset=1&filename=09_04_Le_Touquet_4_d0dc0c07fe19da0c12781936a5c205b7.jpg&mime-type=image/jpeg  
  > **username_1**: I just pushed a minor typo. Can you try updating your extension code to reflect my new changes?  
  > **username_0**: Almost there! Images are now appearing but there is one error message see listing3. It reads: Notice: Undefined index: field_name in /home/sites/6a/e/e4289cd3a4/public_html/wp-content/uploads/civicrm/ext/org.civicrm.profileimageurl-master/profileimageurl.php on line 153  
  > **username_1**: Just updated code to fix the notice error  
  > **username_0**: Fixed - thanks a million!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-19. Score: 2 | Accepted answer
  
  I am not sure if its a bug or indented to show url in profile search listing. I have just written a small [extension](https://github.com/pradpnayak/org.civicrm.profileimageurl) that converts imageurl into image.
  
  HTH
  
  username_1
  
  > **Comments:**
  > **username_0**: So kind username_1 - I will get on to this and let you know how I do. username_0  
  > **username_0**: Hi username_1 - it appears the extension has stopped working. Could you possibly look into it? This is an example of an image that once again shows on the listing as a url: https://wccsa.org.uk/members/membership-details/amend-profile/?page=CiviCRM&q=civicrm%2Fcontact%2Fimagefile&photo=Karen_Sylva_1b0e8c7134a807f30446b0cd2ce4bf41.JPG  
  
  ---
  
  