SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
Contact Form 7
Pflicht und Kür
WordCamp Cologne 2015
Torsten Landsiedel
Hallo!
Torsten Landsiedel
WordPress-Webworker
Moderator im Supportforum
Mitglied im Redaktionsteam de.w.org
Translation Contributor und Editor
Co-Orga WP Meetup Hamburg
Co-Orga WordCamp Hamburg
@zodiac1978
Pflicht
Funktionen, die man kennen sollte
Barrierefreie Formulare
BAD DEFAULT:
<p>Your Name (required)<br />
[text* your-name] </p>
<p>Your Email (required)<br />
[email* your-email] </p>
<p>Subject<br />
[text your-subject] </p>
<p>Your Message<br />
[textarea your-message] </p>
<p>[submit "Send"]</p>
http://blog.rrwd.nl/2014/03/01/how-to-set-up-an-accessible-form-using-contact-form-7-in-wordpress/
Barrierefreie Formulare
BEST PRACTICE:
[response]
<label for="name">Name (required)</label>
[text* your-name id:name]
...
[submit "Submit"]
https://wordpress.org/plugins/contact-form-7-accessible-defaults/
Nur Laden, wenn Formular genutzt
add_filter( 'wpcf7_load_js', '__return_false' );
add_filter( 'wpcf7_load_css', '__return_false' );
function reregister_cf7_javascript() {
if ( is_page( array( 1, ‘kontakt’ ) ) ) {
if ( function_exists( 'wpcf7_enqueue_scripts' ) ) {
wpcf7_enqueue_scripts();
}
if ( function_exists( 'wpcf7_enqueue_styles' ) ) {
wpcf7_enqueue_styles();
}
}
}
add_action( 'wp_enqueue_scripts', 'reregister_cf7_javascript' );
http://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-
necessary/
Kür
Funktionen, die nicht jeder kennt
AGB gelesen und akzeptiert?
[acceptance accept-this] AGB gelesen und akzeptiert
http://contactform7.com/acceptance-checkbox/
Standardwerte setzen
[text* your-name default:get default:post_meta default:
user_display_name "Dein Name"]
Von links nach rechts: GET-Variable gesetzt? Post-Meta definiert?
Eingeloggter User, mit gesetzten Namen? Alles nicht der Fall?
Dann nutze “Dein Name” als Standardwert.
http://contactform7.com/getting-default-values-from-the-context/
http://contactform7.com/setting-default-values-to-the-logged-in-user/
Erfolgsseite
on_sent_ok: "location = '/formular-erfolgreich-eingetragen/';"
Nach erfolgreichem Absenden des Formular auf
Extraseite weiterleiten.
HTML5-Input Types (date, etc.)
/*
Activate HTML5 fallback support
See: http://contactform7.com/faq/does-contact-form-7-support-html5-input-
types/
*/
add_filter( 'wpcf7_support_html5_fallback', '__return_true' );
Min+Max
Kombination von Datepicker und min:today
Big brother is watching you!
Ein paar Informationen des User mitsenden:
[_remote_ip]
[_user_agent]
[_url]
[_date]
[_time]
http://contactform7.com/special-mail-tags/
Zugangsrechte
Standard ist: alle können Lesen (außer der Abonnent).
Gelöst über die capability. Änderbar per Konstante:
define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
Ebenso das Bearbeiten der Formulare. Standardmäßig Admin und
Redakteur. So nur noch der Admin alleine:
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
Platzhalter
[text your-name placeholder "Your name here"]
http://contactform7.com/setting-placeholder-text/
Mail-Datenbanken
Jede Mail über Contact Form 7 sichern:
https://wordpress.org/plugins/flamingo/
https://wordpress.org/plugins/contact-form-7-to-database-extension/
https://wordpress.org/plugins/contact-form-7-integrations/
https://wordpress.org/plugins/contact-form-to-email/
CF7-Erweiterungen
https://wordpress.org/plugins/tags/cf7
Anti-Spam:
https://wordpress.org/plugins/wp-math-captcha/
https://wordpress.org/plugins/contact-form-7-honeypot/
Better UI/UX:
https://wordpress.org/plugins/contact-form-7-style/
https://wordpress.org/plugins/contact-form-7-designer/
https://wordpress.org/plugins/contact-form-7-skins/
https://wordpress.org/plugins/cf7-mce/
https://wordpress.org/plugins/contact-form-7-success-page-redirects/
CF7-Erweiterungen
https://wordpress.org/plugins/tags/cf7
Special cases:
https://wordpress.org/plugins/ns-google-sheets-connector/
https://wordpress.org/plugins/wp-job-manager-contact-listing/
Shops
https://wordpress.org/plugins/contact-form-7-paypal-add-on/
https://wordpress.org/plugins/process-automation/
Und noch viele mehr ...
Fragen?
Danke!

Weitere ähnliche Inhalte

Andere mochten auch

Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)Rob Crowley
 
