Ajax Contact Form

Beschrijving

Deze gratis contactformulier plugin wordt gebruikt om een ​​eenvoudig contactformulier te maken met geavanceerde spambeveiliging (honeypot, cookie en optioneel Google reCAPTCHA of hCaptcha). In tegenstelling tot de meeste andere formulier plugins, is er geen formulier bouwer inbegrepen.

De functies

  • Bescherm je formulieren tegen spambots met behulp van een honeypot en cookies
  • Bescherm je formulieren met Google reCAPTCHA v3 of hCaptcha (optioneel)
  • Bescherm formulieren door specifieke landen te blokkeren die niet relevant zijn voor je site (optioneel)
  • Bescherm je Ajax contact form met de plugin WP Armour – Honeypot Anti Spam
  • Maak meerdere formulieren aan via de gebruiksvriendelijke interface
  • Verzamel formulierinzendingen voor al je formulieren of voor alleen de formulieren die je kiest
  • Functie voor het beantwoorden van e-mails, stuur een HTML geformatteerde e-mail als reactie op het indienen van het formulier
  • Nonces worden gebruikt voor eenvoudige formulierwaarde validatie
  • Werkt met de standaard wp_mail()-functie (gebruik deze samen met de Mailerroo-plugin om e-mails via SMTP te verzenden)
  • Opties voor het e-mailonderwerp en de van/aan e-mailadressen
  • Vertaald naar de Nederlandse taal
  • Optioneel: omleiden naar een “bedankt…” pagina
  • Optioneel: gebruik het CSS bestand dat door de plugin wordt meegeleverd
  • Volg succesvol verzonden formulieren in Google Analytics en/of Clicky

De plugin is gemaakt om het simpel te houden. Als je een complex webformulier nodig hebt of wanneer je een formulier bouwer nodig hebt, gebruik dan een van de formulier plugins die je in de WordPress repository vindt. Om de functie “Block countries” te gebruiken, gebruiken we de IP to Country API van Country.is. Ze bieden een gratis dienst en je hebt geen API-sleutel nodig.

Schermafdrukken

  • Een voorbeeld hoe het formulier er uitziet.
  • Plugin instellingen.
  • Standaard formulierinstellingen.
  • De nieuwe formulier/bericht interface.
  • Voorbeeldbericht voor de opslag van de inzending.
  • Het scherm waarop je een bevestigingsmail instelt.

Installatie

De snelste methode om het contactformulier te installeren is:

  1. Automatisch installeren met behulp van het ingebouwde WordPress plugin installatieprogramma of…
  2. Upload de volledige map fws-ajax-contact-form naar de map /wp-content/plugins/.
  3. Activeer de plugin via het menu ‘Plugins’ in WordPress.
  4. Bezoek de instellingen en voor de noodzakelijke opties in. Alle opties worden uitgelegd op het contact formulier instellingen pagina.
  5. Maak een nieuw formulier/bericht en plaats de shortcode [fws_contact_form id=”X”]. X is het nummer van het formulier/bericht.
  6. Maak optioneel een antwoord e-mailbericht en kies het bericht via het formulier dat je eerder hebt gemaakt.

FAQ

Hoe voeg ik een handmatig doel toe in Clicky?

Wanneer je Clicky premium gebruikt, is het mogelijk om doelen te meten.

  1. Ga in Clicky naar Doelen > Instellingen > Een nieuw doel maken.
  2. Voer de naam van het doel in
  3. Vink het selectievakje ‘Handmatig doel’ aan en klik op Verzenden
  4. Kopieer/plak het ID in het veld van de pagina met plugin opties

Hoe kan ik het “fwsacf_after_success_form” action hook gebruiken?

Gebruik de volgende code in het function.php-bestand van je thema. Je kan bijvoorbeeld het e-mailadres en de naam indienen bij je CRM of e-mail marketingsysteem om een ​​aantal vervolg e-mails te versturen.

add_action('fwsacf_after_success_form', function($email, $name) {
    // Your code here...
    // and use the variables $email and $name if needed
}, 10, 2);

Hoe kan ik de dynamic subject functie gebruiken?

Het gebruik van deze functie is eenvoudig. Voeg gewoon de onderwerp tekst toe als query string aan de pagina URL waar je contactformulier zich bevindt, bijvoorbeeld: https://domain.com/contact/?dynsubject=yourtexthere

Hoe kan ik beveiligingsproblemen melden?

Je kan beveiligingsproblemen melden via het Patchstack Vulnerability Disclosure programma. Het Patchstack-team helpt bij het valideren, sorteren en afhandelen van beveiligingsproblemen. Meld een beveiligingsprobleem.

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Ajax Contact Form” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Ajax Contact Form” is vertaald in 1 taal. Dank voor de vertalers voor hun bijdragen.

Vertaal “Ajax Contact Form” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.3.0

  • Enhancement
    • With this version it is possible to enter a form via a post/form interface. The shortcode function still exists, but I advise to convert your forms as soon as possible.
    • The reply-to header is removed, because this header can increase the risk that your notification will go into the spam box.
    • The settings page has been re-organized.
    • Minor text changes

1.2.6

  • Bug fixes
    • Code optimization, mainly adding additional cleanup functions to variables.

1.2.5.1

  • Bug fixes
    • Another fix for the settings page.

1.2.5

  • Bug fixes
    • Fixed and updated the settings page (which was broken after the last update)

1.2.4

  • Enhancement
    • We replaced the IP Stack API with Country.is. Their API service is free and no API key is required. You don’t need to change anything.

