| Added: October/15/2007 at 6:48pm | IP Logged
|
|
|
These are directions to use the CJWSoft Captcha System with the ASPProtect registration page.

Instructions:
Purchase the CJWSoft Captcha System
Unzip that download and copy the "captcha" directory into the ASPProtect "users" folder.
edit the "captcha/config_inc.asp" Enter the correct path for the "display_captcha_path" value Enter the correct path for the "border_images_path" value
There are other settings in that file and they all commented.. For now though I woud suggest you leave the other settings alone. (they are optional and you can come back to them after you get the basics working)
Now edit "users/register.asp" with a text editor and add the code shown below in blue. The code to add goes near the bottom of the form right above the submit button. Just add the blue code. The code around it is shown to help you find the area of code where it gets placed.
<tr> <td valign="top" align="right"><font face="Arial" size="2"><strong> Newsletter</strong></font></td> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; <td valign="top"> <input type="checkbox" name="Newsletter" value="True" checked> <font face="Arial" size="1">Do you want to be subscribed to the newsletter ?</font></td> </tr>
<tr> <td valign="top" align="right"><font face="Arial" size="2"><strong> Human Verification</strong></font></td> <td valign="top"><!--#include file = "captcha/create_captcha_inc.asp"--></td> </tr>
<tr> <td colspan="2" bgcolor="#FFFFFF"> <p align="center"><input type="submit" value="Register"></p> </td> </tr>
ok, now edit "users/add_new_account.asp" with a text editor and add the code shown below in blue. Just add the blue code. The code around it is shown to help you find the area of code where it gets placed.
If User_Custom6_Used = True Then If User_Custom6_Required = True Then If Custom6 = "" Then ErrorMessage = ErrorMessage & Server.URLEncode("You need to enter a " & User_Custom6_Name &".\n\n") End IF End If End If ToCheck = LCase(Request("ToCheck")) If Session("CAPTCHA") <> "" And ToCheck = Session("CAPTCHA") Then else ErrorMessage = ErrorMessage & Server.URLEncode("You did not type in the verification info correctly.\n\n") End If If ErrorMessage <> "" Then Response.Redirect "register.asp?" & Request.Form & "&ErrorMessage=" & ErrorMessage Response.End End If
Your done. You just added a Capcha Security Image to your signup form.

__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|