How to get current user display image in Sharepoint?
I h开发者_Python百科ave a MOSS 2007 site. I want to display the display image (or avatar, whatever you call it) of the current user.
- Is it possible without writing a new web part? I don't have any MOSS 2007 installed computer that i can reach, so i can't develop web parts for Sharepointç (Or at at least i think)
Thanks.
P.S. By display image, i'm talking about the image which is uploaded to MySite by the user.
You have the info in the /SharedServicesPath/Person.aspx file, we usually do this:
Top of the page:
<%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
At the actual image spot:
<SPSWC:ProfilePropertyLoader runat="server" />
<SPSWC:ProfilePropertyImage PropertyName="PictureUrl" ResizeToFit="100" ShowPlaceholder="true" id="PictureUrlImage" runat="server"/>
精彩评论