Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: GL700Wing on June 17, 2013, 05:16:46 AM

Title: Remove colon added to end of Verification Question
Post by: GL700Wing on June 17, 2013, 05:16:46 AM
As part of implementing anti-spam measures I've created several verification questions (all of which end with a '?') but also some other verification challenges that are not actually questions (eg, "Type the second, third and last letters of the following word: simple", "Type the following word backwards: machine" ).

By default all verification questions are followed by a colon character (:) - this seems a bit redundant for a question but for it also adds a character I don't want included to the end of other verification challenges.

I've edited ./Themes/default/GenericControls.template.php and removed the colon character (:) for my own forum but think that others may also find this change useful.

FIND
', $verify_context['questions'][$qIndex]['q'], ':<br />

REPLACE WITH
', $verify_context['questions'][$qIndex]['q'], '<br />
Title: Re: Remove colon added to end of Verification Question
Post by: Shambles on June 17, 2013, 06:19:42 AM
That's a useful tip/trick, for those that might benefit from it.
Title: Re: Remove colon added to end of Verification Question
Post by: kat on June 17, 2013, 02:14:12 PM
Speaking of which, consider this as having been moved to "Tips and tricks". :)
Title: Re: Remove colon added to end of Verification Question
Post by: shadav on February 01, 2021, 03:45:55 PM
just found this, thanks for that  :laugh: it's the little things that bug me....

to remove the : from the visual verification as well
the
Type the letters shown in the picture:

still in GenericControls.template.php

find
', $txt['visual_verification_description'], ':', $display_type != 'quick_reply' ? '<br />' : '', '

replace
', $txt['visual_verification_description'], ' ', $display_type != 'quick_reply' ? '<br />' : '', '
Title: Re: Remove colon added to end of Verification Question
Post by: a10 on July 11, 2021, 06:19:42 AM
Thanks !
Title: Re: Remove colon added to end of Verification Question
Post by: ehpoulsen on August 09, 2021, 03:42:02 PM
Just found this trick! I do not know what other may think, but it is helpful for me!