« 我想要什么样的生活转一篇新闻 »

给Totoro插件加上清理全部垃圾评论功能,兼警告这个济南礼品站的站长

密陀僧发布 技术笔记 2007年12月25日 次浏览
留言名称为“济南礼品”的站长,警告你一下,在过去的24小时内,你在我的博客发出垃圾评论上千条,请你马上停止这种行为,否则后果自负。而且你做的所有工作都是完全没用的,你的傻瓜工具除了占用我的带宽和系统资源损耗你得不到任何好处,你的spam评论一条都不会显示。你已经给我带来了麻烦,我希望你不要继续下去。
相信使用gmail的朋友一定很喜欢垃圾邮件的那个清除所有垃圾邮件的链接吧,下面是给Totoro插件加上清理全部垃圾评论功能的修改方法:
打开PLUGIN/Totoro/setting1.asp,把

  Response.Write "<br/><form id=""frmBatch"" method=""post"" action=""""><p><input type=""hidden"" id=""edtBatch"" name=""edtBatch"" value=""""/><input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentdel.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""删除所选择的评论"" id=""btnPost""/>      <input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentpass.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""通过所选择的评论"" id=""btnPost""/></p><form><br/>" & vbCrlf

修改为:

  Dim comm_ID_arr
  Set objRS=objConn.Execute("SELECT [comm_ID] FROM [blog_Comment] "& strSQL &" ORDER BY [comm_ID] DESC")
  Do While Not objRS.Eof
    comm_ID_arr=objRS(0)&","&comm_ID_arr
  objRS.Movenext
  Loop
  
  Response.Write "<br/><form id=""frmBatch"" method=""post"" action=""""><p><input type=""hidden"" id=""edtBatch"" name=""edtBatch"" value=""""/><input class=""button"" type=""submit"" onclick='document.getElementById(""edtBatch"").value="""&comm_ID_arr&""";if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentdel.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""删除所有垃圾评论"" id=""btnPost""/>      <input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentdel.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""删除所选择的评论"" id=""btnPost""/>      <input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){this.form.action="""&ZC_BLOG_HOST&"plugin/totoro/commentpass.asp"&""";return window.confirm("""& ZC_MSG058 &""");}else{return false}' value=""通过所选择的评论"" id=""btnPost""/></p><form><br/>" & vbCrlf

即可。

The End.
转载请注明:转载自漱风斋[ http://0e2.net/ ]

本文链接地址:http://0e2.net/post/988.html
  • 你受到这个SB的骚挠啦了,NND的删累死了,我把这个IP屏了.
  • 评论作者:birder——2007-12-29 8:53:58 回复该留言
  • 啊啊啊,终于找到和我同病相怜的人了
    爪子先...
  • 评论作者:密陀僧——2007-12-29 9:46:26 回复该留言
  • 我用上z-blog1.8了,今天早上TotoroⅡ已经起效果了,正在顽强抵抗垃圾评论的进攻.
    另外,我发现在TotoroⅡ标题栏,有个全选功能,不知是不是你改进的.
    密陀僧 于 2008-1-21 10:17:14 回复
    标题栏的全选功能原来就有的
    指的是全选当前页面所有条目
  • 评论作者:birder——2008-1-21 9:36:19 回复该留言

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Copyright 2009-3000 牛丸旅游网. Some Rights Reserved.  Powered By Z-Blog.