locked
Picture not showing in contact person webpart... RRS feed

  • Question

  • Got all the user pictures on a seperate Mysite webapp in a photo library- anonymous are granted to this ... on various sites on another webapp I've inserted the contact person webpart... nearly all functions perfect...but one person doesn't get her picture shown...and the picture are there - on her mysite and all - but not in the contact person webpart...... I've checked that the checkbox - "show picture" are set.. also tried to insert a new webpart.. 

    can anyone tell me what could be wrong?  

    Wednesday, October 26, 2011 8:16 AM

Answers

  • OK - so you swapped out the picture with one that works for someone else and still no luck?  Could you try the opposite?  Set her picture to another persons profile.  Will probably work but best to just be thorough and test it out.

    Are you familiar with IE Explorer Developer Toolbar?  If you explore the DOM using that perhaps you will see differences between the two web parts.

    Is there a possibly a comma somwhere in her profile information that is cause something to break?

    If none of that works, the next step may be to look at her profile values using PowerShell to make sure the "show picture" value is really set properly.

     


    Paul Olenick SharePoint/FAST Architect , MCTS http://olenicksharepoint.wordpress.com/
    • Marked as answer by JmATK Friday, November 4, 2011 9:46 AM
    Thursday, October 27, 2011 10:33 PM

All replies

  • Are the dimensions and file type of the image that is not displaying the same as the others that work? 

    Could you temporarily associate one of the images that works for someone else with her profile?


    Paul Olenick SharePoint/FAST Architect , MCTS http://olenicksharepoint.wordpress.com/
    Thursday, October 27, 2011 3:41 AM
  • replaced the picture ...created a new page and inserted a new contact person webpart...  without any luck... !

    This is really wierd !!

    On the webpage there are 2 contact persons webpart inserted - only one works correct... 

    rightclicking the url to the one that works:  

    http://mysite/User%20Photos/userpic1.jpg - works 

    the one that doesn't work - but going to the persons mysite the picture has this URL:

    http://mysite/User%20Photos/userpic2.jpg 

    so the pictures are there... 

     

     

    Thursday, October 27, 2011 7:19 AM
  • OK - so you swapped out the picture with one that works for someone else and still no luck?  Could you try the opposite?  Set her picture to another persons profile.  Will probably work but best to just be thorough and test it out.

    Are you familiar with IE Explorer Developer Toolbar?  If you explore the DOM using that perhaps you will see differences between the two web parts.

    Is there a possibly a comma somwhere in her profile information that is cause something to break?

    If none of that works, the next step may be to look at her profile values using PowerShell to make sure the "show picture" value is really set properly.

     


    Paul Olenick SharePoint/FAST Architect , MCTS http://olenicksharepoint.wordpress.com/
    • Marked as answer by JmATK Friday, November 4, 2011 9:46 AM
    Thursday, October 27, 2011 10:33 PM
  • There's other users pictures that has the same problem... 

    Hmm... I've set anonymous access to the picture list at the mysite...  

    maybe there's missing something on the list there.. but then again why are 1 of 3 showing... 

     

    show picture value - where is this with powershell ?? 

    Friday, October 28, 2011 10:18 AM
  • Oh - you're seeing this with multiple users now?

    When you look at their User Profiles in Central Administration (Central Admin->User Profile Service App->Manage User Profiles) on the row describing the "Picture" property, does the column "Show To" say "Everyone"?  If so, does it say that for both the users whose pictures are appearing and those for which the picture does not render?


    Paul Olenick SharePoint/FAST Architect , MCTS http://olenicksharepoint.wordpress.com/
    Monday, October 31, 2011 1:26 AM
  • Hi Poul

    yes the "everyone" are set... on both that doesn't work....

    The one picture that works properties:

    • Name: username1.jpg
    • Adress: http://mysite/employees/username1.jpg
    • Size: 22933 bytes 
    • Dimensions: 91 x 96 pixel  

    The 2 (so far identified) that doesn't work has same 

    First one:

    • Name: username2.jpg
    • Adress: http://mysite/employees/username2.jpg
    • Size: 5239 bytes 
    • Dimensions: 96 x 114 pixel  

    Second one:

    • Name: username3.jpg
    • Adress: http://mysite/employees/username3.jpg
    • Size: 15149 bytes 
    • Dimensions: 91 x 96 pixel  

     The only difference are the size... and again all works on their mysites... 

    • Edited by JmATK Monday, October 31, 2011 9:24 AM
    Monday, October 31, 2011 7:20 AM
  • Which account from the portal needs access to the photo list? 

    right now these have rights: 

     

    • Domain\all_users - Read   
    • MySiteHost-Owner- Full control  
    • MySiteHost-Visitors - Read   
    • MySiteHost-Members - Contribute 
    • NT AUTHORITY\authenticated users - Read 
    • SVCSpSearch - Read
    • SystemAccount (SHAREPOINT\system) - Read

     

    When I go to http://mysite/default.aspx - there's no pictures under colleagues - but when I click a name and go to the persons mysite the pictures shows...  


    • Edited by JmATK Tuesday, November 1, 2011 1:07 PM
    Tuesday, November 1, 2011 12:56 PM
  • hi, I am also having similar type of problem anyone can answer please, On the webpage in a particular list some users photos are appearing but some others not - when i right clicking the Photo ->Properties it goes to wrong URL: http://mysite.rocketsoftware.com/User%2520Photos/Profile%2520Pictures/asimonelli_MThumb.jpg?t=63516722892 - if i browse this URL in a separate tab photo does not come if i browse the below URL(modified url) I am getting correct image: http://mysite.rocketsoftware.com/User%20Photos/Profile%20Pictures/asimonelli_MThumb.jpg?t=63516722892 Then how can i resolve this(How can i set correct URL for images), please help me.
    Tuesday, October 22, 2013 7:48 AM
  • HI All,

    Please find the answer below:

    Place a content editor web part on home page and place the below script in that web part then save . Finally we will get pictures.

    <script src="/_layouts/Scripts/jquery-1.3.1.min.js" type="text/javascript">

    </script>

     

    <script type="text/javascript">

    $(document).ready(function () {

    var imgelem = document.getElementsByTagName('img');

    for (var i = 0; i < imgelem.length; i++) {

    if (imgelem[i].src.indexOf("/User%2520Photos/Profile%2520Pictures/") != -1) {

    var imgsrc = imgelem[i].src;

    imgelem[i].src = imgelem[i].src.replace("/User%2520Photos/Profile%2520Pictures/", "/User%20Photos/Profile%20Pictures/");

    }

    }

     

    });

    </script>

    Thanks & Regards,

    Srinivasa ReddyMadhira

    Tuesday, October 22, 2013 7:49 AM