Advertisement:

Author Topic: Remove colon added to end of Verification Question  (Read 7372 times)

Offline GL700Wing

  • Charter Member
  • Sr. Member
  • *
  • Posts: 730
  • Gender: Female
    • GL700Wing on GitHub
Remove colon added to end of Verification Question
« 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
Code: [Select]
', $verify_context['questions'][$qIndex]['q'], ':<br />
REPLACE WITH
Code: [Select]
', $verify_context['questions'][$qIndex]['q'], '<br />
Life doesn't have to be perfect to be wonderful ...

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,667
  • Gender: Male
    • i30 Owners Club
Re: Remove colon added to end of Verification Question
« Reply #1 on: June 17, 2013, 06:19:42 AM »
That's a useful tip/trick, for those that might benefit from it.

kat

  • Guest
Re: Remove colon added to end of Verification Question
« Reply #2 on: June 17, 2013, 02:14:12 PM »
Speaking of which, consider this as having been moved to "Tips and tricks". :)

Offline shadav

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,543
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Foamy Fanatics :: For All Your Foamy The Squirrel Needs
Re: Remove colon added to end of Verification Question
« Reply #3 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
Code: [Select]
', $txt['visual_verification_description'], ':', $display_type != 'quick_reply' ? '<br />' : '', '
replace
Code: [Select]
', $txt['visual_verification_description'], ' ', $display_type != 'quick_reply' ? '<br />' : '', '

Offline a10

  • Charter Member
  • Sophist Member
  • *
  • Posts: 1,052
Re: Remove colon added to end of Verification Question
« Reply #4 on: July 11, 2021, 06:19:42 AM »
Thanks !
2.0.18, ssl, php 7.4.21, 10.3.29-MariaDB
Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.