1.2.3

  • Enhancement
    • Enable/disable the collection of form submissions globally or for each form

1.2.2

  • Enhancement
    • Integration with WP Armour – Honeypot Anti Spam

1.2.1.1

  • Bug fixes
    • Removed the “pause(500)” JS function which was used to delay Clicky tracking in previous versions.

1.2.1

  • Enhancement
    • Responsive email template for the responder emails
    • Two new fields for the responder email (pre header and footer)

1.2.0

  • Enhancement
    • New feature: Spam protection via hCaptcha (as an privacy friendly alternative to Google reCAPTCHA)
    • New feature: Spam protection using a honeypot and cookies. Note, from now these two options are always.
    • Some style corrections to play a bit nicer with the Captcha challenges.
    • Updated the Dutch translations

1.1.4.1

  • Bug fixes
    • removed some un-commented debug code from the plugin file
    • fixed an error for the Google Analytics tracking inside the JS file

1.1.4

  • Enhancement
    • New feature: Contact form submission, all submitted forms are stored in a custom post type.
    • New feature: Send out responder emails to the person who send you a message via your contact form.
    • The plugin has now a custom menu where you can find the submissions and the plugin settings.

1.1.3.1

  • Bug fixes
    • In some situations the reCAPTCHA response was requested too late. We changed the function to get working. Please post to the WordPress forums if you see any issues.

1.1.3

  • Enhancement

    • Use the new action hook “fwsacf_after_success_form” to add your custom functionality right after the form was submitted successfully. Check the FAQ for an example.
    • New shortcode attribute for an optional class inside an HTML form element.
    • Dynamic subject, check the FAQ for information on how to use this function.
  • Other

    • You can now show or hide the phone number field via the shortcode attribute “show_phone”.
    • Fixed the tabindex sequence because of the optional form fields
    • Changed form CSS style a little (including some cleanup)
    • Updated the Dutch translations

1.1.2

  • Enhancement
    • We moved the options page code from the plugin file to a separate options page file. This way it’s easier to add more options (in the future).
    • New feature: Add a thank you page. Enter the URL and the visitor is redirected to a page of your choice (after the contact form was successfully submitted).
    • All static assets are moved to the new directory “assets”

1.1.1

We solved a bug for the reCAPTCHA function. There was a problem inside the code, which marked a message as spam if it takes more than 2 minutes to send a message. Just update and the problem is gone.

  • Enhancement
    • We changed the JavaScript code a bit to prevent a double submission (which was also a problem for the reCAPTCHA verification).

1.1.0

After more than 3 years a new version. The plugin worked during the whole time and it was compatible with all past WordPress versions (I use the plugin on my own website). This version has some new features and the Mailgun email address validation is removed. Please check the settings page after the update and modify the settings if necessary. Check also the translations, besides the news string, some of them are replaced by new ones.

  • Enhancement

    • New feature: Prevent spam by blocking countries if they are not relevant for your website.
    • New feature: Fight spam using Google reCAPTCHA v3.
    • Update: The tracking feature for Google Analytics is updated. We now support the gtag.js version.
    • Update: The feature for multiple subjects is improved.
    • Update: The callback function is now using WordPress functions for sanitizing the field values.
    • Update: The form has now a field for a phone number (it’s not a required field)
  • Other

    • The Mailgun email address validation feature is removed.

1.0.5.1

  • Other
    • The plugin is tested for WordPress 4.8.1

1.0.5

  • Other

    • Replaced the link for the “Codestyling Localization” plugin. The plugin doesn’t exist anymore, I added a link to “Loco Translate” instead.
    • The plugin is tested for WordPress 4.2

    • Bug fixes

    • Fixed some issues with the (Dutch) translation files
  • Enhancement

    • The contact form message is filtered now by using the function wp_kses() before the message is added to the email message

1.0.4

  • Other

    • Added .pot file for translations
  • Bug fixes

    • Removed the IF statement for the API key value inside the shortcode function. Since version 1.03 the API key isn’t required anymore.
    • Fixed a view option name values inside the function FWS_ajax_contactform_action_callback()
  • Enhancement

    • Added Dutch translations
    • Added a new option to change the “thank you message” (I keep the old text as fallback option)
    • Code optimizations (replaced standard PHP functions and code with native WordPress functions)
    • Added default options to plugin values (where possible)
    • New: Uninstall function – All plugin option are gone on removal

1.0.3

  • Other

    • Added updated screenshots
  • Bug fixes

    • The object name used for wp_localize_script is changed because of possible conflicts with other plugins or themes
  • Enhancement

    • The Mailgun email address validation feature is now optional. The validation process is also moved from client side code (JS) to the server side code (PHP).
    • Before the form gets submitted, a simple email address validation (regular expression) is done.
    • Now it’s possible to enter multiple subjects for the email message. These subjects are used to create a SELECT menu for the contact form
    • It’s possible now to translate the complete plugin

1.0.2.1

  • Other
    • Added icons for the plugin repository
    • The plugin is tested for WordPress 4.0
    • Added instructions for using the track Clicky goal feature
    • Added an updated screenshot for the plugin settings

1.0.2

  • Bug fixes

    • Removed some typos in the text
  • Enhancement

    • Simple goal or conversion tracking for Google Analytics and Clicky

1.0.1

  • Bug fixes

    • Fixed the name for the nonce verification
    • Removed the bug for the wrong addressing of the Ajax call back function
  • Enhancement

    • Added some screenshots and FAQ’s
    • Overwrite the mail subject global setting by using a shortcode attribute

1.0

  • Initial release