frbry
frbry

Reputation: 499

How to get current user display image in Sharepoint?

I have a MOSS 2007 site. I want to display the display image (or avatar, whatever you call it) of the current user.

  1. 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.

Upvotes: 1

Views: 3311

Answers (1)

Francisco Aquino
Francisco Aquino

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

Related Questions