A Drupal 7 version would still be nice to support older Drupal Websites.

Should not be too hard, so if someone is interested to sponsor development, the maintainers could do that :)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Anybody created an issue. See original summary.

anybody’s picture

Issue summary: View changes
anybody’s picture

Status: Active » Postponed

Postponed until someone sponsors the development.

john_b’s picture

I made a D7 version. Unless the maintainers say they prefer me not to, I will post a tar file here soon.

It is fairly straightforward apart from one gotcha: if you make the post request which sends the solution to Friendly Captcha using drupal_http_request() it will fail. The reason is probably that that function uses drupal_build_http_query(), which decodes slashes, and often there is a slash in the solution.

anybody’s picture

Hi @John_B can't you please post a patch file or create an issue fork? Zipped repositories are dangerous as you can't know their contents. So indeed nobody should open it ;)

john_b’s picture

OK. Once I have tidied up the admin form, which I will get to in a week or so, I will do that.

Another gotcha for me was copying the API / secret key field on the admin form from the reCaptcha module, where it is limited to 40 characters--too short.

john_b’s picture

I have this working on PHP 7.3.

john_b’s picture

Version: 1.0.0-beta4 » 1.x-dev
Status: Postponed » Active
john_b’s picture

Status: Active » Needs review
anybody’s picture

Version: 1.x-dev » 7.x-1.x-dev

Thanks, I created a Drupal 7 branch for you, so I guess the MR will need a rebase. Or close and create a new one, if that's too hard. We're at an early point yet.

john_b’s picture

Yes rebase is too hard... I did a fresh commit to the new branch.

anybody’s picture

Status: Needs review » Needs work

Thank you very much @John_B, code is looking really good!

Sadly you selected the wrong merge target (1.x) in the MR. You have to select 7.x-1.x. Now it needs a rebase again... ;)

  • Anybody committed 9567ee7 on 7.x-1.x
    Issue #3236280 by John_B, Anybody: Drupal 7 version
    
anybody’s picture

Status: Needs work » Fixed

Thanks @John_b. I also hate the currently missing piece of syncing the issue fork with the base repo... which leads to this trouble and rebasing... I just picked your code and created an alpha release, please have a look :)

Thank you sooo much for that great work!
Let's proceed with adjustments in a follow-up issue. I'll create one.

anybody’s picture

anybody’s picture

Update: Code-style seems to be okay, tests don't complain... Of course some of the 1.x issues could also be implemented for 7.x-1.x but that's just improvement. THANK YOU SO MUCH! :)

john_b’s picture

Sorry about the confusion with git.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.