[ZendTo] Re: Custom reCAPTCHA theme

SYE OOPL sye.oopl at gmail.com
Tue Aug 14 11:03:23 BST 2012


Hi ZendTo Users,

I figured out where to define the standard reCAPTCHA theme.

In /opt/zendto/www/recaptchalib.php

In function recaptcha_get_html, updated the returned string
from:

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

        <noscript>
                <iframe src="'. $server . '/noscript?k=' . $pubkey .
$errorpart . '" height="300" width="500"
frameborder="0"></iframe><br/>
                <textarea name="recaptcha_challenge_field" rows="3"
cols="40"></textarea>
                <input type="hidden" name="recaptcha_response_field"
value="manual_challenge"/>
        </noscript>';

to:

return '<script type="text/javascript">
        var RecaptchaOptions = {
            theme : \'clean\'
        };
        </script>

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

        <noscript>
                <iframe src="'. $server . '/noscript?k=' . $pubkey .
$errorpart . '" height="300" width="500"
frameborder="0"></iframe><br/>
                <textarea name="recaptcha_challenge_field" rows="3"
cols="40"></textarea>
                <input type="hidden" name="recaptcha_response_field"
value="manual_challenge"/>
        </noscript>';


cordially, Sherwin

On Tue, Aug 14, 2012 at 3:50 PM, SYE OOPL <sye.oopl at gmail.com> wrote:

> Hi ZendTo Users,
>
> Where in ZendTo do you define the reCAPTCHA theme?
>
> https://developers.google.com/recaptcha/docs/customization
>
> cordially, Sherwin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20120814/6e4ff478/attachment.html 


More information about the ZendTo mailing list