The page template with site user’s information locates in Authorization/UserInfo.aspx. Here it is tuned in which form user’s information is displayed.
In a UserInfo tag you can use Template tag that is template to display information about user.
In the Template of the UserInfo tag you can use the following parameters:
| Template's part |
Description |
<%# Container.Nick %> |
The user nick |
<%# Container.LinkToUserAvatar %> |
The link to user avatar image |
<%# Container.FirstName %> |
The user first name |
| <%# Container.LastName %> |
The user last name |
| <%# Container.Sex %> |
The user sex as string |
| <%# Container.SexIsMale %> |
Whether the user sex is male or female |
| <%# Container.BirthDate %> |
The user birth date |
| <%# Container.RegistrationDate %> |
The user registration date |
| <%# Container.Email %> |
The user e-mail address (if it's accessible) |
| <%# Container.ICQ %> |
The user ICQ Number |
A template file locates in Authorization/UserInfo.aspx and can look as follows:
<%@ Page Inherits="CMSLib.Pages.BasePage" %> <%@ Register TagPrefix="cmsa" Namespace="CMSLib.Authorization" Assembly="CMSLib" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head runat=server></head> <body> <form runat=server> <cmsa:UserInfo id="UserInfo1" runat="server"> <TEMPLATE> <table border=0 cellpadding="5" cellspacing="1" width="90%" align="center"> <tr bgcolor="#D6DBFF" class="h5"><td colspan="2">Author: <%# Container.Nick %></td></tr> <tr> <td width="30%"><b>Name: </b></td><td><%# Container.FirstName %> <%# Container.LastName %></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> <tr> <td><b>Avatar: </b></td> <td><img src=<%# Container.LinkToUserAvatar %> /></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> <tr> <td><b>E-mail: </b></td> <td><a href="mailto:<%# Container.Email %>"><%# Container.Email %></a></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> <tr> <td><b>ICQ: </b></td> <td><%# Container.ICQ %></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> <tr> <td><nobr><b>Birth date: </b></nobr></td> <td><%# Container.BirthDate %></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> <tr> <td><nobr><b>registration date: </b></nobr></td> <td><%# Container.RegistrationDate %></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> <tr> <td><b>Sex: </b></td> <td><%# Container.Sex %></td> </tr> <tr> <td colspan="2" bgcolor="#BCBCBC" height="2"></td> </tr> </table> </TEMPLATE> </cmsa:UserInfo> </form> </body> </html> |
AuthorizationForms: Authorization forms
© 2005-2007 Astron Digital Ltd. All Rights Reserved.