Captcha Frog Plugin
Posted by on Tue, 15 Apr 2008
Update: A newer version has been made with many bug fixes. You can find it here.
I have wrote up a simple little captcha plugin using my captcha class. To see it in action just leave my a comment.
Download Captcha Plugin For Frog CMSTo use it you need to extract the zip file to your plugin directory. Then go over to the Administration tab in the admin area of the Frog CMS site. Enable the plugin. Next you need to go over to the Snippets area and find the snippet named comment-form. Once there you need to find the area between the website and comment box area and add in this code.
<?php $myCaptcha = new Captcha(); ?>
<?php echo $myCaptcha->drawQuestion();?>
If you are confused, I have pasted my entire comment-form snippet
<form action="<?php echo $this->url(); ?>" method="post" id="comment_form">
<p>
<input class="comment-form-name" type="text" name="comment[author_name]" id="comment_form_name" value="" size="22" />
<label for="comment_form_name"> name (require)</label>
</p>
<p>
<input class="comment-form-email" type="text" name="comment[author_email]" id="comment_form_email" value="" size="22" />
<label for="comment_form_email"> email (will not be published) (required)</label>
</p>
<p>
<input class="comment-form-link" type="text" name="comment[author_link]" id="comment_form_link" value="http://" size="22"/>
<label for="comment_form_link"> website</label>
</p>
<?php $myCaptcha = new Captcha(); ?>
<?php echo $myCaptcha->drawQuestion();?>
<p>
<textarea class="comment-form-body" id="comment_form_body" name="comment[body]" cols="100%" rows="10"></textarea>
</p>
<p>
<input class="comment-form-submit" type="submit" name="commit-comment" id="comment_form_submit" value="Submit comment" />
</p>
</form>