Link to the mod (https://custom.simplemachines.org/index.php?mod=4278)
Image for Anti-Spam Verification Questions - v1.6
Custom Image for use with Anti-Spam Verification Questions
Following on from a tip (https://www.simplemachines.org/community/index.php?topic=575145.msg4070373#msg4070373) shared by Sir Osis of Liver (https://www.simplemachines.org/community/index.php?action=profile;u=424443) this mod has been created to enable Admins to use a custom image for the anti-spam verification questions that are created via Administration Center >> Security and Moderation >> Anti-Spam. The custom image will be displayed everywhere verification is required (eg, registration, guest searches, guest posting, guest reporting posts, etc).
Suggestion: Save the verification image to the forum default theme images folder (eg, ./Themes/default/images).
This mod also includes some safeguards just in case the verification image cannot be accessed via the supplied URL and/or if the verification image cannot be seen on the pages on which it is displayed:
1. A message will be displayed in the Admin Center if the verification image URL is not valid; and
2. On the pages on which the verification image is displayed a link to contact the webmaster is provided if the verification image cannot be seen.
Also, and even though the verification image size is displayed at a maximum pixel resolution of 300x300 on the registration page, the full-sized version of the image will be displayed in a new window/tab by clicking on it.
Release History:
1.0 - 28-Dec-20
o Initial Release with support only for SMF 2.0.17
1.0 - 09-Jan-21
o Added installer support for SMF 2.0.18 (no code change for mod)
1.1 - 25-Jul-21
o Added support from SMF 2.1 RC4
o Minor layout improvement for SMF 2.0
1.2 - 02-Jan-22
o Bug fix for SMF 2.1 RC4
1.3 - 12-Jan-22
o Added support for Contact Page (https://custom.simplemachines.org/index.php?mod=377) mod.
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
1.5 - 07-Jul-22
o Added support from SMF 2.1.2
o Fixed bug reported by Dave J (https://www.simplemachines.org/community/index.php?msg=4130044).
1.6 - 06-Sep-22
o Fixed PHP 8.x bug reported by Westwegoman (https://www.simplemachines.org/community/index.php?msg=4134058).
License
Copyright 2020-2023 Kathy Leslie
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Very cool. I dig it.
Mhm, very cool ;).
Nicely done, GL!
Just wanted to say that I think this is great. I created my own image to use also.
Thank you GL
Uploaded 1.1 - 25-Jul-21
o Added support from SMF 2.1 RC4
o Minor layout improvement for SMF 2.0 versions
Quote from: GL700Wing on July 26, 2021, 02:25:30 AM
Uploaded 1.1 - 25-Jul-21
o Added support from SMF 2.1 RC4
o Minor layout improvement for SMF 2.0 versions
GL should we uninstall the old version before installing the update?Ignore that..the answer is yes just tested it on my test site and you need to uninstall the old one first.
I have an issue.
I have installed this mod v1.1 on 2.1RC4
image lives in the public_html directory with URL set as https://ytyak.com/antispam.png
In the admin section I can see it and set it up HOWEVER when I go to register as a new user the image does not appear!
Solution?
Not sure if that'd break it but the mod adds this to the css
/* Image for Anti-Spam Verification Questions Mod */
input#qa_verification_image_url
{
width: calc(100% - 20px);
}
Did you also install it on your current theme?
I'm not sure what you mean by "Not sure if that'd break it but the mod adds this to the css" ?
Yep sure did install on current theme.
I had someone else check and they told me:
QuoteIt's not working for me either, on any 2.1 theme, including default.
I upload the image and can view it in my browser, so I copy the full image URL directly from the browser and paste it in the admin Anti Spam page ...... and I get "ERROR - The URL for the verification questions image is invalid!"
Is there a specific place the image needs to be uploaded to?
Quote from: GL700Wing on January 08, 2021, 09:30:46 PMSuggestion: Save the image you want to use to the forum's 'images' folder.
I'm not sure if that means to create a folder in the forum root named images or if that means in the default themes image folder
looking at the parse of the mod I'm assuming you put the url of the image somewhere in your admin
Quote from: landyvlad on December 06, 2021, 04:41:47 PMIs there a specific place the image needs to be uploaded to?
The image needs to be uploaded to a folder/directory that guests have read access to - on the forum where I use this mod the verification image is saved as https://my-forum.com/forum/images/verification.jpg
OK I'll try that ta.
Quote from: GL700Wing on December 08, 2021, 02:12:47 AMThe image needs to be uploaded to a folder/directory that guests have read access to - on the forum where I use this mod the verification image is saved as https://my-forum.com/forum/images/verification.jpg
Hmm I had a look and my 2.1 forum is in the root directory (eg public_html) and there is no images folder.
What I have is
Quotepublic_html
.well-known
attachments
avatars
cache
custom_avatar
Packages
Smileys
Sources
Themes
TinyPortal
tp-downloads
tp-files
tp-images
So the only image folders are that for TinyPortal and one buried several levels deep in each of the the theme folders.
I just tried putting in the featehr theme images folder (my forum default) and updating the URL in teh anti-spam section (above the questions) but it is still not visible when attempting to register as a new member.
Advice?
I created the 'images' folder/directory in the 'forum' folder/directory and copied the verification image there ...
So a new subfolder in the main public_html called 'images' ?
Quote from: landyvlad on December 27, 2021, 12:46:38 AMSo a new subfolder in the main public_html called 'images' ?
Yes
Quote from: landyvlad on December 27, 2021, 12:46:38 AMSo a new subfolder in the main public_html called 'images' ?
I use a folder/directory named
'images' in the main folder/directory of my forum (ie, it's at the same level as
Packages,
Smileys,
Sources,
Themes, etc).
Definitely working on my SMF 2.0 forum ...
OK well I have done that - the file is in a folder called images in the same directory as poer GL700 above.
In the anti-spam settings I have nominated the image location as
Under admin - configuration - anti-spam
Verification questions image URL is set to https://ytyak.com/images/antispam.png
Number of questions required is set to 2.
I can see it there as an admin, BUT if I log out and try to register as a new member
https://www.ytyak.com/index.php?action=signup
it still doesn't show up.
Thoughts?
PM sent ...
Uploaded 1.2 - 02-Jan-22
o Bug fix for SMF 2.1 RC4
@landyvlad - The SMF 2.1 RC4 issue you were experiencing was caused by a missing variable definition - now fixed!
Nice mod! 8)
How can I have the link that says "Help - I can't see the verification image!" on registration page point to my contact page (action=contact) instead of directly linkng to and showing my email address?
Quote from: Shades. on January 10, 2022, 07:28:18 PMNice mod! 8)[/url]
Thanks
QuoteHow can I have the link that says "Help - I can't see the verification image!" on registration page point to my contact page (action=contact) instead of directly linkng to and showing my email address?
I assume you're using the Contact Page (https://custom.simplemachines.org/index.php?mod=377) mod ...
I've had a look at this but it's not as simple as I had hoped because if verification questions/answers (with or without an image) are enabled sending a message via the contact page requires the verification questions to be answered ...
I'll keep working on integrating this mod with the Contact Page mod ...
Quote from: GL700Wing on January 11, 2022, 06:37:14 PMI assume you're using the Contact Page (https://custom.simplemachines.org/index.php?mod=377) mod ...
I've had a look at this but it's not as simple as I had hoped because if verification questions/answers (with or without an image) are enabled sending a message via the contact page requires the verification questions to be answered ...
I'll keep working on integrating this mod with the Contact Page mod ...
Yes thanks! :)
(Oh I see how that could complicate things!)
Edited to say: Kinda defeats the purpose of the contact mod now I think about it cause the email will be exposed on the contact page! :o
Quote from: GL700Wing on January 11, 2022, 06:37:14 PMI'll keep working on integrating this mod with the Contact Page mod ...
Meanwhile can I cut out the part of the code that shows the "Help - I can't see the verification image!" section and if so can you tell me what code to remove?
And just a thought (I don't know how it works) but is there a way to show an error in admin when an image is not working or maybe the guest could click that link that goes to email and it just automatically sends an error to admin or something along those lines? (I know it would have to be coded, if even possible at all)
But I like this mod and would be happy if I could just remove that part of the code! ;)
(Edited to say: I found it in modifications.english.php thanks!)Thanks! 8)
I just uninstalled this mod to update my test forum and then reinstalled it and when I went to Anti-Spam in Admin I had 15 questions showing that I had created before but when I clicked on save after turning the Anti-Spam back on all my questions and answers were gone. Any ideas how to fix this to keep it from happening?
SMF 2.1RC4
Quote from: Shades. on February 06, 2022, 09:48:29 PMI just uninstalled this mod to update my test forum and then reinstalled it and when I went to Anti-Spam in Admin I had 15 questions showing that I had created before but when I clicked on save after turning the Anti-Spam back on all my questions and answers were gone. Any ideas how to fix this to keep it from happening?
SMF 2.1RC4
This mod doesn't manage the anti-spam questions/answers in the database - all it does is give you the option to display an image to use with the questions/answers.
What update did you make to your forum?
Quote from: GL700Wing on February 11, 2022, 02:44:05 AMQuote from: Shades. on February 06, 2022, 09:48:29 PMI just uninstalled this mod to update my test forum and then reinstalled it and when I went to Anti-Spam in Admin I had 15 questions showing that I had created before but when I clicked on save after turning the Anti-Spam back on all my questions and answers were gone. Any ideas how to fix this to keep it from happening?
SMF 2.1RC4
This mod doesn't manage the anti-spam questions/answers in the database - all it does is give you the option to display an image to use with the questions/answers.
What update did you make to your forum?
I think I'm having issues with another mod causing my problems. Thanks 8)
Quote from: Shades. on February 11, 2022, 01:04:14 PMI think I'm having issues with another mod causing my problems. Thanks 8)
Thanks for letting me know - and I hope you get the issue other mod resolved.
2.1.1 here, made the change from 2.0.19 yesterday.
PHP 7.1.26
Used package manager to add new package. Upload successful.
When I try "install" it does not install, gave me warning that it is either not compatible or corrupted.
Deleted, uploaded again, same result.
NEVER MIND.
I downloaded it again, uploaded again, and now it works.
Thank You for the mod. It is very effective and appreciated.
??? Installing this mod doesn't change anything, either on client forum or 2.0.19 test install. How does it work?
n/m, I see it now. Have to provide your own image. Thought default image was included with mod. It's a bit confusing, installing it this way.
Quote from: Sir Osis of Liver on March 08, 2022, 05:34:46 PMn/m, I see it now. Have to provide your own image. Thought default image was included with mod. It's a bit confusing, installing it this way.
Noted - will include a default image with the next release ...
Future request:
Any way to make it where when you uninstall and then reinstall it the "Require verification on registration page" and "Post count under which users must pass verification to make a post" will still be set upon reinstall? O:)
Just so when I have to uninstall it and then reinstall it, for odd reasons (LOL), it still has the same settings when I reinstall it.
No biggie just thought I'd ask! ;) 8)
Quote from: GL700Wing on March 09, 2022, 05:26:41 AMQuote from: Sir Osis of Liver on March 08, 2022, 05:34:46 PMn/m, I see it now. Have to provide your own image. Thought default image was included with mod. It's a bit confusing, installing it this way.
Noted - will include a default image with the next release ...
GL feel free to use the one I created if you wish (attached), unless you have one of your own
Quote from: Shades. on March 10, 2022, 09:57:12 PMFuture request:
Any way to make it where when you uninstall and then reinstall it the "Require verification on registration page" and "Post count under which users must pass verification to make a post" will still be set upon reinstall? O:)
Just so when I have to uninstall it and then reinstall it, for odd reasons (LOL), it still has the same settings when I reinstall it.
No biggie just thought I'd ask! ;) 8)
I'm still away on holidays until the end of next week but from what I can remember this mod does not change the settings you're referring to when it is either installed or uninstalled - however I'll check and let you know ...
Quote from: Dave J on March 11, 2022, 02:46:42 AMGL feel free to use the one I created if you wish (attached), unless you have one of your own
Thanks - I might actually include a few different images (including yours) in the next release ...
Quote from: GL700Wing on March 11, 2022, 03:00:30 AMQuote from: Dave J on March 11, 2022, 02:46:42 AMGL feel free to use the one I created if you wish (attached), unless you have one of your own
Thanks - I might actually include a few different images (including yours) in the next release ...
Enjoy your holiday. No problem GL
Here's one I made free to anyone that wants to use it! 8)
And another! ;)
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.
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.(https://citizensandsocieties.org/Community/Themes/default/images/Spam_prevention.png)
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
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
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.
Version 1.5 - 07-Jul-22
o Added support from SMF 2.1.2
o Fixed bug reported by Dave J (https://www.simplemachines.org/community/index.php?msg=4130044).
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 (https://www.simplemachines.org/community/index.php?msg=4130044).
Thanks GL
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
Version 1.6 - 06-Sep-22o Fixed PHP 8.x bug reported by Westwegoman (https://www.simplemachines.org/community/index.php?msg=4134058).
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.
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.
I am running a SMF 2.0.19 board and lately I am having spammers registering on the forum. Previously I had the "Image for Anti-Spam Verification Questions Mod", which was very good.
I have downloaded this mod however it doesn't appear to be suitable for version 2.0.19 due to the mod scripts on two of the files are incorrect.
./Themes/default/Contact2.template.php Doesn't exist
./Themes/default/css/index.css Doesn't have the ?> so the file cannot be edited.
Anyone using this mod on 2.0.19? or if not is there another antispam mod that works well?
Don't know what that Contact2.template.php is about, but I'd wager that if it doesn't exist you can ignore it (like the package manager should tell you too).
You can go ahead and install the mod, then manually add the code for index.css at the end of the file.
Just copy this
/* Image for Anti-Spam Verification Questions Mod */
input#qa_verification_image_url
{
width: calc(100% - 20px);
}
And paste it in index.css at the very end.
For any further questions about the mod, it's better to post in it's own support topic.
https://www.simplemachines.org/community/index.php?topic=576301.0
Also, please note for future: questions regarding specific mods should be asked in the thread dedicated to supporting that specific mod.
Quote from: cjazz on January 07, 2025, 09:23:27 AMI am running a SMF 2.0.19 board and lately I am having spammers registering on the forum. Previously I had the "Image for Anti-Spam Verification Questions Mod", which was very good.
I have downloaded this mod however it doesn't appear to be suitable for version 2.0.19 due to the mod scripts on two of the files are incorrect.
@cjazz I am the author of the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod and I have confirmed that the mod installs without error and correctly updates the
./Themes/default/css/index.css file on a new installation of SMF 2.0.19 (ie, without any mods).
Quote./Themes/default/Contact2.template.php Doesn't exist
The mod installer will skip this file (it's part of the Contact Page (https://custom.simplemachines.org/index.php?mod=377) mod) if it doesn't exist (ie, it does not generate an error message).
Quote./Themes/default/css/index.css Doesn't have the ?> so the file cannot be edited.
CSS files do not end with ' ?> ' (those characters are found at the end of PHP script files) and even though the SMF installer
incorrectly shows that it is searching for these characters the installation script itself does not search for them - it simply adds the mod code to the end of the file.
So I have a question: did the SMF installer report any errors while trying to install the mod?
Finally, please ensure you are using the latest version of the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod.
Quote from: Aleksi on January 07, 2025, 10:00:42 AMFor any further questions about the mod, it's better to post in it's own support topic.
https://www.simplemachines.org/community/index.php?topic=576301.0
Hi Aleksi,
Would you (or someone who has the correct permissions) please merge this topic with the mod's support topic (I don't have permission to do this).
Thanks.
Done.
Quote from: GL700Wing on January 12, 2025, 05:50:26 PMQuote from: Nodaz on January 12, 2025, 03:30:29 PM... any other insight recommendations?
The Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod with relevant questions is very effective.
I took a look at The Image for Anti-Spam Verification Questions mod and quitw honestly i dont understand what it is or how it works.
This is the extent of the description
"
Custom Image for use with Anti-Spam Verification Questions
Following on from a tip shared by Sir Osis of Liver this mod has been created to enable Admins to use a custom image for the anti-spam verification questions that are created via Administration Center >> Security and Moderation >> Anti-Spam. The custom image will be displayed everywhere verification is required (eg, registration, guest searches, guest posting, guest reporting posts, etc).
Suggestion: Save the verification image to the forum default theme images folder (eg, ./Themes/default/images).
This mod also includes some safeguards just in case the verification image cannot be accessed via the supplied URL and/or if the verification image cannot be seen on the pages on which it is displayed:
1. A message will be displayed in the Admin Center if the verification image URL is not valid; and
2. On the pages on which the verification image is displayed a link to contact the webmaster is provided if the verification image cannot be seen.
Also, and even though the verification image size is displayed at a maximum pixel resolution of 300x300 on the registration page, the full-sized version of the image will be displayed in a new window/tab by clicking on it.What image am i supposed to save, and if is display what is its function?
Quote from: Nodaz on January 15, 2025, 06:50:49 PMWhat image am i supposed to save ...
You can use one of the supplied images or you can use one of your own [you should save the image you want to use to the forum default theme images folder (eg, ./Themes/default/images)].
Quote... and if is display what is its function?
You enter the path to the custom image immediately below the
'Number of verification questions user must answer' field and then you create verification questions specifically related to the custom image. Example:
IMG_2641.jpeg
The custom image will be displayed above the questions everywhere verification is required (eg, registration, guest searches, guest posting, guest reporting posts, etc).
IMG_2642.jpeg
Here's a custom image with some of the verification questions I use on one of my forums:
IMG_2644.jpeg
Thank you for that explanation, i am going to take a look at this and see if i can get it working.
Quote from: GL700Wing on January 12, 2025, 05:50:26 PMQuote from: Nodaz on January 12, 2025, 03:30:29 PM... any other insight recommendations?
The Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod with relevant questions is very effective.
Ive download and uploaded the mod ( not installed yet)
curious is you can explain this in the validation results:
https://i.imgur.com/6NQzHDV.png
And if there is and issue here with the skipped file.
https://i.imgur.com/I7Yc6EC.png
Quote from: Nodaz on January 28, 2025, 05:10:04 PMIve download and uploaded the mod ( not installed yet)
curious is you can explain this in the validation results:
https://i.imgur.com/6NQzHDV.png
Those messages are not uncommon and relate to issues to do with connecting to the main SMF third-party mod site and the main SMF download site and have nothing to do with the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod (and they do not mean there is an issue with the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) or any other mod).
QuoteAnd if there is and issue here with the skipped file.
https://i.imgur.com/I7Yc6EC.png
The skipped file is for the Contact Page (https://custom.simplemachines.org/index.php?mod=377) mod which the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod also supports/integrates with - the file is skipped if you don't already have that mod installed.
Quote from: GL700Wing on January 28, 2025, 11:28:04 PMQuote from: Nodaz on January 28, 2025, 05:10:04 PMIve download and uploaded the mod ( not installed yet)
curious is you can explain this in the validation results:
https://i.imgur.com/6NQzHDV.png
Those messages are not uncommon and relate to issues to do with connecting to the main SMF third-party mod site and the main SMF download site and have nothing to do with the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod (and they do not mean there is an issue with the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) or any other mod).
QuoteAnd if there is and issue here with the skipped file.
https://i.imgur.com/I7Yc6EC.png
The skipped file is for the Contact Page (https://custom.simplemachines.org/index.php?mod=377) mod which the Image for Anti-Spam Verification Questions (https://custom.simplemachines.org/index.php?mod=4278) mod also supports/integrates with - the file is skipped if you don't already have that mod installed.
Thank you for the explanation ! Ok the mod is installed. Presumming the default images for the mod are saved in (eg, ./Themes/default/images)] How do i access them?
Quote from: Nodaz on January 29, 2025, 04:24:58 AMThank you for the explanation ! Ok the mod is installed. Presumming the default images for the mod are saved in (eg, ./Themes/default/images)] How do i access them?
@Nodaz The following is a list of sample images that were saved to the
./Themes/default/images/VerificationImages folder/directory when the mod was installed:
IMG_2689.jpeg
To view/use a sample image specify its full URL in the
Verification questions image URL field (eg, https://your-website.com/forum/images/VerificationImages/Image-1.png will display the image below).
Image-1.png
If you want to use your own image copy it to the
./Themes/default/images folder/directory and then specify its full URL in the
Verification questions image URL field (eg, https://your-website.com/forum/images/MyImage.png).
Thank you for you patience and guidance ! All set and working properly !
(https://i.imgur.com/nR0Wk73.png)
I am getting
"An error has occurred
Token verification failed. Please go back and try again."
whenever i try to change anything in this mod starting yesterday.
Its happening on both forums that ive installed this mod on. Any insight as to what is happening and how to resolve? Ive logged out and back in on both forums ,no change in ability to make changes without an error.
Haven't seen that issue reported before - try clearing the browser cache and/or using a different browser.
Thanks
@GL700Wing nice mod.
Quote from: Dave J on March 11, 2022, 02:46:42 AMQuote from: GL700Wing on March 09, 2022, 05:26:41 AMQuote from: Sir Osis of Liver on March 08, 2022, 05:34:46 PMn/m, I see it now. Have to provide your own image. Thought default image was included with mod. It's a bit confusing, installing it this way.
Noted - will include a default image with the next release ...
GL feel free to use the one I created if you wish (attached), unless you have one of your own
Thanks
@Dave J I will get the numbers from the chatcapta generator site and update image them. I think it will be more effective (I'm not sure ;D )
Just a word of caution for those who use colors. Please remember that many people are daltonians or color blind.
Quote from: DenDen60 on February 04, 2025, 11:27:33 AMJust a word of caution for those who use colors. Please remember that many people are daltonians or color blind.
That's why the numbers and colours are on the segments of the images
Not sure, but I believe this image is included in the mod -
antispam.png
These were the original two images. There was some js that displayed the bw image for the color blind -
verif.png verifbw.png
Creating an image using a Scrabble type font gives the option for asking verification questions about both letters and tile values ...
Picsew_20250205125052.jpeg
Examples
Question: How many letters in the image have a tile value of 3? (answer as a word)
Answer: Five
Question: How many times does the letter 'F' appear in the image? (answer as a number)
Answer: 3
Question: What is the total value of all the tiles in the first row? (answer as a number)
Answer: 12
Question: What is the total value of all the tiles in the second column? (answer as a word)
Answer: Seven
Question: What letter is on the fourth tile in the second row? (answer with uppercase letter)
Answer: G
Question: From the bottom to the top what are the letters in the third column?
Answer: FAT
Question: From right to left what vowels are on the second row?
Answer: OEAI
Hi,
I was wondering if it is at all possible to either EDIT the "Help - I can\'t see the verification image!" text to say something else, Or Change it's colour .... or ... Both ???
Thanks in advance :)
Cheers
Quote from: stoo23 on February 28, 2025, 09:57:49 AMI was wondering if it is at all possible to either EDIT the "Help - I can\'t see the verification image!" text to say something else, Or Change it's colour .... or ... Both ???
Sure - to change the text either edit the mod's text string in
./Themes/default/languages/Modifications.english.php or
add your own text string with the same string name after it:
$txt['verification_image_help'] = 'Help - I can\'t see the verification image!';
Note: Language files are read from top to bottom so if you add your own
'verification_image_help' text string
after the mod's text string it will be used and if you later remove the mod you won't get an error message relating to the mod's text string.
The message colour is determined by the CSS for the
'alert' class in the
'index.css' file of the theme you are using - if you want to use a different colour you can either:
1. Change the colour for the
'alert' class in the
'index.css' file of the theme you are using (this will then apply to all text that uses the
'alert' class throughout your forum); or
2. Create a new CSS class in the
'index.css' file of the theme you are using with a different colour (eg,
.alert_vih { color: blue; }) and change the relevant line in
./Themes/default/GenericControls.template.php to refer to it (if you do this you will have to manually edit this file to remove all of the mod's changes if you later need to remove the mod). Example:
<br /><p><a href="' . $image_help_href . '"><strong class="alert_vih" style="font-size: 120%;">' . $txt['verification_image_help'] . '</strong></a></p><br />
Thank you Very much, for your 'prompt' and clearly Detailed reply !! :)
NB:
as an aside, I run 2 x forums, One is for a delightful bunch of Bespoke Cutters & Tailors who are so pleased I have something that may help make My job easier and help avoid 'bots' and spammers :) :D
The other is for Assembly language programmers .... and you could Not believe the level of discussion and negativity the implementation of this Mod' has generated (just within the general Admin' / Moderation team) !!??
One very capable Coder even suggested the Questions I posed, ... were "a tough IQ test" !!?? ... WTF ???
I used the antispam.png, with the 3 x 3 rows/columns of coloured blocks, asking a variety of mathematical questions along with questions relating to block/colour order etc.
Complaints about how long and how many tries it took to complete the Test registrations etc,... >:( ::) :P unbelievable .... :o
Along with a number of suggestions that "any half decent AI bot could easily work out all the permutations in no time anyway" !!! ???
(guess I/We may as well All 'Give up Now' eh ??)
Whilst I can perhaps believe there May be AI capable of eventually defining everything necessary in an image to answer the questions,.. I seriously doubt some Spammer / Script Kiddie, vainly trying to gain access to a couple of truly obscure Forums would be Armed with such AI tools ;) :) ;D
Cheers,
Stewart 8)
Quote from: stoo23 on February 28, 2025, 04:41:04 PMThank you Very much, for your 'prompt' and clearly Detailed reply !! :)
You're welcome.
QuoteThe other is for Assembly language programmers .... and you could Not believe the level of discussion and negativity the implementation of this Mod' has generated (just within the general Admin' / Moderation team) !!??
One very capable Coder even suggested the Questions I posed, ... were "a tough IQ test" !!?? ... WTF ???
I used the antispam.png, with the 3 x 3 rows/columns of coloured blocks, asking a variety of mathematical questions along with questions relating to block/colour order etc.
Complaints about how long and how many tries it took to complete the Test registrations etc,... >:( ::) :P unbelievable .... :o
All this from supposedly IT literate users in response to a 3x3 image grid - interesting to say the least!
QuoteAlong with a number of suggestions that "any half decent AI bot could easily work out all the permutations in no time anyway" !!! ???
(guess I/We may as well All 'Give up Now' eh ??)
Whilst I can perhaps believe there May be AI capable of eventually defining everything necessary in an image to answer the questions,.. I seriously doubt some Spammer / Script Kiddie, vainly trying to gain access to a couple of truly obscure Forums would be Armed with such AI tools ;) :) ;D
Even though it will be interesting to see how 'smart' AI becomes over time (and whether or not it can accurately interpret images) I think the main advantage of this type of anti-spam approach is that you can quickly and easily change the image and/or questions (tip: avoid using questions with true/false answers) and a word grid image created with a Scrabble-type font gives the option for option for asking verification questions about both letters and tile values ...
;) ;D ::)
QuoteAll this from supposedly IT literate users in response to a 3x3 image grid - interesting to say the least!
Yes, rather sad isn't it ??
I figured you may have been intrigued by the responses etc ;)
QuoteI think the main advantage of this type of anti-spam approach is that you can quickly and easily change the image and/or questions
Yes, agreed absolutely.
Quote(tip: avoid using questions with true/false answers)
Yes, also agreed ;)
QuoteA word grid image created with a Scrabble-type font gives the option for option for asking verification questions about both letters and tile values ...
Yeah, although our forums are in English, many of our members do not have English as their First language, so am somewhat tentative about going Too Hard on the Word 'thing' as such, but I DO tend to agree with you.
Anyway, thanks once again, hopefully I can also Edit and perhaps Add some instructions to the Page, regarding requirements for Text string inputs, like using Only Spaces between words, not Commas etc, Just to satisfy the "Cranky Old Curmudgeon" members,.. ;) :) :D ;D
Cheers,
Stewart
One further question, ... Is it Possible to Disable the 'Link' function of the Text ??
Quote from: stoo23 on March 01, 2025, 03:34:58 PMOne further question, ... Is it Possible to Disable the 'Link' function of the Text ??
Yes - although the point of it is to enable users to let forum admins know there is a problem with the configured image ...
Remove the following line completely (no point having the help text if it doesn't link to an action) ...
<br /><p><a href="' . $image_help_href . '"><strong class="alert_vih" style="font-size: 120%;">' . $txt['verification_image_help'] . '</strong></a></p><br />
QuoteYes - although the point of it is to enable users to let forum admins know there is a problem with the configured image ...
Yes, ... understood, Just looking for 'options' in the presented info' etc.
We already have messages regarding Account creation / Log-In issues and am thinking an 'Alternate' Message, may suffice and remove some of the current (older member) criticisms of the link message .... sigh,.. lol
Thank you again for your prompt assistance, it IS much appreciated :) 8)
Quote from: stoo23 on March 01, 2025, 05:58:27 PMQuoteYes - although the point of it is to enable users to let forum admins know there is a problem with the configured image ...
Yes, ... understood, Just looking for 'options' in the presented info' etc.
We already have messages regarding Account creation / Log-In issues and am thinking an 'Alternate' Message, may suffice and remove some of the current (older member) criticisms of the link message .... sigh,.. lol
Thank you again for your prompt assistance, it IS much appreciated :) 8)
Surely they'd only click on the help message if they couldn't actually see the image (although by the sounds of it this is an incorrect assumption) ...
Well, just a Quick initial usage report.
Having literally been inundated with 'dodgy' Registrations, (dubious sign-ups that never Activate or return) along with the Single Post Spam-Bombers, since before Xmas, .... since changing from our previous Text based questions to this New Image based setup, I have I think possibly only One 'slightly' dubious registrant, across Both Forums !!
An interesting outcome, especially considering the internal squawking and criticism, about it's inherent difficulty and effectiveness ::) ;)
So far, I can ONLY report, close to 100% effectiveness :) :D
Once I edit the 'live' help text, I may even re-include the text based answers, as well as the purely Math based numerical ones.
Thank you, great Mod', Job Done !! :) 8)