News:

Wondering if this will always be free?  See why free is better.

Main Menu

Image for Anti-Spam Verification Questions

Started by GL700Wing, January 08, 2021, 09:30:46 PM

Previous topic - Next topic

Shades.

Here's one I made free to anyone that wants to use it! 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Dave J

Quote from: Shades. on March 22, 2022, 12:13:39 AMAnd another! ;)

Shades,

As was pointed out to me, the images using colours are not friendly to colour-blind people, that's why I added the names of the colours to my boxes.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

DenDen60

#43
I use a verification questions image URL. In the image, I ask people to add the numbers in an image, but one person told me he was color blind. Hence I added the colors name in the image.

GL700Wing

Version 1.4 - 22-Apr-22
o Added support from SMF 2.1
o Removed support from SMF 2.1 RC4
o Included sample images in ./Themes/default/images/VerificationImages
Life doesn't have to be perfect to be wonderful ...

Dave J

#45
For some reason after upgrading today to V1.4 (I did uninstall the previous version) I'm now getting this error

Undefined variable: _SESSION in /****/****/public_html/Themes/default/languages/Modifications.english.php on line 111
This is the code it's referring to

// Image for Anti-Spam Verification Questions Mod
global $modSettings, $sourcedir, $scripturl, $webmaster_email;
unset($_SESSION['hide_verification']);
if (file_exists($sourcedir . '/contactHooks.php') && file_exists($sourcedir . '/Contact2.php') && !empty($modSettings['smfcontactpage_email']) && allowedTo('view_contact'))
{
$_SESSION['hide_verification'] = true;
$image_help_href = $scripturl . '?action=contact';
}
else
$image_help_href = 'mailto:' . $webmaster_email;
$txt['verification_image_help'] = '<a href="' . $image_help_href . '"><strong class="alert" style="font-size: 120%;">Help - I can\'t see the verification image!</strong></a>';

Any ideas GL?

I should add that it's from the root log not the SMF log and I'm using SMF2.1.2
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Sir Osis of Liver

unset($_SESSION['hide_verification']);

If the variable has not been defined, unset may cause the error.  You can check that by defining the variable before the unset statement -

if (!isset($_SESSION['hide_verification']))
    $_SESSION['hide_verification'] = null;
unset($_SESSION['hide_verification']);

Or you can not worry about it if the mod works.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

GL700Wing

Version 1.5 - 07-Jul-22
o Added support from SMF 2.1.2
o Fixed bug reported by Dave J.
Life doesn't have to be perfect to be wonderful ...

Dave J

Quote from: GL700Wing on July 07, 2022, 12:08:10 AMVersion 1.5 - 07-Jul-22
o Added support from SMF 2.1.2
o Fixed bug reported by Dave J.

Thanks GL
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Westwegoman

Installed on 2.1.2 but get the following on the registration page when trying to register.

I have it installed on several 2.0.19 forums and it works great there. Not sure what happened.


Fatal error: Uncaught ValueError: Unknown format specifier ";" in /homepages/13/xxxxxxxxx/htdocs/bps/Themes/default/GenericControls.template.php:269 Stack trace: #0 /homepages/13/xxxxxxxxxx/htdocs/bps/Themes/default/GenericControls.template.php(269): sprintf('<a href="%1$s">...', 'mailto:webmaste...') #1 /homepages/13/xxxxxxxxx/htdocs/bps/Themes/default/Register.template.php(301): template_control_verification('register', 'all') #2 /homepages/13/xxxxxxxxxxx/htdocs/bps/Sources/Load.php(2760): template_registration_form() #3 /homepages/13/xxxxxxxxxxx/htdocs/bps/Sources/Subs.php(4155): loadSubTemplate('registration_fo...') #4 /homepages/13/xxxxxxxxxx/htdocs/bps/index.php(194): obExit(NULL, true, true) #5 {main} thrown in /homepages/13/xxxxxxxx/htdocs/bps/Themes/default/GenericControls.template.php on line 269

GL700Wing

#50
Version 1.6 - 06-Sep-22
o Fixed PHP 8.x bug reported by Westwegoman.



Quote from: Westwegoman on September 05, 2022, 01:08:23 AMInstalled on 2.1.2 but get the following on the registration page when trying to register.

<Snip>
@Westwegoman - Thanks for reporting this issue.  It took me a while to work out what was - and wasn't happening - because the error messages were in the system/server logs rather than the forum logs.  Anyway, turns out it's an obscure issue related to PHP 8.x (doesn't happen with PHP 7.x) so I've fixed the problem code and confirmed that the mod is now working with PHP 8.x.
Life doesn't have to be perfect to be wonderful ...

Westwegoman

Thanks! Works perfect now! I've been waiting for something like this for a while. Some time back, when I used Yabb, they had a similar mod and it worked wonders. This should help a lot when it comes to spamtards.

Advertisement: