Reputation: 499
I have a MOSS 2007 site. I want to display the display image (or avatar, whatever you call it) of the current user.
Thanks.
P.S. By display image, i'm talking about the image which is uploaded to MySite by the user.
Upvotes: 1
Views: 3311
Reputation: 9127
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"/>
Upvotes: 6