Advertisement:

Author Topic: reCAPTCHA for SMF  (Read 408549 times)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,158
  • Gender: Male
    • i30 Owners Club
Re: reCAPTCHA for SMF
« Reply #940 on: August 21, 2019, 01:32:10 PM »
I found a bug that prevents the verification questions from displaying properly (if enabled).

This line:
Code: [Select]
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;

Needs to be changed to:
Code: [Select]
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;

in GenericControls.template.php


https://www.simplemachines.org/community/index.php?topic=213535.msg3992720#msg3992720

Offline szinski

  • Jr. Member
  • **
  • Posts: 114
  • Gender: Male
  • Programmer by day, photographer by night.
    • Pizza Making
Re: reCAPTCHA for SMF
« Reply #941 on: August 21, 2019, 01:38:04 PM »
Thanks, looks I missed that and had to figure it out on my own.