<?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; 会员</title>
	<atom:link href="http://www.zhangzhenfeng.com/tags/%e4%bc%9a%e5%91%98/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>禁止待审批会员、未验证会员在留言板留言</title>
		<link>http://www.zhangzhenfeng.com/guestbook-write-limits/</link>
		<comments>http://www.zhangzhenfeng.com/guestbook-write-limits/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 13:35:31 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[会员]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[待审批]]></category>
		<category><![CDATA[未验证]]></category>
		<category><![CDATA[留言]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=27</guid>
		<description><![CDATA[要想禁止待审批会员、未验证会员在留言板留言，对于动易的开源版SiteWeaver™ CMS，修改GuestBook/Guest_Write.asp，找到顶部的如下代码

    If GuestBook_EnableVisitor = False And UserLogined = False Then
    FoundErr = True
    ErrMsg = ErrMsg &#038; "<li>" &#038; XmlText("Guest", "ShowWrite/Notpermission", "您尚未登录，请登录后再进行您的操作！") &#038; "</li>"
    End If
    If FoundErr = True Then
    Call WriteErrMsg(ErrMsg, ComeUrl)
    Response.End
    End If]]></description>
			<content:encoded><![CDATA[<p>要想禁止待审批会员、未验证会员在留言板留言，对于动易的开源版SiteWeaver™ CMS，修改GuestBook/Guest_Write.asp，找到顶部的如下代码</p>
<blockquote><p>If GuestBook_EnableVisitor = False And UserLogined = False Then<br />
FoundErr = True<br />
ErrMsg = ErrMsg &amp; “&lt;li&gt;” &amp; XmlText(“Guest”, “ShowWrite/Notpermission”, “您尚未登录，请登录后再进行您的操作！”) &amp; “&lt;/li&gt;”<br />
End If<br />
If FoundErr = True Then<br />
Call WriteErrMsg(ErrMsg, ComeUrl)<br />
Response.End<br />
End If</p></blockquote>
<p><span id="more-27"></span><br />
增加以下代码</p>
<blockquote><p>If  UserLogined = True And GroupID&gt;6 Then<br />
Response.Write(“您所在的会员组不能留言”)<br />
Response.End<br />
End If</p></blockquote>
<p>GroupID为会员组id，后台会员组管理中可以看到。默认情况下，未验证会员、待审批会员的GroupID分别为7、8。 条件GroupID&gt;6可以根据自己需要修改，上面if、end间的代码自己也可自行修改。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/guestbook-write-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

