Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2009 at 14:50 UTC
Updated:
15 May 2013 at 03:53 UTC
Jump to comment: Most recent
Comments
Comment #1
soxofaan commentedI'm not sure what you are talking about.
With the option "Add a description to the CAPTCHA" you can add a description to the fieldset.
If you are talking about a HTML-legend on a fieldset, then there should be a legend "CAPTCHA" by default. This is not configurable through the CAPTCHA admin interface.
However, in the CAPTCHA 6.x-2.x branch, the whole CAPTCHA widget (and optional fieldset) is rendered with a theme function (see captcha.module around line 265):
In your theme you can override this in the standard Drupal theming way, and change the legend ('#title' property) of the fieldset to your liking.
hope this helps.
Comment #2
Sidor commentedOk - this is embarrassing. Actually the legend was there, but I had hidden it from my style sheet. Sorry about that :)
However, the reason to hiding it was that I didn't like the title, so your reply actually solved my problem. Thanks!
Comment #3
soxofaan commentedyou're welcome
Comment #5
vthirteen commentedis there a way to change form label ("Math question" for instance) and text without changing module files?
i see that they're generated by function captcha_captcha in captcha.module but i think it's not themeable, isn't it? (although it is translatable).
thank you
Comment #6
soxofaan commentedThere are several ways to achieve this (hook_form_alter with a custom module, custom theming), but the easiest is probably the string overrides module (or the locale module from core, when you are using multiple languages on your site)
Comment #8
Anonymous (not verified) commentedActually on my site it's hidden too, but I didn't hide it. Any clues how to activate "Add a description to the CAPTCHA"?
Thanks,
Jan
Comment #9
qmjeelani commentedI works for me. Thanks soxofaan
Comment #10
stephen ollmanOk slightly different approach to this question.
At the moment the maths element is not correctly accessible in that the actual maths question 1+2 = is not part of the element thus is not associated with the input filed and not read out to the user.
How can I amend the form to include the maths question inside the elements?