Advertisement:

Author Topic: reCaptcha 2.0  (Read 1762 times)

pixelpadre

  • Jr. Member
  • **
  • Posts: 76
reCaptcha 2.0
« on: September 01, 2017, 02:36:30 am »
Ok so I opted for the latest version of captcha.  However, when I try to contact the seller through contact form I am asked to type the two words seen above........which dont exist  i new version of captcha.




marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: reCaptcha 2.0
« Reply #1 on: September 17, 2017, 11:59:14 pm »
Ok so I opted for the latest version of captcha.  However, when I try to contact the seller through contact form I am asked to type the two words seen above........which dont exist  i new version of captcha.



I also had this problem and resolved it

/oc-content/themes/bender/item-sidebar.php


From recaptcha  v1:
"
<span class="recaptcha_only_if_image"><?php _e('Enter the words above','bender'); ?>:</span>
<input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
"

so my code looks like this now

Code: [Select]
                <div class="control-group">
                    <div class="controls">
                        <?php osc_run_hook('item_contact_form'osc_item_id()); ?>
                        <?php if( osc_recaptcha_public_key() ) { ?>
                        <script type="text/javascript">
                            var RecaptchaOptions = {
                                theme : 'custom',
                                custom_theme_widget: 'recaptcha_widget'
                            };
                        </script>
                        <style type="text/css">
                          div#recaptcha_widget, div#recaptcha_image > img { width:240px; margin-top: 5px; }
                          div#recaptcha_image { margin-bottom: 15px; }
                        </style>
                        <!-- <div id="recaptcha_widget">
                            <div id="recaptcha_image"><img /></div>
                            <span class="recaptcha_only_if_image"><?php _e('Enter the words above','bender'); ?>:</span>
                            <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                            <div><a href="javascript:Recaptcha.showhelp()"><?php _e('Help''bender'); ?></a></div>
                        </div> -->
                        </div>
                        <?php ?>
                        <?php osc_show_recaptcha(); ?>
                        <button type="submit" class="ui-button ui-button-middle ui-button-main"><?php _e("Send"'bender');?></button>
                    </div>
                </div>
            </form>

but I removed this part:

Code: [Select]
                        <!-- <div id="recaptcha_widget">
                            <div id="recaptcha_image"><img /></div>
                            <span class="recaptcha_only_if_image"><?php _e('Enter the words above','bender'); ?>:</span>
                            <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                            <div><a href="javascript:Recaptcha.showhelp()"><?php _e('Help''bender'); ?></a></div>
                        </div> -->
« Last Edit: September 18, 2017, 12:10:38 am by marius-ciclistu »

leegriffiths

  • Newbie
  • *
  • Posts: 16
Re: reCaptcha 2.0
« Reply #2 on: April 25, 2018, 01:37:31 pm »
Since they turned off v1 captcha v2 doesn't work in Bender so I tried your solution. Sill just get "The Recaptcha code is wrong" - it looks like Bender doesn't implement v2 properly. Anyone have the same problem ?

CiTrader

  • Newbie
  • *
  • Posts: 9
Re: reCaptcha 2.0
« Reply #3 on: May 24, 2018, 05:01:02 am »
I have same problem and both times are fresh installs

aussiemike

  • Newbie
  • *
  • Posts: 1
Re: reCaptcha 2.0
« Reply #4 on: May 28, 2018, 04:06:15 am »
I am also having this issue.

Osclass 3.7.1
bender 3.1.4

The reCAPTCHA was not entered correctly' comes up on registration page.

Not sure where else this may happen as I have not been able to create a test user account.

Regards
Mike

theinvisible

  • Sr. Member
  • ****
  • Posts: 311
Re: reCaptcha 2.0
« Reply #5 on: June 06, 2018, 07:42:00 pm »
I checked with osclasswizards 3.7.1 and i didn't put any words in the old recaptcha words box. And it is working fine for me.