• Welcome to Simple Machines Community Forum. Please login or sign up.

Image for Anti-Spam Verification Questions

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

Previous topic - Next topic

GL700Wing

Link to the mod
Image for Anti-Spam Verification Questions

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 image you want to use to the forum's 'images' folder.

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 Update - 09-Jan-20
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 versions



License
Copyright 2020-2021 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.
Life doesn't have to be perfect to be wonderful ...

Mick.


GigaWatt

"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Steve

Please do not PM me for support.

Dave J

Just wanted to say that I think this is great. I created my own image to use also.

Thank you GL
All the Quiz info is here

GL700Wing

Uploaded 1.1 - 25-Jul-21
o Added support from SMF 2.1 RC4
o Minor layout improvement for SMF 2.0 versions
Life doesn't have to be perfect to be wonderful ...

Dave J

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.
All the Quiz info is here

landyvlad

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?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Diego Andrés

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?

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

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.
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

landyvlad

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?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

shadav

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

GL700Wing

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
Life doesn't have to be perfect to be wonderful ...

Advertisement: