如何将留言簿的查看模式由讨论区方式改为留言板方式?-动易CMS教程

来源:模板无忧 作者:残月 更新时间:2006-04-10 点击:

问题:每次打开留言簿时,总是显示查看模式:讨论区方式。我在后台也没有找到修改的地方,怎样才能调整成默认为查看模式:留言板方式。如何将留言簿的查看模式由讨论区方式改为留言板方式?

解决:打开GuestBook/index.asp文件,加上以下红色部分的代码即可:

<!--#include file=\"CommonCode.asp\"-->
<%

dim ShowGStyle
ShowGStyle = Request.Cookies(\"ShowGStyle\")
If ShowGStyle=\"\" or Not IsNumeric(ShowGStyle) Then
Response.Cookies(\"ShowGStyle\")=2
End If

Call PE_GuestBook.ShowIndex
Set PE_GuestBook = Nothing
%>

以上方法只适合PowerEasy SP6前版本。

以下方法只适合SiteWeaver版本:

问题:每次打开留言簿时,总是显示查看模式:讨论区方式。我在后台也没有找到修改的地方,怎样才能调整成默认为查看模式:留言板方式。如何将留言簿的查看模式由讨论区方式改为留言板方式?

解决:打开Include/PowerEasy.GuestBook.asp文件,在文件最后面加上以下红色部分的代码即可:

以下是引用片段:
'=================================================
'函数名:ShowGueststyle()
'作 用:获取查看方式
'参 数:无
'=================================================
Private Function GuestStyle()
ShowGStyle = Request.Cookies(\"ShowGStyle\")
If ShowGStyle = \"\" Or Not IsNumeric(ShowGStyle) Then
ShowGStyle = 1
Else
ShowGStyle = Int(ShowGStyle)
End If
GuestStyle = ShowGStyle
End Function

改为:

以下是引用片段:
'=================================================
'函数名:ShowGueststyle()
'作 用:获取查看方式
'参 数:无
'=================================================
Private Function GuestStyle()
ShowGStyle = Request.Cookies(\"ShowGStyle\")
If ShowGStyle = \"\" Or Not IsNumeric(ShowGStyle) Then
ShowGStyle = 2
Else
ShowGStyle = Int(ShowGStyle)
End If
GuestStyle = ShowGStyle
End Function

< Prev12 Next >
相关动易CMS教程:
最新评论:
loading.. 评论加载中....
发表评论:不能超过250字节,请自觉遵守互联网相关政策法规.
  • 昵称: 验证: