1
I was using the Captcha feature in one of my modules and noticed that the "Maximum attempts" didn't correspond to the actual attempts left after clicking the refresh image.
Here's what I did to fix it. Perhaps someone else would like to change this in their code. Small fix but more informative to the user.
In xoops_root/Frameworks/captcha/image.php
I edited the following functions as following:
You will also need to change the language definition file:
xoops_root/Frameworks/captcha/language/english.php (or whichever language)
to:
define("XOOPS_CAPTCHA_MAXATTEMPTS", "Maximum attempts:");//TN Used to be Maximum attempts: %d