Bounty Craft: Bug bounty reports how do they work, @sushihack presents at Nu...
Bounty Craft: Bug bounty reports  how do they work, @sushihack presents at Nu...Bounty Craft: Bug bounty reports  how do they work, @sushihack presents at Nu...
Bounty Craft: Bug bounty reports how do they work, @sushihack presents at Nu...HackerOne
 
Sviluppare Plugin per WordPress
Sviluppare Plugin per WordPress Sviluppare Plugin per WordPress
Sviluppare Plugin per WordPress Thomas Vitale
 
BizOps and you
BizOps and youBizOps and you
BizOps and youLeon Fayer
 
Impact Analysis - LoopConf
Impact Analysis - LoopConfImpact Analysis - LoopConf
Impact Analysis - LoopConfChris Lema
 
The Human Side of the Web PPT
The Human Side of the Web PPTThe Human Side of the Web PPT
The Human Side of the Web PPTTanya Moushi
 
From Blog to Business -- Building Membership Websites with WordPress
From Blog to Business -- Building Membership Websites with WordPressFrom Blog to Business -- Building Membership Websites with WordPress
From Blog to Business -- Building Membership Websites with WordPressBrian Krogsgard
 
How Blogging Kickstarted My Career
How Blogging Kickstarted My CareerHow Blogging Kickstarted My Career
How Blogging Kickstarted My CareerBrian Krogsgard
 
Let's build an Airport – How to estimate large scale projects
Let's build an Airport – How to estimate large scale projectsLet's build an Airport – How to estimate large scale projects
Let's build an Airport – How to estimate large scale projects☕ 🥧 🚲 Martin Gude
 
Big-tent UX (UX Camp West 2016)
Big-tent UX (UX Camp West 2016)Big-tent UX (UX Camp West 2016)
Big-tent UX (UX Camp West 2016)Peter Boersma
 

Andere mochten auch (10)

Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)
 
Bounty Craft: Bug bounty reports how do they work, @sushihack presents at Nu...
Bounty Craft: Bug bounty reports  how do they work, @sushihack presents at Nu...Bounty Craft: Bug bounty reports  how do they work, @sushihack presents at Nu...
Bounty Craft: Bug bounty reports how do they work, @sushihack presents at Nu...
 
Sviluppare Plugin per WordPress
Sviluppare Plugin per WordPress Sviluppare Plugin per WordPress
Sviluppare Plugin per WordPress
 
BizOps and you
BizOps and youBizOps and you
BizOps and you
 
Impact Analysis - LoopConf
Impact Analysis - LoopConfImpact Analysis - LoopConf
Impact Analysis - LoopConf
 
The Human Side of the Web PPT
The Human Side of the Web PPTThe Human Side of the Web PPT
The Human Side of the Web PPT
 
From Blog to Business -- Building Membership Websites with WordPress
From Blog to Business -- Building Membership Websites with WordPressFrom Blog to Business -- Building Membership Websites with WordPress
From Blog to Business -- Building Membership Websites with WordPress
 
How Blogging Kickstarted My Career
How Blogging Kickstarted My CareerHow Blogging Kickstarted My Career
How Blogging Kickstarted My Career
 
Let's build an Airport – How to estimate large scale projects
Let's build an Airport – How to estimate large scale projectsLet's build an Airport – How to estimate large scale projects
Let's build an Airport – How to estimate large scale projects
 
Big-tent UX (UX Camp West 2016)
Big-tent UX (UX Camp West 2016)Big-tent UX (UX Camp West 2016)
Big-tent UX (UX Camp West 2016)
 

Mehr von Torsten Landsiedel

Das Health Check Plugin in der Praxis
Das Health Check Plugin in der PraxisDas Health Check Plugin in der Praxis
Das Health Check Plugin in der PraxisTorsten Landsiedel
 
UX-Probleme mit dem neuen Block-Editor (Gutenberg)
UX-Probleme mit dem neuen Block-Editor (Gutenberg)UX-Probleme mit dem neuen Block-Editor (Gutenberg)
UX-Probleme mit dem neuen Block-Editor (Gutenberg)Torsten Landsiedel
 
Werde Übersetzer! Werde Translation Editor!
Werde Übersetzer!  Werde Translation Editor!Werde Übersetzer!  Werde Translation Editor!
Werde Übersetzer! Werde Translation Editor!Torsten Landsiedel
 
Die schmutzige Seite von WordPress
Die schmutzige Seite von WordPressDie schmutzige Seite von WordPress
Die schmutzige Seite von WordPressTorsten Landsiedel
 
The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionTorsten Landsiedel
 
Umgang mit Frustration im Open-Source-Projekt WordPress
Umgang mit Frustration im Open-Source-Projekt WordPressUmgang mit Frustration im Open-Source-Projekt WordPress
Umgang mit Frustration im Open-Source-Projekt WordPressTorsten Landsiedel
 
