I find that the captcha input box is too long and affects the formatting of my website, is there any way it can be shortened to only 5 or 6 characters long? I thing the 20 odd it is set at is too long when the captcha only generates 4 or 5 letters.
My site is www.drworm.info

Comments

3meu’s picture

I have the same problem... :-/
Can't find how HTML for CAPTCHA is generated also...
Does anybody solved this problem?

ideviate’s picture

'#required' => TRUE,
'#size' => 15,
'#validate' => array('_captcha_validate' => array())

note that, '#size' => 15, is added between the two arrays. it must be some where line ~145 or so.

wundo’s picture

are you using Math captcha, or Textimage captcha?

ferran@drupal.org’s picture

thanks, perfect, this is working (insert line 140):
$form['captcha_response'] = array (
'#type' => 'textfield',
'#size' => 10,
'#title' => t('Math Question: What is %problem?', array('%problem' => $x .' + '. $y)),
'#defaultvalue' => '',
'#description' => t('Please solve the math problem above and type in the result. e.g. for 1+1, type 2'),
'#weight' => 0,
'#required' => TRUE,
'#validate' => array('_captcha_validate' => array())
);

ideviate’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)