Hướng dẫn thiết kế : Thiết kế Forum nhanh chóng và đơn giản phần 1 - Pdf 20

Bài 1: Việt hóa 1. Down code Wwf 8.03
Thông tin đăng nhập:
 Username: admin
 Password: admin
2. Mở file browser_page_encoding_inc.asp
a.1. Tìm dòng code
Const strPageEncoding = "iso-8859-1"
a.2. Thay thế bằng
'Const strPageEncoding = "iso-8859-1"
b.1. Tìm dòng code
'Const strPageEncoding = "utf-8"
b.2. Thay thế bằng
Const strPageEncoding = "utf-8"
3. Mở file common.asp
a.1. Tìm dòng code
Server.ScriptTimeout = 90
Session.Timeout = 20
a.2. Thêm xuống dưới
Session.Codepage=65001
4. Mở file footer.asp
a.1. Tìm dòng code
</body>
</html>
a.2. Thêm lên trên
<div align=center>
<br />
<hr style="width: 50%;">
Hướng dẫn thiết kế : Thiết kế Forum nhanh chóng và đơn giản

7. Mở file language_file_inc.asp
a.1. Tìm dòng code
Const strTxtSecurityCodeDidNotMatch2 = "The Security Code
entered did not match that displayed."
%>
a.2. Thêm xuống dưới
<! #include file="ha_language_file_inc.asp" >
8. Copy thư mục Viettyping vào website của bạn (wwf)
9. Copy file clock vào website của bạn (wwf)
10. Down Unikey 3.63, sau khi install xong, chọn bảng mã là NCR
Decimal
a.1. Hình vẽ

a.2. Mở file language_file_inc.asp
a.1.1. Tìm dòng code
Const strTxtWelcome = "Welcome"
a.1.2. Thay thế bằng
Const strTxtWelcome = "Ch&#224;o m&#7915;ng"
a.1.3. Việc thay thế ở đây chính là việc bạn nhập chữ “Chào mừng”
thay cho chữ “Welcome” theo kiểu gõ bạn đang chọn bằng bảng mã
NCR Decimal mà bạn đã chọn ở trên. Nó tự động hiện ra chữ
"Ch&#224;o m&#7915;ng"
a.1.4. Làm tương tự cho các dòng còn lại trong file này và các file
khác trong thư mục language_files

Bài 2: Giới tính 1. Mở table wwForum.mdb
a.1. Mở tblAuthor, thêm trường: Sex, kiểu: Yes/No, giá trị default:

<td><% = strTxtSex %></td>
<td>&nbsp;&nbsp;
<img border="0"
src="forum_images/mod/male.gif">&nbsp;&nbsp;<% =
strTxtMale %>&nbsp;&nbsp;<input type="radio" name="sex"
value="True" <% If blnSex = True Then Response.Write
"checked" %> checked>
&nbsp;&nbsp;&nbsp;&nbsp;
<img border="0"
src="forum_images/mod/female.gif">&nbsp;&nbsp;<% =
strTxtFemale %>&nbsp;&nbsp;<input type="radio" name="sex"
value="False" <% If blnSex = False Then Response.Write
"checked" %> />
</td>
</tr>
3. Mở file ha_language_file_inc.asp
a.1. Tìm dòng code
Const strTxtRemember = "Ghi nh&#7899;"
a.2. Thêm xuống dưới
Const strTxtSex = "Gi&#7899;i t&#237;nh"
Const strTxtMale = "Nam"
Const strTxtFemale = "N&#7919;"
4. Mở file member_profile.asp
a.1. Tìm dòng code
Dim blnAccSuspended 'Holds if the user account is
suspended
a.2. Thêm xuống dưới
Dim strSex 'Hold the sex of member
b.1. Tìm dòng code
strEmail = rsCommon("Author_email")

c.2. Thay thế bằng
'16 = tblAuthor.Sex,
'17 = tblGroup.Name,
'18 = tblGroup.Stars,
'19 = tblGroup.Custom_stars
'20 = tblGuestName.Name
d.1. Tìm dòng code
'16 = tblGroup.Name,
'17 = tblGroup.Stars,
'18 = tblGroup.Custom_stars
'19 = tblGuestName.Name
d.2. Thay thế bằng
'16 = tblAuthor.Sex,
'17 = tblGroup.Name,
'18 = tblGroup.Stars,
'19 = tblGroup.Custom_stars
'20 = tblGuestName.Name
e.1. Tìm dòng code
strGroupName = sarryPosts(16,intCurrentRecord)
intRankStars = CInt(sarryPosts(17,intCurrentRecord))
intRankStars = CInt(sarryPosts(17,intCurrentRecord))

strGuestUsername = sarryPosts(19,intCurrentRecord)
e2. Thay thế bằng
strSex = sarryPosts(16,intCurrentRecord)
strGroupName = sarryPosts(17,intCurrentRecord)
intRankStars = CInt(sarryPosts(18,intCurrentRecord))
strRankCustomStars = sarryPosts(19,intCurrentRecord)

strGuestUsername = sarryPosts(20,intCurrentRecord)


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status