<rss version="2.0">
		<channel>
			<title>Plogger Support Forum - Captcha?</title>
			<lastBuildDate>Sat, 07 Nov 2026 11:19:15 +0000</lastBuildDate>
			<link>http://www.plogger.org/forum/</link>
			<description></description>
			<generator>Lussumo Vanilla 1.1.10</generator>
			<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6221#Comment_6221</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6221#Comment_6221</guid>
		<pubDate>Mon, 03 Dec 2007 05:29:21 +0000</pubDate>
		<author>amnesia</author>
		<description>
			<![CDATA[Is there anybody who has a captcha script and knows how to implement it into plogger.<br />This damn spammer keeps spamming me daily and it's become very annoying.]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6224#Comment_6224</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6224#Comment_6224</guid>
		<pubDate>Mon, 03 Dec 2007 14:09:46 +0000</pubDate>
		<author>kent</author>
		<description>
			<![CDATA[i have captcha.. but my plogger install is so heavily modified .. i dont know if i can help you<br /><br />in plog-comment.php .. but you have to modify it to suit your website<br /><br />	if ((md5($_POST['captcha_code']) != $_SESSION['captcha_code']) || !$_POST['captcha_code'])<br />	{<br />        $_SESSION["comment_post_error"] = "CAPTCHA check failed!";<br />                unset($_SESSION['captcha_code']);<br />		header("Location: " . $redirect);<br />		exit;<br />    }<br /><br />add a field in theme/comments.php<br /><br />&lt;p&gt;<br />	&lt;label for="captcha_code"&gt;Security code:&lt;/label&gt;&lt;br /&gt;<br />	&lt;input type="text" name="captcha_code" id="captcha_code" title="Type the code in the image" value="" /&gt;&lt;br /&gt;<br />	&lt;img src="&lt;?php echo BLAH_URL; ?&gt;/scripts/image_verification.php" alt="kod" width="60" height="25" /&gt;<br />&lt;/p&gt;<br /><br />and.. of course .. the captcha script :) dont know if its mine or a modified from the net .. ill check and get back to you soon]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6225#Comment_6225</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6225#Comment_6225</guid>
		<pubDate>Mon, 03 Dec 2007 14:23:32 +0000</pubDate>
		<author>kent</author>
		<description>
			<![CDATA[&lt;?php<br />session_start();<br /><br />$alphanum  = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789&quot;;<br /><br />$rand = substr(str_shuffle($alphanum), 0, 5);<br /><br />// Choose one of five background images<br />$bgNum = rand(1, 5);<br /><br />// Create them yourself ;)<br />$image = imagecreatefromjpeg($_SERVER['DOCUMENT_ROOT'].&quot;/images/image_verification_background_$bgNum.jpg&quot;);<br /><br />$textColor = imagecolorallocate ($image, 0, 0, 0); <br /><br />imagestring ($image, 5, 8, 5,  $rand, $textColor); <br /><br />$_SESSION['captcha_code'] = md5($rand);<br /><br />header(&quot;Expires: Mon, 26 Jul 1997 05:00:00 GMT&quot;); <br />header(&quot;Last-Modified: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;) . &quot; GMT&quot;); <br />header(&quot;Cache-Control: no-store, no-cache, must-revalidate&quot;); <br />header(&quot;Cache-Control: post-check=0, pre-check=0&quot;, false); <br />header(&quot;Pragma: no-cache&quot;); 	<br />header('Content-type: image/jpeg');<br /><br />imagejpeg($image);<br />imagedestroy($image);<br />?&gt;<br /><br />It could maybe be done better .. i run this for now .. maybe recode this later]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6238#Comment_6238</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6238#Comment_6238</guid>
		<pubDate>Tue, 04 Dec 2007 04:27:03 +0000</pubDate>
		<author>amnesia</author>
		<description>
			<![CDATA[excellent! Will try it out now.]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6239#Comment_6239</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6239#Comment_6239</guid>
		<pubDate>Tue, 04 Dec 2007 04:33:28 +0000</pubDate>
		<author>amnesia</author>
		<description>
			<![CDATA[just noticed that this was already in there <br /><br />// If the captcha is required, check it here<br />if ($_SESSION['require_captcha'] == true) {<br />	if (($_POST['captcha'] != $_SESSION['captcha']) || !$_POST['captcha']) {<br />        $_SESSION[&quot;comment_post_error&quot;] = &quot;CAPTCHA check failed!&quot;;<br />		header(&quot;Location: $redirect&quot;);<br />		exit;<br />    }<br />}<br /><br />Does this mean that plogger has captcha already built in?<br /><br /><br />Also I'm not to sure which line to insert your scripts?]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6242#Comment_6242</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6242#Comment_6242</guid>
		<pubDate>Tue, 04 Dec 2007 04:54:53 +0000</pubDate>
		<author>kent</author>
		<description>
			<![CDATA[I dont know..<br /><br />My second post is &quot;image_verification.php&quot;]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6244#Comment_6244</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6244#Comment_6244</guid>
		<pubDate>Tue, 04 Dec 2007 05:10:18 +0000</pubDate>
		<author>amnesia</author>
		<description>
			<![CDATA[I added<br /><br />&lt;p&gt;<br />			  &lt;img src=&quot;'.$config[&quot;gallery_url&quot;].'plog-captcha.php&quot; alt=&quot;CAPTCHA Image&quot; id=&quot;captcha-image&quot; /&gt;<br />			  &lt;/p&gt;<br />			  &lt;p&gt;<br />			&lt;input type=&quot;text&quot; name=&quot;captcha&quot; id=&quot;captcha&quot; value=&quot;&quot; size=&quot;28&quot; tabindex=&quot;3&quot; /&gt;<br />			&lt;label for=&quot;url&quot;&gt;What does this say?&lt;/label&gt;<br />		      &lt;/p&gt;<br /><br />to the comments section with the call function and it's working now :D]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6245#Comment_6245</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=6245#Comment_6245</guid>
		<pubDate>Tue, 04 Dec 2007 05:32:29 +0000</pubDate>
		<author>kent</author>
		<description>
			<![CDATA[ok .. good :)]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9914#Comment_9914</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9914#Comment_9914</guid>
		<pubDate>Sat, 21 Feb 2009 08:51:38 +0000</pubDate>
		<author>MikeC</author>
		<description>
			<![CDATA[Hi Guys, I know this is old, but it seems to have worked for you both.<br /><br />I followed what you have both said and I can't get it to work.<br /><br />The image shows up and everything, but regardless of wether a code is entered, and regardless of if it is correct of not, the comment still goes for moderation.<br />If moderation is disabled, the comment is posted as normal.<br /><br />Help!]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9921#Comment_9921</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9921#Comment_9921</guid>
		<pubDate>Sun, 22 Feb 2009 09:13:10 +0000</pubDate>
		<author>Galerio</author>
		<description>
			<![CDATA[The same thing happens to me with Plogger 3.0b. Tha Captcha shows up, but whatever I enter or not a word the comment is posted.<br />What should I do?]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9922#Comment_9922</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9922#Comment_9922</guid>
		<pubDate>Sun, 22 Feb 2009 10:05:59 +0000</pubDate>
		<author>Galerio</author>
		<description>
			<![CDATA[SOVED:<br />in the file plog-functions.php you must fine the code (at line 1218):<br /><br /><code >$_SESSION['require_captcha'] = false;</code><br /><br />and delete it and paste this:<br /><br /><code >$_SESSION['require_captcha'] = true;</code><br /><br />Then in "comments.php" of your theme paste this before your "Post Comment" button:<br /><br /><code >&lt;p&gt;<br />&lt;img src=&quot;'.$config[&quot;gallery_url&quot;].'plog-captcha.php&quot; alt=&quot;CAPTCHA Image&quot; id=&quot;captcha-image&quot; /&gt;<br />&lt;/p&gt;<br />&lt;p&gt;<br />&lt;input type=&quot;text&quot; name=&quot;captcha&quot; id=&quot;captcha&quot; value=&quot;&quot; size=&quot;28&quot; tabindex=&quot;3&quot; /&gt;<br />&lt;label for=&quot;url&quot;&gt;What does this say?&lt;/label&gt;<br />&lt;/p&gt;</code>]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9928#Comment_9928</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9928#Comment_9928</guid>
		<pubDate>Sun, 22 Feb 2009 18:12:48 +0000</pubDate>
		<author>MikeC</author>
		<description>
			<![CDATA[Excellent thank you!<br /><br />I will try it tomorrow and let you know if it works or not!]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9958#Comment_9958</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=9958#Comment_9958</guid>
		<pubDate>Tue, 24 Feb 2009 13:05:16 +0000</pubDate>
		<author>MikeC</author>
		<description>
			<![CDATA[Galerio: I have just tried this, there are actually two instances of 'require_captcha' I have set both to true, and copied your code exactly.<br />Is there anything else that you have done because I am obviously doing something wrong, it is still doing the same as it was.<br /><br />Thanks for your help so far!]]>
		</description>
	</item>
	<item>
		<title>Captcha?</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=11398#Comment_11398</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=1587&amp;Focus=11398#Comment_11398</guid>
		<pubDate>Tue, 22 Sep 2009 14:02:00 +0000</pubDate>
		<author>ray_trace</author>
		<description>
			<![CDATA[Thanks Galerio! I got captcha working, woot! Although I had to do a minor modification, different path and had to wrap $config[&quot;gallery_url&quot;] in php/echo (not sure if because I'm running V3beta or not)<br /><br />&lt;p&gt;<br />&lt;img src=&quot;&lt;?php echo $config[&quot;gallery_url&quot;]?&gt;plog-includes/plog-captcha.php&quot; alt=&quot;CAPTCHA Image&quot; id=&quot;captcha-image&quot; /&gt;<br />&lt;/p&gt;<br />&lt;p&gt;<br />&lt;input type=&quot;text&quot; name=&quot;captcha&quot; id=&quot;captcha&quot; value=&quot;&quot; size=&quot;28&quot; tabindex=&quot;3&quot; /&gt;<br />&lt;label for=&quot;url&quot;&gt;What does this say?&lt;/label&gt;<br />&lt;/p&gt;]]>
		</description>
	</item>
	
		</channel>
	</rss>