<?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/%e5%bc%80%e6%ba%90/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-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>
		<item>
		<title>修改 SiteWeaver默认值的方法和建议</title>
		<link>http://www.zhangzhenfeng.com/siteweaver-modify/</link>
		<comments>http://www.zhangzhenfeng.com/siteweaver-modify/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 02:46:45 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[修改]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[语言包]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=40</guid>
		<description><![CDATA[<p>现在动易开源了，大家可以自行修改了，但很多人想修改却找不到修改的地方，近日就有很多人在论坛发帖询问。</p><br /><p>下面举例说明我的修改方法（1、查找：<font color=#ff0000><u>通过DreamWeaver在<strong>全站范围</strong>内的<strong>源代码</strong>搜索</u></font><font color=#000000>&#160;&#160;&#160;&#160;2、修改：</font><font color=#ff0000><strong><u>语言包、系统文件——多为admin和include两个文件夹中的文件</u></strong></font>）。首先先提醒一下：<strong><font color=#ff0000>修改内容要有记录，以便查错、恢复和升级。</font></strong></p><br /><p>例如修改标签{$ShowChannel}，首先<u><font color=#ff0000>通过DreamWeaver在<strong>全站范围</strong>内的<strong>源代码</strong>搜索</font></u>ShowChannel，发现Include/PowerEasy.Common.Front.asp中有如下代码</p><br /><p><blockquote>If InStr(strHtml, "{$ShowChannel}") &#62; 0 Then strHtml = Replace(strHtml, "{$ShowChannel}", <font color=#0000ff>GetChannelList</font>(0))</blockquote></p><br /><p>这说明标签{$ShowChannel}取决于<font color=#0000ff>GetChannelList</font>()。再搜索<font color=#0000ff>GetChannelList</font>，发现Include/PowerEasy.Common.Front.asp中有Function GetChannelList(NumNewLine)，已经找到了。</p>]]></description>
			<content:encoded><![CDATA[<p>现在动易开源了，大家可以自行修改了，但很多人想修改却找不到修改的地方，近日就有很多人在论坛发帖询问。</p>
<p>下面举例说明我的修改方法（1、查找：<span style="color: #ff0000;"><span style="text-decoration: underline;">通过DreamWeaver在<strong>全站范围</strong>内的<strong>源代码</strong>搜索</span></span><span style="color: #000000;"> 2、修改：</span><span style="color: #ff0000;"><strong><span style="text-decoration: underline;">语言包、系统文件——多为admin和include两个文件夹中的文件</span></strong></span>）。首先先提醒一下：<strong><span style="color: #ff0000;">修改内容要有记录，以便查错、恢复和升级。</span></strong></p>
<p>例如修改标签{$ShowChannel}，首先<span style="text-decoration: underline;"><span style="color: #ff0000;">通过DreamWeaver在<strong>全站范围</strong>内的<strong>源代码</strong>搜索</span></span>ShowChannel，发现Include/PowerEasy.Common.Front.asp中有如下代码</p>
<blockquote><p>If InStr(strHtml, “{$ShowChannel}”) &gt; 0 Then strHtml = Replace(strHtml, “{$ShowChannel}”, <span style="color: #0000ff;">GetChannelList</span>(0))</p></blockquote>
<p>这说明标签{$ShowChannel}取决于<span style="color: #0000ff;">GetChannelList</span>()。再搜索<span style="color: #0000ff;">GetChannelList</span>，发现Include/PowerEasy.Common.Front.asp中有Function GetChannelList(NumNewLine)，已经找到了。<span id="more-40"></span></p>
<p>下面就是<strong><span style="text-decoration: underline;"><span style="color: #ff0000;">如何修改</span></span></strong>。<br />
大部分情况下，http://www.zhangzhenfeng.com/ 与 http://www.zhangzhenfeng.com/index.asp 的 Google PageRank 是不同的。据说，在google 看来，目录的权重比文件大。默认情况下，动易的标签 {$ShowChannel} 输出时，网站首页、频道首页的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式，如何才能修改为 {$InstallDir}、{$InstallDir}Article/ 的形式呢？详情请参考<a href="http://www.zhangzhenfeng.com/showchannel-getchannelList/">http://www.zhangzhenfeng.com/showchannel-getchannelList/</a></p>
<p>其中Function GetChannelList(NumNewLine)中的<span style="color: #0000ff;">XmlText(“BaseText”, “FirstPage”, “网站首页”)</span> 表明调用的是语言包文件Language/Gb2312.xml的内容，在&lt;BaseText&gt;与&lt;/BaseText&gt;中的&lt;FirstPage&gt;、&lt;/FirstPage&gt;之间的内容，默认值为”网站首页”，可自行修改。</p>
<p>另外，有时修改系统默认值可以在后台直接通过浏览器查看编译后的html代码帮助查找。例如想修改添加软件时默认外部地址“下载地址1|http://”，在后台添加时右击查看源代码，会发现这取决于JavaScript函数function AddUrl()。利用这一点在“admin_soft.asp”第839、840行找到如下代码</p>
<blockquote><p>Response.Write “function AddUrl(){” &amp; vbCrLf<br />
Response.Write “  var thisurl=”” &amp; XmlText(“Soft”, “DownloadUrlTip”, “下载地址”) &amp; “”+(document.myform.DownloadUrl.length+1)+”|http://”; ” &amp; vbCrLf</p></blockquote>
<p>也就找到了修改的地方了，修改就很容易了。修改语言包可以替换“下载地址1|http://”中的“<strong>下载地址</strong>”，删除+(document.myform.DownloadUrl.length+1)可以删除其中的数字<strong><span style="color: #000000;">1</span></strong><span style="color: #000000;">，还可以修改“http://”为更接近你的软件下载地址的代码如<strong>http://down.free8.net.cn/Files/</strong></span></p>
<p>补充一个源代码中的注释：</p>
<blockquote><p>”**************************************************<br />
”函数名：XmlText<br />
”作  用：从语言包中读取指定节点的值<br />
”参  数：iBigNode &#8212;- 大节点<br />
”        iSmallNode &#8212;- 小节点<br />
”        DefChar &#8212;- 默认值<br />
”返回值：语言包中指定节点的值<br />
”**************************************************<br />
Function XmlText(ByVal iBigNode, ByVal iSmallNode, ByVal DefChar)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/siteweaver-modify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>7-Zip，开源的压缩软件</title>
		<link>http://www.zhangzhenfeng.com/7-zip/</link>
		<comments>http://www.zhangzhenfeng.com/7-zip/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 12:50:29 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[7-zip]]></category>
		<category><![CDATA[7z]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[免费]]></category>
		<category><![CDATA[压缩]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[解压]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=24</guid>
		<description><![CDATA[使用电脑，经常要用到压缩软件。但是使用压缩软件一般是要收费的，如果不舍得花钱，就这能用盗版了。不过，也有免费的压缩软件。7-Zip就是是一款压缩比极高的压缩软件，而且是免费、开源的。您可以在任何计算机上使用 7-Zip ，包括用于商业用途的计算机。]]></description>
			<content:encoded><![CDATA[<p>使用电脑，经常要用到压缩软件。但是使用压缩软件一般是要收费的，如果不舍得花钱，就这能用盗版了。不过，也有免费的压缩软件。7-Zip就是是一款压缩比极高的压缩软件，而且是免费、开源的。您可以在任何计算机上使用 7-Zip ，包括用于商业用途的计算机。<span id="more-24"></span></p>
<p><strong>7-Zip 主要特征:</strong></p>
<ul style="liststyle: none;">
<li>更新了算法来加大 7z 格式 的压缩比</li>
<li><strong>7-Zip</strong> 是基于 <strong>GNU LGPL</strong> 之下发布的软件  </li>
<li>支持格式：    
<ul>    </p>
<li>压缩及解压缩：7z、ZIP、GZIP、BZIP2 和 TAR</li>
<li>仅解压缩：RAR、CAB、ISO、ARJ、LZH、CHM、WIM、Z、CPIO、RPM、DEB 和 NSIS</li>
</ul>
</li>
<li>对于 ZIP 及 GZIP 格式，<strong>7-Zip</strong> 能提供比使用 PKZip 及 WinZip 高 2-10% 的压缩比</li>
<li>7z 格式支持创建自释放(SFX)压缩档案</li>
<li>集成 Windows 外壳扩展</li>
<li>强大的的文件管理</li>
<li>强大的命令行版本</li>
<li>支持 FAR Manager 插件</li>
<li>支持 63 种语言</li>
</ul>
<p>通常使用 7-Zip 的 7z 格式能比使用 zip 格式的压缩档案小 30-70%。并且使用 7-Zip 创建的 zip 格式比大多数其它压缩软件创建的都小 2-10%。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/7-zip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

