aradianoff / recaptchacontact Goto Github PK
View Code? Open in Web Editor NEWreCaptcha Contact Plugin for Grav CMS (getgrav.org)
License: MIT License
reCaptcha Contact Plugin for Grav CMS (getgrav.org)
License: MIT License
We were excited to release version 2 of this plugin this morning. It brings many enhancements that will hopefully increase it's usage. Part of that, however, was the addition of some admin panel integration. With that, we are need some additional translations done.
Take a look at the updated file and notice that the RECAPTCHACONTACT.ADMIN
needs to be done in German, French, Spanish, Italian, and Russian.
@iusvar, @Sommerregen, and @ktaranov: are you willing to take a minute to help with this?
As per @aradianoff's comment on #9, the language is lost from any redirect that happens - particularly on submission when the user is brought to a success or failure page.
Hey there:
Thanks for your work on this plugin. I have noticed, once I submit a message, the thank you message appears. And then never disappears no matter how many times I reload the page.
Also, I have a one page modular site, and it was incredibly difficult to set up and confusing. You might want to add some documentation on modular pages as the "contact form" tab does not appear on modular pages, and I had to manually edit the .md file to get it to show up.
Thanks again...
On a brand new site, the plug-in sends out the e-mail message properly, but I then get a message:
Error!
Woops. Looks like this page doesn't exist.
When I use the Chrome browser "back" button, I see:
Thank You! Your message has been sent.
Has this plugin been tested on a multiple language site? My guess is that the after the successful send, the browser isn't returning to mysite.com/base/en/contact#contact-form
Which version of reCAPTCHA do I need to use?
I've tried both v2 and v3 but I'm getting an error "invalid site key".
Copy/Pasted in Admin panel.
I dont get if this plugin is grav-plugin-simple_contact exclusive or if it will work with grav-plugin-form?
Hello. I configured plugin and now I'm receiving comments by email but there's no name field in email bu form has this field. Other fields I receive correctly
Setting the From: address to the email from the web form, instead of using the default From address in the Email plugin settings, causes failure to send. For my SMTP server, and I suspect a great many others, sending is rejected with the message,
Expected response code 250 but got code "550", with message "550 Invalid From address."
This helps reduce spam sent through the server. The data that the web visitor enters should be included in the body of the message only.
Hi there,
i am using the mamp stack for local development and installed grav in a subfolder
of my htdocs directory. I am accessing my installation via http://localhost:8888/grav.
When i submit the form on a modular page that lies under:
http://localhost:8888/grav/de/viewneo-for-partners
I will be redirected to:
http://localhost:8888/grav/de/grav/viewneo-fuer-partner
Any idea what causes the problem?
Any help is welcome.
Kind regards
Sebastian
Hi There,
After upgrading to latest Grav CMS release I've just found out that the placeholder attribute in each of the form field doesn't work anymore. It seems it is striped out.
Here's the HTML output of the form now
<form class="form-horizontal" action="contact-us" method="post" id="recaptchacontact">
<fieldset><h3>
<legend class="legend">Contact me</legend>
</h3>
<div id="recaptchacontact-messages"></div>
<div class="form-group">
<label class="control-label" for="name">Name</label>
<input id="name" name="name" type="text" ="Add your name" class="form-control"></div>
<div class="form-group">
<label class="control-label" for="email">Email</label>
<input id="email" name="email" type="text" ="Add your email" class="form-control"></div>
<div class="form-group">
<label class="control-label" for="message">Message</label>
<textarea class="form-control" id="message" name="message" ="Add your message" rows="5"></textarea></div>
<div class="g-recaptcha" data-sitekey="6Le0JRETAAAAAKPRdtxgV4R2UL_w8OD-abISpHJW"></div>
<div class="form-group antispam-div">
<label class="control-label" for="antispam">Antispam</label>
<input id="antispam" name="antispam" type="text" ="Please leave this field empty for Antispam" class="form-control"></div>
<div class="form-group">
<div class="text-right">
<button type="submit" class="button">Submit</button>
</div>
</div>
</fieldset></form>
I followed your instructions to create a custom languages.yaml file in the user folder. However, in oder for the site to work and not generate an error I had to add the following line in the header of the file just like the original file in the plugin ...
"RECAPTCHACONTACT:"
So, your example given in the instructions is missing the header (see sample below) ...
RECAPTCHACONTACT:
FORM_LEGEND: "Contact me" // Form Legend
SUBJECT: "New contact from Grav site!" // Subject for email.
RECIPIENT: "[email protected]" // Email address.
FIELDS: // Default fields, you can translate the text.
NAME:
LABEL: "Name"
PLACEHOLDER: "Add your name"
EMAIL:
LABEL: "Email"
PLACEHOLDER: "Add your email"
MESSAGE:
LABEL: "Message"
PLACEHOLDER: "Add your message"
ANTISPAM:
LABEL: "Antispam"
PLACEHOLDER: "Please leave this field empty for Antispam"
SUBMIT:
LABEL: "Submit"
MESSAGES: // Default messages, you can translate the text.
SUCCESS: "Thank You! Your message has been sent."
ERROR: "Oops! There was a problem with your submission. Please complete the form and try again."
FAIL: "Oops! Something went wrong and we couldn't send your message."
The form-horizontal
class applied to the form
causes negative padding to the fieldsets and displays 15px left of the container. This is only an issue if the Bootstrap theme is used or Bootstrap css is included in the page.
Consider removing class="form-horizontal"
unless you actually want a horizontal form.
Hey guys,
I get an GRAV.FORM.VALIDATION_FAIL grecaptcha_callback is not defined in blueprints
error right after installing and clicking save for the first time. What am I doing wrong?
recaptcha: v.2.1.2.
Grav v1.6.21
Admin v1.9.12
Thanks!
Hi,
I would like to use your plugin, but since I have grav in a docker container, it simply can't work with a local sendmail.
I installed the email plugin and configured it correctly (I tried the "test via cli") and everything works, but I noticed that recaptcha contact doesn't use it, and instead sends emails via the php "mail" function.
Could you please use the email plugin instead?
This would really add a lot of flexibility, since you can configure a huge variety of smtp servers with it.
Thanks
Marco
Greetings,
I've followed the instruction very closely, but the contact form doesn't show at all. I am using the latest version of GRAV with the Admin plugin and have copied the YAML file appropriately to the user folder.
Suggestions?
I don't know if it really is an issue or if it is intended. In the sendEmail()
process, you used the new line tags \n
. What I experienced was that that it doesn't make a new line but rather Name: ...
Email: ...
and Message: ...
was written in one line on Outlook and Gmail (didn't try different ones).
My suspicion was that the content of the email isn't handled as text but as html, so the email client does not detect the new line tag. I replaced all new line tags with <br>
in the plugin php file and resent an email through the contact form and it suddenly worked, I had new lines for each part.
Just wanted to let you know.
Using Grav 1.7.43 and admin 1.10.43 and recaptcha 2.1.2
When recaptcha enabled I get this error accessing pages in admin
An exception has been thrown during the rendering of a template ("Cannot load blueprint blueprints://flex-objects/pages.yaml: Failed to read /home/basicsta/new.coridium.us/user/plugins/recaptchacontact/blueprints/default.yaml: Non-string keys are not supported. Quote your evaluable mapping keys instead at line 26 (near "false: PLUGIN_ADMIN.DISABLED").")
Workaround, normal site functioning and recaptcha contact works. But if you need to change a page content recaptcha has to be disabled
Hi there,
I have had this plugin and the contact form working perfectly on my site up until now.
I today did an upgrade of the "Email plugin" to version v2.7.1, and now when submitting a contact form I get the following error:
Swift_TransportException
Unsupported sendmail command flags [/usr/sbin/sendmail]. Must be one of "-bs" or "-t" but can include additional flags.
I first got this problem on one site, and when upgrading Grav and plugins one by one, I found that this upgrade of the Email plugin was resulting in this error.
By the way, I am using the Clean-Blog Theme and my testsite is: https://www.gaatec.net/contact
Any ideas?
Swift_TransportException
Expected response code 220 but got code "", with message ""
Followed install instructions, put keys in, etc. Added new page with form. Tested form. Added pertinent info (name, email, test text), hit recaptcha, hit submit. Got the above error.
I have installed the module through the admin console. When i submit the form it doesnt check the reCaptcha form or send an email. The email to and email from fields are filled out. Is there something I am missing?
Default Sender: I am not sure if it's possible but the plugin would be much more useful if a default sender could be set. Because my spam filters could not be set to allow the mail in since it always was coming from a different user.
Redirecting to a thank you page would be nifty
Sending a copy to the submitter might be cool too.
Thanks for your hard work!
Hello.
I add to languages.yaml Russian translation and set language parameter in plugin settings ru, but language still is English (see link: http://decoupagepro.ru/kontakty)
Hi!
I had an issue with the responsibility in the phone browser with a small resolution (~ 360 pixels). It is a known issue of Google reCaptcha and it has an official [solution/workaround]https://developers.google.com/recaptcha/docs/display#render_param): there is need to add the attribute for the <div class "g-recaptcha">
I'm using the new GRAV Beta ... suggestions?
Hello!...I need disable the submit button until the user fill the captcha, this is solved using data-callback
<div class="g-recaptcha" data-sitekey="############-#####" data-callback="enableBtn"></div>
how could pass this data-callback in my form markdown?
also would be interesting in integrate this more deeply with the form plugin, right now I'll write the js code in the template, would be great a more simple solution, thank you!!
I have been able to successfully add and use the contact form on standard pages, but it does not display on pages with modular content. In looking through the code, it looks like this may simply be not-yet-implemented. If that is the case, would this be a feature that is currently on the roadmap? If not, is there a technique that I can apply to add that to my modular page?
I haven't spent a huge amount of time with Grav, but am quite sure I will be spending more time with it, and may be able to develop this myself. However, due to my current schedule, I suspect it would be awhile.
Since Grav 1.1.16 the contact form is not shown. Tested also with clean install, but nothing.
Edit: Workaround -> set up a manual position
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.