The Capcha is giving me characters for the pound sterling, instead of US dollar character. This isn’t going to work for my clients in the US. Any way to change this?
Hi @russmessick,
That depends which CAPTCHA library or service you use.
If you run your own script, you can import Gregwar’s CaptchaBuilder library which has a function for this (setPhrase, which allows you to specify which character may and may not be used).
If you use a plugin service, it depends on what the service offers. Some (like Google’s) are true “black box” services that don’t allow you to configure anything though.
Cheers,
Erwin
Thank you for the reply. It’s RW9 Capcha that is built in to the RW9 native contact form. That’s one of the features they mentioned that was improved from RW8. No one here has a key on their keyboard for the pound, so it’s useless here. I’ve never even seen the character for the pound or US dollar on any captcha before.
I’m not very technical with RW.
Hi @russmessick,
I must admit I never use RW’s built-in contact page (only 3rd party ones or my own, depending on the scope), and wasn’t aware that CAPTCHA functionality was added to RapidWeaver’s default contact form.
@dan does RW Classic’s contact form include a CAPTCHA option, and can the user configure which characters can and can not appear in the challenge?
Cheers,
Erwin
Nope, the Classic Contact Form page does not have a built-in Captcha, it uses a hidden honey-pot.
Thanks @dan!
Hi @russmessick,
I think you’re using a different solution than RW’s built-in contact form (as RW’s doesn’t have a CAPTCHA option - see Dan-from-Realmac’s comment above).
But no worries- perhaps we can still help. If we can figure out which contact solution you are using, maybe we can find a away to get rid of that pesky pound sign.
What’s the page type’s name when you click on the Add button in RapidWeaver?
Cheers,
Erwin
I’m so sorry, I just looked and I guess I did by formloom years ago and had forgotten. Thanks so much for the input. At least I know what I’m working with now. Thanks for that help.
Hi @russmessick,
No worries!
I looked into Formloom’s settigns and documentation, but unfortunately there doesn’t seem to be an option to exclude certain characters fro mthe CAPTCHA.
Formloom uses a PHP script to generate the code, and then to generate an image of the code, and then displays that image on the form entry page for the visitor to copy.
Which characters are included in the image, is hardcoded in the captcha.php file that gets published to the rw_common/plugins/formloom4 (in my case) directory on your server. the file uses a randomizer to determine which characters are included, and has no configurable setting for you as the end user. But even if it had, it would get overwritten each time you republish.
My advice is to contact Yabdab support and ask them to make sure the pound sign can not be part of the captcha.
For those interested, here’s how it works:
captcha.php (rw_common/plugins/formloom4/) gets called and executed when the visitor loads the contact form. The output of captcha.php is 1) an image containing the code in hard-to-read-for-bots format, and 2) a value (the correct answer) in RAM to be checked against the visitor’s solution to the challenge when the visitor clicks the send button.
The script does this in three steps:
-
When the form is loaded by the browser, a random number between 0 and 9999 is generated
-
The script calculates the md5 hash for that number, then takes a random 5-character string from that md5 hash and stores that string inside
$_SESSION['ydCheck']['securitycode']
3. The script then picks a random background from 6 pre-made png files in rw_common/plugins/formloom4/assets/img/, and uses that to create a new image with the value of $_SESSION['ydCheck']['securitycode', which results in the captcha image that is displayed on the form.
The response is never stored in RAM befofre the visitor enters it. When the visitor clicks the button to send the message, the value the visitor entered in the response field is compared with the value stored in the server’s RAM (in $_SESSION['ydCheck']['securitycode']) ,and if it matches, the message is sent using a mailer script and/or stored in a database. This is done in the main script and not captcha.php though.
Cheers,
Erwin
