<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Simple Comments: A Basic Perl-Based Comment System for Static Web Pages</title>
      <link>http://www.webreference.com/programming/perl/comments/index.html</link>
      <description>Visitor Comments</description>
      <pubDate>Wed, 31 Jan 2007 20:26:04 GMT</pubDate>
      <lastBuildDate>Thu, 05 Feb 2009 14:16:10 GMT</lastBuildDate>
      <generator>Simple Comments 0.962</generator>

      <item>
         <title>dingesmeukzooi</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment104</link>
         <description>thanks dudes, it works perfect on my webste!!</description>
         <pubDate>Thu, 05 Feb 2009 09:45:14 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment104</guid>
      </item>
      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment103</link>
         <description>Hi Dale,&lt;br /&gt;&lt;br /&gt;For now, this is free software, to use as is (no specific software license). We retain the copyright and ownership. I cannot promise that it will always be free; but it is so now (as of v.962, on 12/19/2008).</description>
         <pubDate>Fri, 19 Dec 2008 14:09:37 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment103</guid>
      </item>
      <item>
         <title>License? - (Dale)</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment102</link>
         <description>What licnse this script is offerd under?</description>
         <pubDate>Thu, 18 Dec 2008 23:28:29 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment102</guid>
      </item>
      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment101</link>
         <description>Good info, Jonathan. Thanks for the feedback!</description>
         <pubDate>Mon, 01 Dec 2008 14:20:46 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment101</guid>
      </item>
      <item>
         <title>Jonathan</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment100</link>
         <description>Yes, the &lt;a href=&quot;http://akismet.com/development/api/&quot;&gt;Akismet API&lt;/a&gt; is free to use. I&#39;d personally prefer a locally-installed boolean filter, but since it would take time to learn, using an already-running system such as Akismet is better, I think.&lt;br /&gt;&lt;br /&gt;You&#39;ve a good point about spamming the system with someone else&#39;s email address. That&#39;s a good idea placing it within the registration form.&lt;br /&gt;&lt;br /&gt;And the idea that a forced Review blocks spam came from Textpattern. That system requires a preview before submission, and spam on Textpattern blogs is usually considerably less than on, say, WordPress.&lt;br /&gt;&lt;br /&gt;People whose blogs I&#39;ve read who use the Akismet plugin on both systems have noticed spam volumes coming through the Akismet plugin sometimes many hundreds of times higher on the WordPress system than on the Textpattern system. And the only difference in the comment form is the forced preview. May be fuzzy logic, though.</description>
         <pubDate>Fri, 28 Nov 2008 03:37:29 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment100</guid>
      </item>
      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment99</link>
         <description>Hi Jonathan,&lt;br /&gt;&lt;br /&gt;Feature requests are welcome, though admittedly slow going these days as I haven&#39;t had an abundance of time to work on this project. Akismet has been mentioned before (as has mollum.com) and probably deserves another look. Do you know if Akismet offers any free-level of service for their product? As I recall that was the main reason I shyed away from them initially, I don&#39;t remember seeing any free service levels. I think E-mails have also been suggested in the past; but one of the potential problems there is spam-abuse (i.e., a person could submit using their &quot;buddy&#39;s&quot; E-mail and then subscribe them to all posts from the article). So, I would probably have to tie the E-mail subscription into the user-registration features (at least that way the user has to confirm their E-mail address before they can subscribe). Worth looking into, but again, I don&#39;t foresee any quick implementations.&lt;br /&gt;&lt;br /&gt;As far as forcing a preview, I&#39;m not sure what you&#39;re getting at there. You could theoretically just remove the &quot;Add&quot; button from the submission form, and then alter the Review template to include a copy of the submission form WITH the &quot;Add&quot; button. But ultimately, that won&#39;t stop bots; which are smart enough to figure those types of things out, anyway. Or perhaps I&#39;ve mis-understood your request?&lt;br /&gt;&lt;br /&gt;Cheers!</description>
         <pubDate>Thu, 20 Nov 2008 18:22:51 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment99</guid>
      </item>
      <item>
         <title>Feature Request - (Jonathan)</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment98</link>
         <description>Any way to integrate a couple features?&lt;br /&gt;&lt;br /&gt;* Something like Akismet for spam protection (CAPTCHA&#39;s have been cracked recently)&lt;br /&gt;* A check box to subscribe to comments via email (could use the system&#39;s sendmail)&lt;br /&gt;&lt;br /&gt;Also, how would I code the form to require a comment preview before being submitted? That has a twofold benifit of reducing thoughtless comments, and reducing spam.</description>
         <pubDate>Thu, 20 Nov 2008 17:40:00 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment98</guid>
      </item>
      <item>
         <title>utf-8 support - (Dan Ragle)</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment97</link>
         <description>Hi Vladas,&lt;br /&gt;&lt;br /&gt;The script is admittedly lacking when it comes to utf-8 support. Part of that is the result of my own shortcomings in regards to utf-8 knowledge; the other is knowing that Perl 5.6--which I wanted to make sure I supported--was itself not completely solid in regards to utf-8 support. So, I have no doubt you will run into utf-8 related problems. I would like to go back through and add in more thorough support for utf-8 at some point in the future, but can&amp;#39;t say for certain when that will be.&lt;br /&gt;&lt;br /&gt;In the mean time, the problem you mention with the article names is most likely the result of some HTML entity encoding that in retrospect probably isn&amp;#39;t necessary. At least the angle brackets need to be encoded, but other things probably do not. In Comments.pm, find the get_article_name function, and change this:&lt;br /&gt;&lt;pre&gt;HTML::Entities::encode_entities($title,&quot;\200-\377&amp;lt;&amp;gt;&quot;);&lt;/pre&gt;to this:&lt;br /&gt;&lt;pre&gt;HTML::Entities::encode_entities($title,&quot;&amp;lt;&amp;gt;&quot;);&lt;/pre&gt;If that doesn&amp;#39;t work, and you&amp;#39;re running perl 5.8 or later, you might also try forcing the HTML file found to be read in as utf-8; i.e.:&lt;br /&gt;&lt;pre&gt;open (my $fh, &amp;#39;&amp;lt;:utf8&amp;#39;, $config-&amp;gt;{&amp;#39;webroot&amp;#39;} . $title)&lt;/pre&gt;This, of course, assumes that the file is originally encoded in utf-8; if not, you may need to force the encoding to be whatever the file actually is. If you&amp;#39;re running Perl 5.8, then I &lt;i&gt;believe&lt;/i&gt; Perl will internally translate the read-in input to utf-8; but it still needs to know for certain what the file was encoded in in the first place to know how to perform the translation.&lt;br /&gt;&lt;br /&gt;Good luck!</description>
         <pubDate>Mon, 29 Sep 2008 14:34:31 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment97</guid>
      </item>
      <item>
         <title>Vladas Palubinskas</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment96</link>
         <description>Yes, that helped! Now unicode applies to generated pages fine!&lt;br /&gt;&lt;br /&gt;Only cites like &amp;lt;TMPL_VAR NAME=&quot;article_name&quot;&amp;gt; remain garbaged by double-byte letters, e.g. &amp;#197;&amp;#161; &amp;#197;&amp;#179; (&amp;amp;Aring;&amp;amp;iexcl; &amp;amp;Aring;&amp;amp;sup3;). Perhaps I should switch off HTML entities somewhere? What is the reason not to set UTF-8 for the entire application?&lt;br /&gt;&lt;br /&gt;Thank you very much for your help and for the nice architecture of the not so Simple Comments!</description>
         <pubDate>Fri, 26 Sep 2008 21:10:01 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment96</guid>
      </item>
      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment95</link>
         <description>Hi Vladas,&lt;br /&gt;&lt;br /&gt;That&#39;s probably coming from the CGI module; i.e., the CGI header function will default to ISO-8859-1 unless told otherwise.&lt;br /&gt;&lt;br /&gt;If you&#39;re having this trouble with Simple Comments, you should be able to rectify it by finding the header calls and adding the optional charset parameter to them; i.e.,&lt;br /&gt;&lt;pre&gt;$cgi-&amp;gt;header(-charset =&amp;gt; &#39;utf-8&#39;);&lt;/pre&gt;&lt;br /&gt;or&lt;br /&gt;&lt;pre&gt;$cgi-&amp;gt;header(-cookie =&amp;gt; $cookie_data,&lt;br /&gt;             -charset =&amp;gt; &#39;utf-8&#39;);&lt;/pre&gt;&lt;br /&gt;etc. Unfortunately, there are many of them to change; since I had to add in multiple potential exit points in the OpenID logic. I&#39;ll look at making that a configuration option in a future version of the script.&lt;br /&gt;&lt;br /&gt;Theoretically, you should also be able to add a META HTTP-EQUIV in your page output; but I think I would personally rather see it directly in the header, too.&lt;br /&gt;&lt;br /&gt;And if you&#39;re having trouble in one of your own projects, I can only recommend finding the header() function for your CGI output and adjusting accordingly.&lt;br /&gt;&lt;br /&gt;Best of luck!</description>
         <pubDate>Fri, 26 Sep 2008 13:43:49 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment95</guid>
      </item>
      <item>
         <title>HTTP overwrites UTF-8 - (Vladas Palubinskas)</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment94</link>
         <description>Dear Dan, would you catch an origin, why and where ASCII (ISO 8859-1) overwrites Unicode (UTF-8) settings in page headers, even overwrites default Apache encoding. Even after replacing &lt;pre&gt;$p3-&amp;gt;parse(*FOO, ProtocolEncoding =&amp;gt; &#39;ISO-8859-1&#39;);&lt;/pre&gt; to &#39;UTF-8&#39; in XML/Parser.pm&lt;br /&gt;&lt;br /&gt;Nothing aids -- Content-Type: &quot;text/html; charset=ISO-8859-1&quot; in HTTP response header :(</description>
         <pubDate>Fri, 26 Sep 2008 10:07:47 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment94</guid>
      </item>
      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment93</link>
         <description>Hi david,&lt;br /&gt;&lt;br /&gt;1.) Yes, display names can now be forced to be unique. See the new unique_display_names parameter in the config file. So you should no longer need the custom code.&lt;br /&gt;&lt;br /&gt;Also note that when you upgrade, you&#39;ll need to create the initial xref file--there&#39;s an option to do that in the admin script.&lt;br /&gt;&lt;br /&gt;See the &quot;Support for Unique Display Names&quot; section in the &lt;a href=&quot;http://www.webreference.com/programming/perl/comments/v.960&quot;&gt;release notes&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;2.) The catch-all hack you&#39;re using should still work, I can&#39;t think of any reason it wouldn&#39;t (but I never actually tried it myself, so....)&lt;br /&gt;&lt;br /&gt;3.) Most if not all the templates changed; but many of the changes were the result of adding standard includes for the headers/footers of pages (actually three includes are used). Again, see the release notes for more.&lt;br /&gt;&lt;br /&gt;The &lt;a href=&quot;http://www.webreference.com/programming/perl/comments/CHANGES.txt&quot;&gt;CHANGES.txt&lt;/a&gt; file lists all the files that changed, and it differentiates between those that were changed only to support the new header/footer construct vs. those that were changed to support new functionality. I know it&#39;s a pain, but you&#39;d pretty much have to compare what&#39;s there to what you have to determine if a change is necessary to your templates.&lt;br /&gt;&lt;br /&gt;And of course the CHANGES.txt also lists all the config parameter additions and new template additions as well.&lt;br /&gt;&lt;br /&gt;Good luck!</description>
         <pubDate>Mon, 22 Sep 2008 21:02:11 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment93</guid>
      </item>
      <item>
         <title>upgrade issues - (david)</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment92</link>
         <description>Hi Dan, I am probably going to upgrade my v95 to v96, basically to ensure that registered but not confirmed visitors cannot comment. Just a few questions:&lt;br /&gt;&lt;br /&gt;1. I have implemented your &quot;off the top of your head&quot; solution to ensure that display names are not repeated. Has this been incorporated into v96? If not, will using your proposed code cause any problems?&lt;br /&gt;&lt;br /&gt;2. I have also used your proposed code to create a catch-all comments page. My question is the same as above.&lt;br /&gt;&lt;br /&gt;3. Most of the templates have been heavily customised. Is there any template I need to &quot;update&quot; to use v96?&lt;br /&gt;&lt;br /&gt;david.</description>
         <pubDate>Sat, 20 Sep 2008 02:53:57 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment92</guid>
      </item>
      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment91</link>
         <description>(&lt;a href=&quot;http://mollom.com/download&quot;&gt;http://mollom.com/download&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Looks interesting, hadn&#39;t seen it before but just gave it a quick glance. Looks similar to Akismet, yes? I see there&#39;s a free-level of the service (up to 100 legit message posts per day), and the spam filter/visitor reputation checks could be beneficial. Do you know if the CAPTCHAS can be selectively disabled per account? It may be more beneficial from a Simple Comments perspective to just get the score results (from content and visitor reputation analysis), and then decide if we need to present a captcha locally based on the score. But mostly I&#39;m just thinking out loud here...</description>
         <pubDate>Mon, 15 Sep 2008 14:49:08 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment91</guid>
      </item>
      <item>
         <title>Quick FYI - (Phillip Smith)</title>
         <link>http://www.webreference.com/programming/perl/comments/index.html#comment90</link>
         <description>Wonder if this might be a useful option for a future version? http://mollom.com/download</description>
         <pubDate>Mon, 15 Sep 2008 14:27:43 GMT</pubDate>
         <guid>http://www.webreference.com/programming/perl/comments/index.html#comment90</guid>
      </item>

   </channel>
</rss>