Development

#3550 (Add possibility to change theme to reCaptcha-plugin)

You must first sign up to be able to contribute.

Ticket #3550 (closed enhancement: invalid)

Opened 4 months ago

Last modified 2 months ago

Add possibility to change theme to reCaptcha-plugin

Reported by: djoos Assigned to: bladus
Priority: minor Milestone:
Component: sfReCaptchaPlugin Version: 1.0.16
Keywords: theme, reCaptcha Cc:
Qualification: Unreviewed

Description

Right now there's no possibility to change the theme of the reCaptcha-plugin to the themes that are available for reCaptcha.

BEFORE: return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>

AFTER: return '<script>var RecaptchaOptions? = {theme : "'.sfConfig::get('app_sf_re_captcha_plugin_theme',"red").'"};</script> <script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>

Attachments

indexSuccess.php (267 bytes) - added by djoos on 05/15/08 14:16:20.
recaptcha -> sf_re_captcha_plugin
mailhideSuccess.2.php (215 bytes) - added by djoos on 05/15/08 14:16:47.
recaptcha_mailhide -> sf_re_captcha_mailhide_plugin
recaptchalib.php (9.7 kB) - added by djoos on 05/15/08 14:18:37.
Addition of changing recaptcha's theme in app.yml
sfReCaptchaValidator.class.php (1.6 kB) - added by djoos on 05/15/08 14:19:02.
recaptcha -> sf_re_captcha_plugin
mailhideSuccess.php (215 bytes) - added by djoos on 05/15/08 14:23:12.
recaptcha_mailhide -> sf_re_captcha_mailhide_plugin

Change History

05/15/08 14:16:20 changed by djoos

  • attachment indexSuccess.php added.

recaptcha -> sf_re_captcha_plugin

05/15/08 14:16:47 changed by djoos

  • attachment mailhideSuccess.2.php added.

recaptcha_mailhide -> sf_re_captcha_mailhide_plugin

05/15/08 14:18:37 changed by djoos

  • attachment recaptchalib.php added.

Addition of changing recaptcha's theme in app.yml

05/15/08 14:19:02 changed by djoos

  • attachment sfReCaptchaValidator.class.php added.

recaptcha -> sf_re_captcha_plugin

05/15/08 14:22:30 changed by djoos

  • type changed from defect to enhancement.

05/15/08 14:23:12 changed by djoos

  • attachment mailhideSuccess.php added.

recaptcha_mailhide -> sf_re_captcha_mailhide_plugin

07/09/08 14:06:12 changed by arthur.koziel

  • status changed from new to closed.
  • resolution set to invalid.

There is an easier method to do this. Simply specify a theme in the RecaptchaOptions? variable like described here:

http://arthurkoziel.com/2008/01/07/quick-recaptcha-tip-change-the-theme/