QCaptchaTextBox

QCaptchaTextBox Will add a textbox with vaildation code to your form to prevent Spam.

The control generates a string using randomly selected font that can be found in the includes/qcubed/plugins/QCaptchaTextBox/fonts folder. So feel free to add your own fonts if you need to change the way your Captcha is rendered.

Availables Options to alter the behaviour of the Captcha.

General Captcha Options

  • CssClass : Alter wrapper CSS Class for styling purpose. (default = captchatextbox)
  • Length : Specify the Number of Characters visible. (default = 6)
  • ImageHeight : Height of the Captcha image in pixel (default = 75)

Captcha color options

  • rgbForeColor : Main text Color provided in the following format : array(int, int, int). (default = array(0,0,0))
  • rgbSignColor : Background sings Color provided in the following format : array(int, int, int). (default = array(128, 128, 128))
  • rgbBackgroundColor : Background Color provided in the following format : array(int, int, int). (default = array (255, 255, 255))

Captcha String options

  • AllowUpperCaseLetter : include Upper case Letters in the generation. (default = true)
  • AllowLowerCaseLetter : include Upper case Letters in the generation. (default = true)
  • AllowNumbers : include numbers in the generation.(default = false)
  • blnCaseSensitive : Validate character case when Comparing Image text to user Input.(default = true)

Available Image Filters options

  • blnAddSign : Add character in the background to strengthen the Captcha (default = true)
  • blnAddNoise : Add Noise to the Image. (default = false)
  • blnAddBlur : Add Blur to the Image (default = false)
  • blnAddBlur : Add Blur to the Image (default = false)