Captcha Frog Plugin Update

Posted by ajcates on Fri, 18 Apr 2008

EDIT: I have updated this plugin to work in Frog 9.3

Before my Captcha plugin had a couple of major bugs, I have fixed all of the bugs I was aware of. You still use the plugin the same way as before.

If you do not know how to use this plugin a tutorial is located here. Make sure you download the most updated version of the plugin tho.

Changes:

  • Uses Sessions
  • Backwards compatible
  • Blank answers are treated as wrong answers.
  • Fixed case sensitivity
xmlcaptcha1.5.zip Download

Captcha Class Upgrade

Posted by ajcates on Fri, 18 Apr 2008

It has been brought to my attention that hiding variables inside, HTML code is not the smartest thing to do, so I have rebuilt my Captcha class with php sessions. I also plan to upgrade my Frog plugin as well.

Download xmlcaptcha1.5.zip

If you do not know how to use this class there is a sample version of it being used in the index.php file of the zip download.

Pictures of Niko

Posted by ajcates on Thu, 17 Apr 2008

It was asked that I host some pictures of my friend Michele and J.P.'s new little boy, his name is Niko.

Picture of Niko Picture of Niko

Captcha Frog Plugin

Posted by ajcates 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 CMS

To 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>

Simple Captcha with PHP & XML

Posted by ajcates on Tue, 15 Apr 2008

Edit! I have upgraded this class, read about it here

I have written up a little captcha class. It doesn't use images like a standard cpatcha but rather simple questions the user has to answer like why is sky blue? It uses a XML file for the question.

The class has a function called drawQuestion() witch will return the HTML form part of the captcha. The other function is called correct() witch will check the POST header variables and see if the person answered the question correctly. The correct() function will return true or false depending on if the user was correct or not.

The download has an example usage of the class, along with some standard questions.

Download Captcha Class

Pages:  1 2 3 4 5 6 7 8

Copyright 2010 A.J. Cates - Valid XHTML - Powered by Frog CMS