Giter Club home page Giter Club logo

smallcontactform's People

Contributors

artistro08 avatar btzleon avatar densit-be avatar dinver avatar felixinx avatar gergo85 avatar jan-vince avatar kavishdahekar avatar kuzyk avatar lex0r avatar lzaplata avatar magiczne avatar mediaclinic avatar niklasdah avatar pitrsonek avatar sambrishes avatar shrikefin avatar timfoerster avatar victor-vanherpt avatar vosco88 avatar zhiweiwu0425 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

smallcontactform's Issues

Found a non-defined field in sent data!

Setup a standard contact form with four fields:

  • Name: type: text
  • Email type: email
  • Number type: text with numeric validation
  • Message type: text

All data comes through and gets saved in the database except for the email field which returns the following error:

SMALL CONTACT FORM WARNING: Found a non-defined field in sent data! Field name: Email_Address and value: [email protected]

Any idea?

Thanks,
Dan

Email not sending

Hi, first off, like this plugin so far, it's very easy to use! I'm having one issue though, and it may be something dumb I'm overlooking since I'm new to OctoberCMS.

I have a simple contact form and the form is sending and submissions are being logged in the back end, but no emails are reaching my email inbox.

In Mail Configuration I have the Sender field filled out and the Mail Method is set to PHP Mail (I tried other methods and they didn't work, either). In the plugins options, under the Email tab I have Allow Notifications set and the Send Notification Email field filled out. Admin is the only user and email is set there as well.

Any help is appreciated, but apologies ahead of time if this was a simple fix I was too oblivious to find, haha.

Add project to Packagist

Great job on this plugin @jan-vince!

Could you add it to Packagist so that we can add it to our October instances with
"jan-vince/smallcontactform": "dev-master" added to our composer.json files?

Error on settings.php

Invalid argument supplied for foreach()
...../plugins/janvince/smallcontactform/models/Settings.php line 321

i read that it was fixed, but i still get it on v. 1.4.3

Custom CSS for label

How do I custom control-label css class? seems cant find how to do it.

It should be similar like the custom CSS class.

reCAPTCHA is not working

I am using invisible version of reCAPTCHA and getting this kind of error:
ReCAPTCHA couldn't find user-provided function: contactForm::onFormSend
when trying to send request (clicking SEND button)

  $output[] = '<button type="submit" data-sitekey="6Ldf9FUUAAAAAFEhx3nu-K2A807YBisJxf3-VGRK" data-attach-loading data-callback="contactForm::onFormSend" class="g-recaptcha oc-loader '
      . ( Settings::getTranslated('send_btn_css_class') ?
          Settings::getTranslated('send_btn_css_class') : e(trans('janvince.smallcontactform::lang.settings.buttons.send_btn_css_class_placeholder')) ) . '">';

Special HTML characters

My language (Hungarian) have some special characters, for example: á é ö ü

The html_entity_decode function convert them. So the sending email doesn't look good.

Double Emails with AJAX enabled

As the title says, I am getting two of every form submission as long as "Enable AJAX" is checked. Otherwise seeming to work just fine. Any thoughts, maybe just a configuration issue?

Fix for Drivers plugin errors on PHP 7.2 using mailgun

See octoberrain/drivers-plugin#5 (comment)
for a fix when using Mailgun and PHP 7.2

smallcontactform requires octoberrain.drivers when using Mailgun as sender but this will throw an error with PHP 7.2

"ErrorException: count(): Parameter must be an array or an object that implements Countable in (...)/drivers/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67"

The error was fixed in guzzle 6.3.3 but octoberrain.drivers only goes up to guzzle 6.2.0 because of flysystem-rackspace requirements. So removing flysystem-rackspace from the composer.json allows update to go to guzzle 6.3.3

I can't uses

I have this error.
El manejador de AJAX 'contactForm::onFormSend' no se encuentra.

Having Difficulties Configuring

I am running into a lot of difficulties trying to get this form to work. I'm used to other forms being a bit more descriptive like:

<form role="form"
      data-request="{{contact}}::onContactSent"
      data-request-update="'{{contact}}::confirm': '.confirm-container'"
      data-request-success="$('.form-groups').slideUp(1000)">
</form>

and the steps being more clear into "how" you are supposed to configure the form. I want to use all of my own custom fields (I have the form actually created on my site right now http://cyberbytes.co/support but can't figure out).

I have read through the docs about 3-4 times now and this is the 4th or 5th contact plugin I have used and haven't had trouble with the other ones. They had the ability to just drag in the code snippet for the form though which made it very straightforward. I'm stuck right now and burning a lot of time trying to figure out how to get this working :/

Not sure if you have like a live example anywhere that we can inspect the code to see exactly what HTML you have written out in order for your plugin to grab the data because that would help a LOT.

Thanks! (:

Update failed

I wanted to update the plugin (v1.2.4) and I got the following error message:

"SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'remote_ip' used in key specification without a key length (SQL: alter table janvince_smallcontactform_messages add index janvince_smallcontactform_messages_remote_ip_index(remote_ip))" on line 666 of /var/www/tttweb/data/www/examplewebsite.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php

How to use with Static Pages?

Hi!

First of all, thank you for your fantastic plugin.

I would like to use your plugin inside a Static Page. My initial idea was to add it as a partial, but it dosen't work with October CMS AJAX limitations.

Do you have any idea how I could use your plugin?

Thanks!

Sending notification email

Hi,
I have app on PHP 7.2.2.
In plugins/janvince/smallcontactform/models/Message.php file is:

    public function sendNotificationEmail($postData, $componentProperties = [], $formAlias, $formDescription){

    ...
        if(!empty($componentProperties['disable_notifications'])) {
            return;
        }

I added Log::error('SMALL CONTACT FORM ERROR: ' . var_export($componentProperties, true)); to check what is in $componentProperties and this is result:

[2018-06-04 08:55:39] production.ERROR: SMALL CONTACT FORM ERROR: array (
  'form_description' => NULL,
  'disable_notifications' => 'false',
)  

As we know 'false' !== false and that's why this condition is always true.
Fix it please.
All best.

Redirect option

It would be great, if I could give a redirect url, after the form send the email (or stored the data).

Error on settings page

In Settings > Small plugins > Contact form page I got the following error message:

Invalid argument supplied for foreach()
/var/www/tttweb/data/www/examplewebsite.com/plugins/janvince/smallcontactform/models/Settings.php line 164

Plugin: 1.3.0
October: 419
PHP: 5.6.30

Custom HTML

Hello, thanks for your great work.
Is there any way to customize my HTML. For example, I need to put name and email side by side, I can add css class to name input and its wrapper, but what if I need to put it and email in separate wrapper other than the other fields?

Plugin logs error when reCAPTCHA enabled

The plugin will currently log an error on submission if reCAPTCHA is enabled because it thinks that it is an undefined field in the form submission dataset. Exact error message is SMALL CONTACT FORM WARNING: Found a non-defined field in sent data! Field name: g-recaptcha-response and value:

Form gets posted, but nothing is saved to the database.

I'm sorry if this is sort of broad spectrum issue as 'anything can be wrong', but maybe I missed something obvious...

After posting the form, I get 200 OK response for the POST route with proper headers, however, no messages are written in the database, hence none returned in the dashboard.

More data:

  • not being redirected to the specified url (/)
  • no thank you message
  • only using javascript assets
  • fields included - fullName, message, email - all properly mapped under the column mapping
  • enabling AJAX -

AJAX handler 'contactForm::onFormSend' was not found.

I installed the plugin directly from the CMS backend and added this minimal configuration. There is a chance Mail Configuration is not working properly, but I don't think this should interfere with storing messages.

Email

Hi, how do I send a message to the mail?

after error form_description is lost

I override form's property in Twig component tag:
{% component 'myForm' form_description = 'My other description' %}
But after an error when filling out the form, form_description is lost

Send info about page

Hi,

is there any option how to send in email additional information about page?
The form is placed on all articles page and i need send with the form current page title and page URL.

I tried use:
{% component 'myForm' form_description' = 'page title and url' %}

but i can not add variable form_description to the mail template - only on backend list.

any idea how to add information about the page and article to the email?

thanks

Vaclav

Form in %placeholder%

Had problems with

AJAX handler 'contactForm::onFormSend' was not found.

because the component was placed in a partial. I created a placeholder in the layout with the contactForm component and called the placeholder in the partial.

Form works and sends data in the partial, but does not in a page. My question is if this is the correct way to place the component? Is there any security issue because of the placement method?

A small and quick question, can I change the layout of the inputs?

Now I apologize in advance that my English is not good. I use your plugin for the first time and it is very good.

I know (maybe I got it wrong?) that the default inputs are below each other. As here's an example:

.........
.........
<div class="form-group"><input id="contactForm-name" name="name" class="form-control" placeholder="Nimi *" type="text" required=""></div>

<div class="form-group"><input id="contactForm-email" name="email" class="form-control" placeholder="E-post *" type="email"></div>

<div class="form-group"><input id="contactForm-phone" name="phone" class="form-control" placeholder="Telefon" type="text"></div>

<div class="form-group"><textarea id="contactForm-message" name="message" class="form-control" placeholder="Sinu sõnum *" rows="5" required=""></textarea></div>
.........
.........

I need to place the inputs to in the group "<div class ="col-md-6">" the desired place like here:

.........
.........
<div class="col-md-6">

<div class="form-group"><input id="contactForm-name" name="name" class="form-control" placeholder="Nimi *" type="text" required=""></div>

<div class="form-group"><input id="contactForm-email" name="email" class="form-control" placeholder="E-post *" type="email"></div>

<div class="form-group"><input id="contactForm-phone" name="phone" class="form-control" placeholder="Telefon" type="text"></div>

</div>

<div class="col-md-6">

<div class="form-group"><textarea id="contactForm-message" name="message" class="form-control" placeholder="Sinu sõnum *" rows="5" required=""></textarea></div>

</div>
.........
.........

My simple question only inputs placement opportunities. I have a bit of experience and knowledge. But how have you solved this issue quickly? What are your best practices?

I am very grateful for any thoughts and suggestions!

Best regards

kukrik

Multiple Send-To Email Address Templates

Hi there,

On our site and many clients, we usually have at least 2 separate contact forms. 1 is usually just a general "contact us - sales" form and the other is generally a "support" form.

We need the inquiries sent from the "sales" form to be sent to [email protected] while the support goes to [email protected] (so that it can be properly filed and a ticket can be created in a help desk).

The information collected here is also slightly different for each form. Different information requested for Support form versus a Sales request form.

Here is a great implementation of a different contact form that has since been abandoned (but one of the top selling contact forms on OctoberCMS.)

image 2017-08-16 at 1 57 00 pm

image 2017-08-16 at 1 57 21 pm

image 2017-08-16 at 1 57 41 pm

image 2017-08-16 at 1 57 56 pm

Dynamic redirect page

Is there a way to change the redirect page depending on the slug, for example? Thanks!

Ajax is not working

I set "Enable Ajax" at plugin settings. And my page reloads while sending form.

Form Validation always errors

if(!empty($validator->failed()) or !empty($errors)){

$validator->failed()
will only be empty when no validation is used. When a form is valid this is returned:

Array ( [Your Name] => Array ( [Required] => Array ( ) ) [Your Email] => Array ( [Required] => Array ( ) ) ) 

In order to fix this you need to do something like foreach array[key]->Required if empty.

Or maybe I'm missing something?

Undefined index: name

Hi, this is a great plugin. I've used it on another site. But... for some reason I'm now getting an 'Undefined index: name' error on a new installation.

Plugin installs fine, go to Settings, add new fields & save. As soon as I refresh it throws the error and I can no longer access the Settings. Need to uninstall & reinstall, only for the same thing to happen each time.

Plugin v.1.24.0
OctoberCMS build 447

Error:

Undefined index: name
/home/vagrant/code/villacrowd/plugins/janvince/smallcontactform/models/Settings.php line 174

Any ideas?

Notification email template

I have two problem:

  1. I added an own notification email template, but the plugin use the default one.
  2. The janvince.smallcontactform::mail.autoreply template doesn't show on the list of Mail template page.

Flash messages errors

Hi Jan, thanks for a great plugin.

I have 2 issues when using it with ajax:

  1. When I send an empty form and validation errors appear along with the danger message on top of the form. And then if I fill in the fields correctly, the success message appears on top of the form, but the error message doesn't disappear.

  2. If I submit a form and validation errors appear (using ajax) and then reload the page, the error message on top of the form stays and I have to reload the page once again to make it disappear.

Thanks,
Andriy

reCaptcha not added

When I try to add reCaptcha, it is not being added to the form. Additionally the scripts which should remove the passive antispam field are not being added.

This seems to indicate something is fundamentally wrong with the plugin: it doesn't read all of its settings. In \JanVince\SmallContactForm\Components\SmallContactForm::onRun() the statement $this->formDescription = $this->property('form_description'); evaluates to null, even though I've entered a form description for the form component in the page.

two forms with different settings

Hi! I use two forms. One should be closed after sending the message. and the other is not. Is it possible to manually transfer the value of the "Hide form after successful send" parameter to the component?

can this plugin used in partials?

dear jan , thank you for your plugin. it is great! I have a question that can this plugin used in partials? it works well in pages htm, but it seems doesn't work well in partials htm. can you help me ?

Bootstrap 4 support?

Any chance of this happening? Custom validation has changed in Bootstrap 4 so it doesn't work here, no matter what I try I always get browser default messages.

Best regards,
Boris

Hook into successful submission

Hi there, thanks for the great plugin - it's very useful :)

Is it possible to run some code upon a successful submission? For example, when someone submits the form and their details are added I'd also like to subscribe them to a Mailchimp list. Are there any events or 'hooks' that I can use for this purpose?

Kind regards,

Phil

Spam messages

I got more spam email:
spam

Do you plan to add a spam filter?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.