Wie ich durch Support und Übersetzung ein (besserer) Entwickler geworden bin
Wie ich durch Support und Übersetzung ein (besserer) Entwickler geworden binWie ich durch Support und Übersetzung ein (besserer) Entwickler geworden bin
Wie ich durch Support und Übersetzung ein (besserer) Entwickler geworden binTorsten Landsiedel
 
Social Media Menüs in WordPress
Social Media Menüs in WordPressSocial Media Menüs in WordPress
Social Media Menüs in WordPressTorsten Landsiedel
 
HTML/CSS-Validierung in Zeiten von HTML5
HTML/CSS-Validierung in Zeiten von HTML5HTML/CSS-Validierung in Zeiten von HTML5
HTML/CSS-Validierung in Zeiten von HTML5Torsten Landsiedel
 
Shortcodes erstellen mit WordPress
Shortcodes erstellen mit WordPressShortcodes erstellen mit WordPress
Shortcodes erstellen mit WordPressTorsten Landsiedel
 
WordPress absichern - WP Camp 2012 in Berlin
WordPress absichern - WP Camp 2012 in BerlinWordPress absichern - WP Camp 2012 in Berlin
WordPress absichern - WP Camp 2012 in BerlinTorsten Landsiedel
 
Podcasting mit WordPress.com-Blogs
Podcasting mit WordPress.com-BlogsPodcasting mit WordPress.com-Blogs
Podcasting mit WordPress.com-BlogsTorsten Landsiedel
 
WordPress.com-Blogs individualisieren
WordPress.com-Blogs individualisierenWordPress.com-Blogs individualisieren
WordPress.com-Blogs individualisierenTorsten Landsiedel
 

Mehr von Torsten Landsiedel (18)

Das Health Check Plugin in der Praxis
Das Health Check Plugin in der PraxisDas Health Check Plugin in der Praxis
Das Health Check Plugin in der Praxis
 
UX-Probleme mit dem neuen Block-Editor (Gutenberg)
UX-Probleme mit dem neuen Block-Editor (Gutenberg)UX-Probleme mit dem neuen Block-Editor (Gutenberg)
UX-Probleme mit dem neuen Block-Editor (Gutenberg)
 
Oh, no! DSGVO.
Oh, no! DSGVO.Oh, no! DSGVO.
Oh, no! DSGVO.
 
WordPress kaputt machen
WordPress kaputt machenWordPress kaputt machen
WordPress kaputt machen
 
Werde Übersetzer! Werde Translation Editor!
Werde Übersetzer!  Werde Translation Editor!Werde Übersetzer!  Werde Translation Editor!
Werde Übersetzer! Werde Translation Editor!
 
Die schmutzige Seite von WordPress
Die schmutzige Seite von WordPressDie schmutzige Seite von WordPress
Die schmutzige Seite von WordPress
 
The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano Edition
 
Umgang mit Frustration im Open-Source-Projekt WordPress
Umgang mit Frustration im Open-Source-Projekt WordPressUmgang mit Frustration im Open-Source-Projekt WordPress
Umgang mit Frustration im Open-Source-Projekt WordPress
 
The Child Theme Dilemma (EN)
The Child Theme Dilemma (EN)The Child Theme Dilemma (EN)
The Child Theme Dilemma (EN)
 
Wie ich durch Support und Übersetzung ein (besserer) Entwickler geworden bin
Wie ich durch Support und Übersetzung ein (besserer) Entwickler geworden binWie ich durch Support und Übersetzung ein (besserer) Entwickler geworden bin
Wie ich durch Support und Übersetzung ein (besserer) Entwickler geworden bin
 
Social Media Menüs in WordPress
Social Media Menüs in WordPressSocial Media Menüs in WordPress
Social Media Menüs in WordPress
 
Mitmachen bei WordPress
Mitmachen bei WordPressMitmachen bei WordPress
Mitmachen bei WordPress
 
MetaMeetup
MetaMeetupMetaMeetup
MetaMeetup
 
HTML/CSS-Validierung in Zeiten von HTML5
HTML/CSS-Validierung in Zeiten von HTML5HTML/CSS-Validierung in Zeiten von HTML5
HTML/CSS-Validierung in Zeiten von HTML5
 
Shortcodes erstellen mit WordPress
Shortcodes erstellen mit WordPressShortcodes erstellen mit WordPress
Shortcodes erstellen mit WordPress
 
WordPress absichern - WP Camp 2012 in Berlin
WordPress absichern - WP Camp 2012 in BerlinWordPress absichern - WP Camp 2012 in Berlin
WordPress absichern - WP Camp 2012 in Berlin
 
Podcasting mit WordPress.com-Blogs
Podcasting mit WordPress.com-BlogsPodcasting mit WordPress.com-Blogs
Podcasting mit WordPress.com-Blogs
 
WordPress.com-Blogs individualisieren
WordPress.com-Blogs individualisierenWordPress.com-Blogs individualisieren
WordPress.com-Blogs individualisieren
 

Contact Form 7 - Pflicht und Kür