<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>张振峰 &#187; guestbook</title>
	<atom:link href="http://www.zhangzhenfeng.com/tags/guestbook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhangzhenfeng.com</link>
	<description>阵风：天生我材必有用</description>
	<lastBuildDate>Wed, 14 Sep 2011 09:51:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>将动易SiteWeaver留言板由讨论区模式改为留言板模式</title>
		<link>http://www.zhangzhenfeng.com/guestbook-gueststyle/</link>
		<comments>http://www.zhangzhenfeng.com/guestbook-gueststyle/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 06:02:27 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[guestbook]]></category>
		<category><![CDATA[gueststyle]]></category>
		<category><![CDATA[模式]]></category>
		<category><![CDATA[留言板]]></category>
		<category><![CDATA[讨论区]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=72</guid>
		<description><![CDATA[PowerEasy? SiteWeaver? CMS 6.5 Build 0115的留言板首页默认显示方式为讨论区模式，如果想改为留言板模式，只需修改系统的默认值即可。
修改方法：修改Include/PowerEasy.GuestBook.asp中的函数ShowGueststyle()，将默认方式由 1 改为 2。]]></description>
			<content:encoded><![CDATA[<p>PowerEasy  SiteWeaver  CMS 6.5 Build 0115的留言板首页默认显示方式为讨论区模式，如果想改为留言板模式，只需修改系统的默认值即可。<br />
修改方法：修改Include/PowerEasy.GuestBook.asp中的函数ShowGueststyle()，将默认方式由 1 改为 2。<span id="more-72"></span></p>
<blockquote><p><code><br />
''=================================================<br />''函数名：ShowGueststyle()<br />''作&nbsp; 用：获取查看方式<br />''参&nbsp; 数：无<br />''=================================================<br />Private Function GuestStyle()<br />&nbsp;&nbsp;&nbsp; ShowGStyle = Request.Cookies("ShowGStyle")<br />&nbsp;&nbsp;&nbsp; If ShowGStyle = "" Or Not IsNumeric(ShowGStyle) Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ShowGStyle = <font color=#0000ff>2<br /></font>&nbsp;&nbsp;&nbsp; Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ShowGStyle = Int(ShowGStyle)<br />&nbsp;&nbsp;&nbsp; End If<br />&nbsp;&nbsp;&nbsp; GuestStyle = ShowGStyle<br />End Function<br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/guestbook-gueststyle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修复SiteWeaver™ CMS 6.5 Build 0115留言板bug</title>
		<link>http://www.zhangzhenfeng.com/siteweaver-cms-0115-guestbook-bug/</link>
		<comments>http://www.zhangzhenfeng.com/siteweaver-cms-0115-guestbook-bug/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 04:14:19 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[guestbook]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=67</guid>
		<description><![CDATA[PowerEasy? SiteWeaver? CMS 6.5 Build 0115后台设置留言板允许游客发布,但游客发布留言是提示:对不起，您尚未通过邮件验证，不能发表留言！
修复办法：修改GuestBook/Guest_Write.asp]]></description>
			<content:encoded><![CDATA[<p>PowerEasy? SiteWeaver? CMS 6.5 Build 0115后台设置留言板允许游客发布,但游客发布留言是提示:对不起，您尚未通过邮件验证，不能发表留言！<br />
修复办法：修改GuestBook/Guest_Write.asp<span id="more-67"></span>，将顶部代码改为</p>
<blockquote><p><code><br />
<strong>If GuestBook_EnableVisitor = False Then</strong><br />
If GuestBook_EnableVisitor = False And UserLogined = False Then<br />&nbsp;&nbsp;&nbsp; FoundErr = True<br />&nbsp;&nbsp;&nbsp; ErrMsg = ErrMsg &amp; "&lt;li&gt;" &amp; XmlText("Guest", "ShowWrite/Notpermission", "您尚未登录，请登录后再进行您的操作！") &amp; "&lt;/li&gt;"<br />Else<br />&nbsp;&nbsp;&nbsp; If GroupType &lt; 1 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FoundErr = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrMsg = ErrMsg &amp; "&lt;li&gt;" &amp; XmlText("Guest", "SaveGuest/Err8", "对不起，您尚未通过邮件验证，不能发表留言！") &amp; "&lt;/li&gt;"<br />&nbsp;&nbsp;&nbsp; ElseIf GroupType = 1 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FoundErr = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrMsg = ErrMsg &amp; "&lt;li&gt;" &amp; XmlText("Guest", "SaveGuest/Err9", "对不起，您尚未通过管理员审核，不能发表留言！") &amp; "&lt;/li&gt;"<br />&nbsp;&nbsp;&nbsp; End If<br />End If<br />
<strong>End If</strong></code></p></blockquote>
<p>即增加一个判断语句——粗体部分代码。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/siteweaver-cms-0115-guestbook-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修改留言频道每行显示留言类别数量</title>
		<link>http://www.zhangzhenfeng.com/guestbook-getgkindlist-number/</link>
		<comments>http://www.zhangzhenfeng.com/guestbook-getgkindlist-number/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 02:07:14 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[getgkindlist]]></category>
		<category><![CDATA[guestbook]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[留言]]></category>
		<category><![CDATA[留言类别]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=45</guid>
		<description><![CDATA[默认情况下，动易留言频道栏目导航处每行只显示10个留言类别（第一行9个）。有时留言类别名称较短，每行仅显示10个的话行尾空白较多，影响美观。<br /><br />如何修改每行显示的留言数量呢？<br /><br />如果是动易2005版、2006版等组件版本，恐怕只能增加自定义标签来实现了，需要替换多处。如果是PowerEasy® SiteWeaver™ CMS（动易 SiteWeaver™ 内容管理系统），那就简单了，只需修改Include/PowerEasy.GuestBook.asp中的函数GetGKindList()即可。]]></description>
			<content:encoded><![CDATA[<p>默认情况下，动易留言频道栏目导航处每行只显示10个留言类别（第一行9个）。有时留言类别名称较短，每行仅显示10个的话行尾空白较多，影响美观。</p>
<p>如何修改每行显示的留言数量呢？</p>
<p>如果是动易2005版、2006版等组件版本，恐怕只能增加自定义标签来实现了，需要替换多处。如果是PowerEasy® SiteWeaver™ CMS（动易 SiteWeaver™ 内容管理系统），那就简单了，只需修改Include/PowerEasy.GuestBook.asp中的函数GetGKindList()即可。<span id="more-45"></span>该函数代码如下：</p>
<blockquote><p>”=================================================<br />
”函数名：GetGKindList()<br />
”作  用：横向显示留言类别<br />
”参  数：无<br />
”=================================================<br />
Private Function GetGKindList()<br />
Dim rsGKind, sqlGKind, strGKind, i<br />
sqlGKind = “select * from PE_Guestkind order by OrderID”<br />
Set rsGKind = Conn.Execute(sqlGKind)<br />
If rsGKind.BOF And rsGKind.EOF Then<br />
strGKind = “| ” &amp; XmlText(“Guest”, “KindList/Nofound”, “没有任何类别”)<br />
Else<br />
i = 1<br />
strGKind = “| ”<br />
Do While Not rsGKind.EOF<br />
strGKind = strGKind &amp; “&lt;a href=”index.asp?KindID=” &amp; rsGKind(“KindID”) &amp; “”&gt;” &amp; rsGKind(“KindName”) &amp; “&lt;/a&gt;”<br />
strGKind = strGKind &amp; ” | ”<br />
i = i + 1<br />
<span style="color: #0000ff;"><strong><span style="text-decoration: underline;"> If i Mod <span style="color: #ff0000;">10</span> = 0 Then<br />
</span></strong></span> strGKind = strGKind &amp; “&lt;br&gt;”<br />
End If<br />
rsGKind.MoveNext<br />
Loop<br />
End If<br />
rsGKind.Close<br />
Set rsGKind = Nothing<br />
”If GuestBook_IsAssignSort = False Then<br />
”strGKind = strGKind &amp; “&lt;a href=”index.asp?KindID=0”&gt;” &amp; XmlText(“xxxxx”, “xxxxxx”, “不属任何类别”) &amp; “&lt;/a&gt; |”<br />
”End If<br />
GetGKindList = strGKind<br />
End Function</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/guestbook-getgkindlist-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

