TNG captcha

From Genwiki

Revision as of 21:05, 22 July 2006 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If you are not comfortable with html and php editing, this page may not be for you


Overview

This TNG modification provides a CAPTCHA for the TNG "New User Registration" form. It will provide a user challenge screen before the registration form will be made available.

This implementation is based upon PureMango's code version 1.4. Check the link for a demo of how it works. The original package from PureMango contains an additional php wrapper file as that provides the demo example.


Requirements

  1. A working TNG installation - see The Next Generation of Genealogy Sitebuilding
  2. A backup of your TNG files


TNG Modifications

The following zip file contains the necessary files to allow the addition of this feature.

  • The zip file TNG_captcha.zip contains:
    • the "freecap" fonts, backgrounds, dictionary, and freecap.php file
    • newacctform.php - a modified TNG 5.1.4 file


  • IF you are running v 5.1.4 then

If you have previously modified your TNG newacctform.php file, do not continue. You WILL lose any changes to that file you have previously made.

  1. backup your existing TNG v5.1.4 newacctform.php file
  2. download this zip (TNG_captcha.zip)
  3. unzip it, examine the contents
  4. create a "freecap" folder in the main TNG directory
    • make sure it is readable and executable by all
  5. copy all the ".ht****" files to the new "freecap" folder
    • ensure they are all readable
    • the freecap.php should be executable
  6. copy the * read the section below regarding the get_google function modification
  7. copy the gif, get_google.php, and your modified personlib.php to your base TNG directory
  8. check it out


  • IF you are NOT running v5.1.4 or you HAVE made changes to personlib.php then, you are on your own, however, the modifications are reasonably straight forward. If you are not completely comfortable doing this sort of update, then try upgrading to TNG v5.1.4 first. If you are still intent on trying it, the procedure above will likely be very close.


  • In the event of a problem with your TNG site
  1. copy your backup newacctform.php to your base TNG directory
    • all should be well now
  2. you may also delete the "freecap" folder and files


Support

  1. You're sort of on your own... If you have a specific question, or feel some additional info in the above would help others, feel free to contact me directly. Mail me here
    • Please post suggestions, or your own flavour of this mod to the forum or list
Personal tools