留言簿是让没有注册的游客使用的交流工具,这个是一个很重要的一个方面的意见来源。但是留言要游客反复的输入昵称,邮箱……这样又会少了很多意见来源。所以需要方便他们,我建议添加以下功能
找到GuestBook目录
1打开Guestbook.asp
找到
Public Sub Execute()
GuestNum=KSCMS.GetConfig("GuestNum")
GuestCheckTF=KSCMS.GetConfig("GuestCheckTF")
在这下面增加
dim Forum_sn,Name,Email,HomePage,Oicq
Forum_sn="GuestBook"
Name = Request.Cookies(Forum_sn)("Name")
Email = Request.Cookies(Forum_sn)("Email")
HomePage = Request.Cookies(Forum_sn)("HomePage")
Oicq = Request.Cookies(Forum_sn)("Oicq")
2打开GuestBook_Save.asp文件
找到
RSObj("GuestIP") = IP
RSObj("AddTime") = Now()
RSObj.Update
RSObj.Close
Set RSObj = Nothing
在这下面增加
dim Forum_sn
Forum_sn="GuestBook"
Response.Cookies(Forum_sn)("Name") = KSCMS.HTMLEncode(Name)
Response.Cookies(Forum_sn)("Email") = KSCMS.HTMLEncode(Email)
Response.Cookies(Forum_sn)("HomePage") = KSCMS.HTMLEncode(HomePage)
Response.Cookies(Forum_sn)("Oicq") = KSCMS.HTMLEncode(Oicq)
Response.Cookies(Forum_sn).Expires=Date+31