Sweet Captcha
[resolved] multiple instances (2 posts)

  1. jdsandbox
    Posted 3 years ago #

    Would be *extra sweet* if I could use multiple captchas on a single page. I've got a single page with multiple (tabbed) forms for registration and password reset. I would like to have separate sweet captchas for each of these tabs, but it doesn't seem to work. The second one doesn't allow me to drop the item on the target image. Here's the codez I'm using to generate the captchas:

    function my_get_captcha_html(){
        global $sweetcaptcha_instance;
        $result = $sweetcaptcha_instance->get_html();
        if (isset($_POST['errors'])){
            $msg = $_POST['errors']->get_error_message('sweetcaptcha');
            if($msg != '')
                $result .= '<script type="text/javascript">jQuery("#captchi").addClass("field_error");</script><span class="field_error">'.$msg.'</span>';
        return $result;

    Is this possible? (using sweet captcha v2.4.3.6)


  2. Sweet Captcha
    Plugin Contributor

    Posted 3 years ago #

    Hi jdsandbox,

    "extra sweet" we like!!

    Can you please drop us a mail at:

    please provide the following info:
    A. WordPress version you are using.
    B. A live link to your site - that we can examine better the issue.

    We will try our best to solve this issue, [ Ad copy removed ]


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.