KoFuku

How can I customize the user profile screen to hide email address on WSS 3.0
I opened a site and plan to disallow users to see other's email address. By default, one can see it on user profile. It looks like /layouts/userdisp.aspx is it, but cannot figure out where to customize...


Re: SharePoint - General Question and Answers and Discussion Customize User Profile on WSS 3.0

Naveedullah Khan

Hi,

Whenever you try to access the public profile of a user, the page displayed by MOSS has a url of the form

http://mysiteapp/person.aspx accountname=domain\user

So modifying the public profile page is very simple as it is a single page shared for all users. The difference comes with the query string where MOSS provides the domain name and user id. Just use the sharepoint designer to edit the person.aspx page to get your desired results.

I hope this helps.






Re: SharePoint - General Question and Answers and Discussion Customize User Profile on WSS 3.0

KoFuku

Thank you for the reply.

I am using only WSS 3.0 and not MOSS 2007. I cannot find person.aspx file.

The page displayed has a url of the form

http://mysiteapp/_layouts/userdisp.aspx ID=xx&Source=httpxxxaspx

How can I do it with WSS 3.0

Thanks.

Ko





Re: SharePoint - General Question and Answers and Discussion Customize User Profile on WSS 3.0

Naveedullah Khan

Hi Ko,

Sorry for the late reply. Hope you would have found a solution by now. if not, have you tried modifying userdisp.aspx






Re: SharePoint - General Question and Answers and Discussion Customize User Profile on WSS 3.0

KoFuku

Hi,

No, not yet.

I can open the userdisp.aspx with Sharepoint Designer 2007, but have no idea how to hide email in the following code.

<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.UserDisplayPage" MasterPageFile="~/_layouts/application.master" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,userdisp_pagetitle%>" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<SharePointBig SmileelegateControl runat="server" id="DelctlProfileRedirection" ControlId="ProfileRedirection" Scope="Farm" />
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,userdisp_pagetitleintitle%>" EncodeMethod='HtmlEncode'/> <asp:Label id=LabelTitle runat=server />
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<SharePoint:FormComponent id="UserListForm" TemplateName="UserListForm" ControlMode="Display" runat="server"/>
</td>
</tr>
<tr><td><IMG SRC="/_layouts/images/blank.gif" width=590 height=1 alt=""></td></tr>
</table>
</asp:Content>