What about the standard e107 captcha.. #6000
Replies: 1 comment 1 reply
|
@Alex-e107nl there is something you can do today about the unreadable images, so I have put that first and answered your questions after it, out of order. Sorry about that. The unreadable images, and what pins themCore picks one of three fonts at random for every challenge ( You can pin the site to one font, which is your ps answered as well: yes,
<?php
$secureimg['image'] = "generic/code_bg";
$secureimg['size'] = "19";
$secureimg['angle'] = "0";
$secureimg['x'] = "1";
$secureimg['y'] = "21";
$secureimg['font'] = "puchakhonmagnifier3.ttf";
$secureimg['color'] = "204,204,204"; // red,green,blueI ran that on a master install here. Before the file, three requests for the same challenge came back as three different images; after it, all three were identical and drawn in the bold serif. Two things that will bite you otherwise. A broken-image icon after this means the font filename is wrong: the handler answers a missing font with the words "Font missing" and no image header. And once that file exists, Your questions1. Can the unusable ones be dropped at generation time? By you, yes, that is what the file above does. In core, that is a decision rather than a fix, so I have not written a patch. Beside the font, the answer alphabet includes 2. A refresh button? Nothing in core does it, and the obvious approach will not work: the answer is sealed inside the token that is in the image's own URL, so asking for that URL again redraws the same code. A new challenge means a new token, which means reloading the form page, or an endpoint that mints one. A theme-side button that reloads the page is within reach; a proper in-place refresh is the endpoint, and that is in #6022 too. 3. Visual Captcha twice. Two separate causes, and only one of them is ours. Ours is the contact form and the contact menu. Since early August, core appends a CAPTCHA block to any contact form it thinks has none, and it decides that by searching the markup for its own field name, which your plugin does not emit. That is on master and in v2.3.11. Filed as #6014, with #6033 on master and #6035 on The other one is the plugin, e107inc/visualcaptcha#3, open since 2017, which is why it reads as coming back rather than arriving. e107 asks a CAPTCHA for two things, the picture and the input field, and every core form asks for both. The plugin answers both with the same widget: For your own copy, the smallest change that holds everywhere is to make |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@e107help After updating with GitHub 18082026, all websites using the Visual Captcha plugin display the captcha twice again e107inc/visualcaptcha#3. I understand that this is a separate plugin and not a priority, but the standard captcha is often unusable, lacks a refresh button, and generates images where it is impossible to determine which letters to enter. Abuse is ruled out, but ordinary users cannot establish contact either :-)
Unusable captchas:




Usable captchas:


Question 1: Is it possible to alter the way images are build and drop the ones that are not usable?
Question 2: Is it possible to place a refresh button next to the image so that when you cannot read it you can refresh it?
Question 3: Is there a quick fix to get the Visualcaptcha working again so it shows only once?
And i do not want to use Google recaptcha etc.. screenshots taken etc. must be a local solution!
Thanks in advance!
ps: i see this in e107_images/secimg.php
Can that still be used, how and where, in a theme?
All reactions