Adding Users Photo to Welcome Text in SharePoint 2010

IOTAP’s Sharepoint branding team has helped several customers with applying corporate branding to their Sharepoint sites. Recently during one such Sharepoint 2010 branding exercise, to induce some personalization touch to the intranet we decided to display the user’s photo before the welcome text.

After tinkering with the Sharepoint 2010 master page controls a bit we were able to find a solution for displaying the user’s photo.

Default Sharepoint 2010 page:

display_user_image3_thumb_1

Sharepoint 2010 page after applying the user photo:

display_user_image4_thumb_1

Below are the steps for adding users photo before the welcome text

STEP 1: Add the following Register tag at the top of the master page (before the doctype element)

<%@ Register Tagprefix=”SPSWC” Namespace=”Microsoft.SharePoint.Portal.WebControls” Assembly=”Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

STEP 2: Search for”s4-trc-container-menu” and add the following control (before welcome control)

<SPSWC:ProfilePropertyImage PropertyName=”PictureUrl” style=”float: left; height: 20px;” ShowPlaceholder=”true” id=”PictureUrlImage” runat=”server”/>

The picture display setting can also be toggled by changing the ShowPlaceholder setting “true” to “false”

To know more about IOTAP’s Sharepoint branding services visit https://www.iotap.com/solutions/microsoft-sharepoint