Implementing profile changing
The change profile Web page allows a user to view and modify personal information which the can then resubmit.
You typically implement a change profile Web page in several places:
- Somewhere on your Web site add a "Change your information" link which directs users to a page where they can update their profile information.
- Include a link to this Web page in all e-mail messages that Audience Manager sends to the user.
A visitor or e-mail recipient can use this link to reach the login screen for changing their profile. The visitor or e-mail recipient then fills in an e-mail address and password and submits this information to see a form for changing profile information. The following is an example of the changeprofile page:
Implement or customize a change profile page as follows:
- For ASP.NET Web sites—modify or customize the
changeprofile.aspxand thechangeprofile.aspx.cspages and deploy them on your Web site - For JSP Web sites—modify or customize the changeprofile.jsp page and deploy it on your Web site
Add code to your Page Templates to insert subscription links in E-mails using one of the following frameworks (see details below):
- Modular Templating Framework
- VBScript Templating Framework
Modular Templating Framework
Create a link in an e-mail to a change profile page as follows:
- Add a
OutboundEmail_ChangeProfileURLmethod to the Dreamweaver Template, used in your Page Template Building Block, to create a link to the Web page in which a new subscriber confirms their subscription. For example:<a href="@@OutboundEmail_ChangeProfileURL@@">Click Here to change your profile</a> - Define a query string in the Unsubscribe Query String parameter, in the PreProcessing Template Building Block, to define a query string to add to the Unsubscription URL. The Change profile page URL is the URL of the Web page in which a subscriber can change their personal information and is defined in a Publication's Audience Management tab.
VBScript Templating Framework
Create a link in an e-mail to a change profile page using the following VBScript function in the E-mail Page Template which retrieves the URL that this link should point to:
OutboundEmail.GetChangeProfileURL()
The function returns the URL of the changeprofile page. For example:
Do you want to change your personal profile?
Click <a href='[% WriteOut OutboundEmail.GetChangeProfileURL() %]'>here</a>
This function has one optional parameter:
Optional ByVal customQueryStringParameterValue As String = ""
You can use this parameter to add one custom parameter, called custom, to the URL you create. The value of this custom parameter is the value of customQueryStringParameterValue.
By using this parameter, you can, for example, add a Publication ID to the URL. The Change Profile page can then retrieve this Publication ID and change its behavior accordingly. The actual Change Profile page is, by default, changeprofile.aspx or changeprofile.jsp, depending on the scripting language you use on the Presentation Server. The page allows the user to change his or her personal information and password.