How to fix reCaptcha in Wordpress? - wordpress

I have a WP site that is getting a lot of spams lately.
I have added firewall (plugins) to help combat this.
But then decided to add an extra layer of protection (since the firewall is not working fully) by adding recaptcha.
When I tried using V3, the contact form (7) doesnt work.
Upon using the v2,it works.
But I found out that the spams are coming from a multi-step contact form, wherein I ask the user to add their email, their requirments, etc.
PS: Adding a screenshot of the contact form code for better understanding
enter image description here
I tried adding the [recaptcha] shortcode on the final step, but it doesnt work.
Do you know how to fix this issue so the form can have recaptcha, and hence, less spams?

Ever since Contact Form 7 version 5.1. The developer decided that ReCaptcha V3 was the best method to use. I personally disagree with this, and his forcing users to switch.
If you add this plugin ReCaptcha v2 for Contact Form 7 then you'll be able to configure the [recaptcha] form tag to work as it used to, and it will be the "I am not a robot" checkbox.

Related

Setting up Google Recaptcha with Mobius Forms

I'm trying to create a reasonably simple Mobious Form to gather new client information for a counselling service.
I want to implement Recaptcha, but I'm not getting very far. It points me to Global Settings, and I'm assuming I have to create some custom settings, but I've got not idea what settings to create, or then how to implement the recaptcha in the form. Some pointers to some up to date doco would be really helpful, if any exist.
These are very normal settings in each form:
You won't see the recaptcha, as V3 of Recaptcha can be made invisible ;)

Weglot Translation Not able to translate the checkout payment section

I am using Weglot Translation Plugins in WordPress. Everything working fine except checkout payment section not updating that's why the translation not working for that particular section
Check below the screenshot
https://prnt.sc/1zs8ptj
I'm Edson from weglot developper team.
Regarding your problem there are 2 things:
1- first of all, you should check from the dahboard if your translation is present. If not, one of the first ways is to see if you haven't gone over your word limit.
2- The error you are reporting seems "normal" because the Visual Editor must be used for "static" pages. In your case, you seem to be using the tool to translate an order page containing Ajax calls which notably causes CORS header issues.
I hope this will help you and do not hesitate if you have any questions to contact our support team
Best

Can I submit a form with google's recaptcha in it from my app?

I'm writing an app which involves letting users to share comments on a website, which has a comment form with Google's reCAPTCHA embeded. I would like to load this page via HTTP and display CAPTCHA within my app, so that user can post comments from my app. Is it easy to implement or should I rather try other solution?
EDIT:
I've red reCAPTCHA developer guide. If I would like to embed captcha inside my form, I'd need to insert div element with a proper class, and make a ajax request in order to render captcha. This call would insert an iframe into a given div. What I need is to know how to access that iframe's content without using AJAX.
Turns out we are not supposed to do that kind of tricks with reCAPTCHA.
There is no support for that in API. It seems that it was part of Google's design to prevent that kind of usage.
The only walkaround I could come up with is to implement a WebView widget with JavaScript support, get website via http, and load it into this webview, centering this view around the form we want to post.
It seems like a lot of work though, thus I'm going to simply skip this, if someone successfuly manages to figure it out I'd appreciate a hint :)

Register/Login popup form for WordPress site

Hi I'm building a site using the WPTUBE4 theme in WordPress. I'd put the link but I'm creating it on my localhost using WebMatrix. My issue is i can't get a register/login popup form to work. I just want to have a button or link in my header that says Login and another that says Register and when you click have a form popup in a "lightbox" lets say and then the user can Register using their email and a password like most other sites have. Then from then on they can just login to the site. To complicate it a bit more I would like to set up a "log in using facebook option" much like how StackOverflow has. I've just been having a hard time finding the right tutorial or plugin online and I'm hoping that this newbie question can be answered and/or someone can point me in the right direction. Thanks and sorry for it being such a simple thing to ask. Not sure if i should be using jQuery for this or something like it, I might just redirect to another page with the form there but i wanted to avoid this, i wanted to keep users on the same page and just overlay (Lightbox effect) the form then when they're done they could return to exactly where they were. Regardless of what i use i would like to learn the skill to use both. Thanks.

Paypal Express Checkout Language - How to set it in Drupal 7 - Ubercart 3

I have a site entirely in English language about tourism in Italy.
Now when the user clicks on "Paypal express check out" button finds the italian version of the Paypal Page.
I would like to force paypal to be in English language too, because if a customer speaking english language comes in Italy, he would like to have also paypal in the same language of the site and not based on his IP address, Browser Location, or anything else.
So, my question is: how can i be sure that all visitors see Paypal in the same language (English) of the rest of the site?
I have Drupal 7 and Ubercart 3 installed.
I downloaded the Paypal SDK for PHP 5.2 and verified that it's enough to add
&LOCALECODE=en_UK
in the nvp string.
Where do I have to modify Ubercart to integrate this update?
I tried to modify the uc_paypal.module adding
watchdog('paypal', "uc_paypal_ec_checkout",$variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL);
in all functions containing a $nvp_request array definition, but i can't see any new row in the watchdog table.
Obviously i tried also to add a
'LOCALECODE' => 'en_UK',
row in the definition of the array, but with no effects.
I have the "Paypal express check out" button in the cart, and when i click on it, i obtain the italian version of the Paypal page.
If you have any idea about what file i have to modify and where, please help me.
If you need more info, let me know.
Thank you
I've recently been searching for a solution to this. Some mention being able to change the language of the actual Paypal account, although i've not managed to find that option hidden away with the paypal account setting pages. Plus it is useful for some to provide the payment pages in one language yet still have your account in your own language. So like you I was looking for exactly this.
I've looked through the uc_paypal module code and there doesn't seem to be any easy way to add to the SetExpressCheckout request neatly, so patching the code as you have done seems to be the only way.
The change you have made is the same as mine, except the locale code you are using isn't listed in the PayPal guide I have. I've been referencing the PayPal Express Checkout Advanced Features Guide.
If you use 'US' or 'UK' for your 'LOCALECODE' entry it should work for you. This has worked for me in Ubercart 3.0-rc3, and scanning the latest Ubercart code v3.1 it doesn't look like much has changed so this should work there too.
Note: there are 2 locations relating to the Paypal 'SetExpressCheckout' request which need to have the LOCALECODE added. (One in function uc_paypal_ec_checkout, and one in uc_paypal_ec_form_submit)
Hopefully that helps you.
I hate changing core code and really really really avoid doing it at all costs, and I don't agree with making these types of code changes, but it just wasn't possible on this occasion. If anyone has a better way to do this then please provide it. I think the real answer is to patch the Ubercart uc_paypal module to allow the LOCALECODE to be selected in the settings UI and then incorporate it into the SetExpressCheckout request. Not sure why it isn't currently in there, perhaps Paypal have added this feature after the module was written. I'll look into submitted a patch at some point if others haven't already, but if some one is better placed to make that change/patch then go right ahead! :) I just haven't yet fully familiarised myself with all the Drupal hoops to jump through for getting a patch submitted.

Resources