=== cformsII - contact form ===
Contributors: bgermann, olivers
Donate link: https://www.betterplace.org/organisations/tatkraeftig/donations/new
Tags: contact form, ajax, contact, form, input, comments, post, sidebar, spam, admin
Requires at least: 3.5
Tested up to: 4.0
Stable tag: trunk
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0
cformsII is the most customizable, flexible & powerful ajax supporting contact form plugin (& comment form)!
== Description ==
This is a fork of cformsII, a highly customizable, flexible and powerful form builder plugin, covering a variety of use cases and features from attachments to multi form management, you can even have multiple forms on the same page!
Oliver, the original author, does not further develop the plugin. This fork is an effort to keep it up to date.
If you want to use non-GPL versions older than 10.2 or see their changelog, you can [browse the original Trac](https://plugins.trac.wordpress.org/browser/cforms/).
If you want to use plugin versions older than 14.6.3, you should rename the directory containing the plugin from "cforms2" to "cforms".
= Credits =
Some icons are based on the wonderful [Glyphicons](http://glyphicons.com) Halflings set of Jan Kovařík, taken from Twitter Bootstrap (MIT license, see images/LICENSE file).
Translations are provided by:
* www.alpenimmobilien.de
* Michael Lederstatter / Buy-Hosting.net
* Leadvirus
* Gianni Diurno
* Gill Ajoft
* Stas Mykhajlyuk
* Charles Tang
Please see the *.po gettext files for further information.
= License Information =
Copyright (c) 2006-2012 Oliver Seidel (email : oliver.seidel @ deliciousdays.com)
Copyright (c) 2014 Bastian Germann
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
== Installation ==
= Installing the plugin =
You can install the plugin via Wordpress Dashboard. It should show up by searching
for cforms2. If this does not work for you, there should be an option to upload a
zip file, which is available on the
[wordpress.org plugin directory](https://downloads.wordpress.org/plugin/cforms2).
If you want to install manually, please upload the complete plugin folder "cforms2",
contained in the zip file, to your WP plugin directory!
= Upgrading the plugin =
If you want to upgrade from the original cformsII from deliciousdays.com, please
upgrade to the original version 14.6 first, make sure you upgraded your settings and
backup your database. Then deactivate the original plugin and install this fork.
If you want to delete the original version, make sure you do not delete your upload
directory.
= Did you modify any cforms theme (CSS) files, images etc? =
Create a custom folder under your WP plugin directory & call it "cforms-custom". Move
all your custom files into it. This folder will protect your changes going forward.
Also note that it is always advisable to make or keep a backup of your
current plugin directory just in case you need to revert back to a
previous release!
Check out the [cforms CSS Guide](http://www.deliciousdays.com/download/cforms-css-guide.pdf) on layout customization.
== Frequently Asked Questions ==
= Where are the external SMTP settings? =
That function was removed. The Wordpress function wp_mail is now used for mails, which makes use of built-in PHPMailer.
If you want to configure it to use an external SMTP server, use an appropriate plugin, e.g. [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/).
= I upgraded and lost my widgets. What can I do? =
Beginning with 14.6.10 Wordpress 2.8 Widget API is used for cforms widgets.
You have to recreate your widgets. You can find your old settings in debug output on the Global Settings Admin menu.
Just search for widgets with your browser's search.
= How can I contribute code? =
Please use [GitHub pull requests](https://github.com/bgermann/cforms2/pulls).
== Localization ==
If your language is set correctly the language file in the ____Plugin_Localization directory should be picked up immediately.
You can find a list of the [translations for the original cforms version](http://web.archive.org/web/20141103044209/http://www.deliciousdays.com/cforms-plugin/), which also work with this fork.
If there is a language file available for you, but it is not included in the standard distribution, please put the cforms-*.mo file in the wp-content/languages/plugins directory.
If you would like to contribute a new language file, please [submit a GitHub pull request](https://github.com/bgermann/cforms2/pulls) with the translation file included.
It has to be GPL licensed. If an available translation on the original website is not GPL licensed (they can, because cformsII did not start as GPL project),
you must not redistribute it as long as it is not your translation.
== Donations ==
This fork is originally developed for the website of [tatkräftig](http://tatkraeftig.org) (only German), a German charitable organization that encourages and supports people in social engagement.
If you can afford it, please consider [making a donation](https://www.betterplace.org/organisations/tatkraeftig/donations/new) to support that organization and further development.
The original author who developed cforms until 2012 also has a [donation page](http://www.deliciousdays.com/cforms-donation).
== Roadmap ==
Some things are to be done:
* filter user input
* make attachments download support directories that are not exported via HTTP
* grunt build process similar to WordPress core
* long term: refactoring with object oriented approach
* long term: unit tests and continuous integration
== Upgrade Notice ==
= 14.7 =
Explicit Subscribe To Comments support is removed. Please delete all the remaining input elements from your forms. Also check the styling on comment forms!
= 14.6.10 =
Wordpress 2.8 Widget API is now used for cforms widgets. You have to recreate your widgets.
= 14.6.8 =
There are full German and Italian translations available now.
= 14.6.7 =
This is only compatible with Wordpress 3.5+. Version 3.3 and 3.4 support is dropped.
= 14.6.3 =
The Wordpress function wp_mail is now used for mails, which makes use of built-in PHPMailer. If you want to configure it to use an external SMTP server, use an appropriate plugin, e.g. [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/).
= 14.5 =
v14.5+ is only compatible with WP 3.3+
= 10.6 =
WP 2.8 compliance
= 10.2 =
GPL compliance!
== Changelog ==
= 14.7 =
* enhanced: replace Subscribe To Comments support with a more general approach to also support Subscribe To Comments Reloaded
* added: Bosnian, Croatian, Serbian, Simplified Chinese and full Ukrainian translations
* other: remove old WP Ajax Edit Comments support, because current versions work without special support
= 14.6.11 =
* enhanced: API function my_cforms_action() can throw an exception
* bugfix: several AJAX related JavaScript undefined function bugs introduced in 14.6.8
* bugfix: repair non-AJAX comment form
* other: remove support for old Comment Luv versions
= 14.6.10 =
* enhanced: use Wordpress 2.8 Widget API
* bugfix: JavaScript error on flexigrid drag event
* bugfix: show errors on sending mail
* bugfix: mitigate some possible SQL injection attacks
* other: remove attribution link, because the original cforms site is shut down
= 14.6.9 =
* bugfix: [Download Entries on Tracking not working](https://wordpress.org/support/topic/download-entries-on-tracking-not-working)
* other: cut old changelog because of rendering problems with too big readme.txt file on wordpress.org
= 14.6.8 =
* enhanced: full German and Italian translations
* enhanced: use jquery-ui-sortable instead of its ancient Interface Elements predecessor
* added: store version in database again
* added: migration for month and day names
= 14.6.7 =
* enhanced: reorganize JavaScript files to provide better dependency management
* enhanced: bump up ClockPick to the newest version
* enhanced: bump up jqModal to the newest version
* enhanced: use jQuery wrapper for md5.js
* enhanced: replace the color picker with iris (wordpress standard since 3.5)
* feature: uninstallation deletes cforms database content
* bugfix: captcha preview in global settings renders correctly
* other: remove kibo dependency
* other: removed unused images and code (including [GPL incompatible](http://www.dynamicdrive.com/notice.htm), stolen JavaScript code)
* other: replace donation button
= 14.6.6 =
* bugfix: wrong AJAX MIME type
* added: guideline to upgrade from original cforms
* other: removed old upgrade code
* other: moved some additional information in textfiles to readme.txt
= 14.6.5 =
* other: reintroduced the public insert_cform function
= 14.6.4 =
* bugfix: hanging form submission
= 14.6.3 =
* feature: Use the ____Plugin_Localization directory to store and distribute some GPL translations
* enhanced: unobfuscate JavaScript changes from version 10.3 on and kick out js_src.zip which was not updated since then
* enhanced: Wordpress function wp_mail is used for mails and direct PHPMailer support is removed
* enhanced: make use of the native Wordpress AJAX features
* enhanced: get rid of the data.tmp and abspath.php files
* enhanced: get rid of some paths and urls in the database
* enhanced: bump up flexigrid to the newest version
* other: replaced the captcha fonts with GPL fonts
* other: reintroduced attribution link, that is opt-in now, which is demanded by the wordpress.org plugin guidelines
* other: prefix function names and class names with cforms2, which is demanded by wordpress.org
* other: remove the custom plugin update check
* other: remove of a lot of old code which is not needed for Wordpress 3.3+
* other: remove v13 update information
* other: move and rework changelog to be Markdown-compatible and have a tag subset
= 14.6.2 =
* bugfix: issues upgrading from older versions of cforms
* other: removed link at the bottom of the contact form
= 14.6.1 =
* bugfix: SSL support on file includes
* bugfix: double slash in file includes
= 14.6 =
* added: NEW: my_cforms_filter() in my-functions.php (input filter)
* bugfix: Security/SPAM issue with TellAFriend feature
* added: Avoiding wpautop screwing with the layout
* added: Changed the_content filter priority to deal with themes demanding wpautop
* bugfix: multi-part forms: RESET button resets complete input and not just session
= 14.5 =
* added: WP3.4 compliance
* bugfix: CAPTCHA security issue; can't override captcha settings via URL params
* bugfix: re-enabled version update info on the native WP plugins page
= 14.2 =
* added: added more IQ to my-functions.php:
"adminEmailSUBJ" & "autoConfSUBJ" to change the subject line during run-time
Also, check out Regis' code example in this new section!
Thanks Regis!
* added: "\n" in the default text of textarea fields is recognised as a new line character
* bugfix: Call-time pass-by-reference in lib_aux.php
* bugfix: XML download, imports now nicely into excel, even with multi-line fields
* bugfix: corrected superfluous html5***** settings for non html5 fields
* bugfix: bigger field label issues when using custom IDs and regexp
* bugfix: localization issue with lib_editor.php and added French translation for the editor. Thanks Regis!
= 14.1 =
* bugfix: localization in wizard popups
* bugfix: array declaration error some experienced in lib_activate.php
* bugfix: header inclusion/exclusion on specific pages
= 14.0 =
* enhanced: tabbed navigation between form configuration fields
* added: date picker support for year selection drop down
* added: HTML5 support, new Global Settings (must be enabled first) and Form Options:
html5color, html5date, html5datetime, html5datetime-local, html5email, html5month,
html5number, html5range, html5search, html5tel, html5time, html5url, html5week
* added: new my_cforms_logic() routines "fileDestination", "fileDestinationTrackingPage" for uploads
* bugfix: date picker start day
* bugfix: loading of calendar style (css)
* bugfix: form submission restrictions (from/to date and number)
* bugfix: extra slash removed from plugin URL (fixes path to custom CSS file in /cforms-custom/)
= 13.2.2 =
* bugfix: CC field issues for MP forms
* bugfix: Reply-To fixed in admin email
* bugfix: fixed 'custom names' form feature
* added: hidden field default value supports cforms {default variables},eg. UserID, Name etc.
= 13.2.1 =
* bugfix: undefined function 'my_cforms_logic'
= 13.2 =
* bugfix: XSS security issue with lib_ajax.php
* bugfix: several fixes around "CC: me" field
* enhanced: added Help Note on how to use {Custom Variables} in multi-page forms
* bugfix: default checkbox state is not restored on form reload (user choice remains)
* bugfix: removed depreciated eregi() & split() calls
* enhanced: better support for SSL and multi-site deployments (WP v3x!)
* bugfix: "Corrupted Content Error" on FF when backing up settings
* feature: empty fields can now be excluded from the admin email
(Admin Email Message Options)
* bugfix: multi-page forms: the "disable email attachments" setting for individual
forms is now being considered in the final admin email
* enhanced: fixed several issues with multi page forms (accidental auto resets etc.),
forms now need to be manually reset via form reset button (setting),
no auto form reset anymore when on first form!
form session is properly remembered.
* enhanced: calendar.css adjustments to make styles specific to cforms
= 13.1 =
* bugfix: radio button fix
= 13.0 =
* other: WP3.3 compliance
* other: a new more modern default theme/style (cforms2012.css)
* other: WP 3.3 jQuery / jQueryUI is now being used for the date picker!
* other: link to supported date formats added to global settings screen
* other: enhanced dashboard layout / listings
* other: enhanced in-field editing on tracking page ("view records area")
* bugfix: checkbox "default state" setting fixed
* bugfix: checkboxgroup "default states" & "new line" settings fixed
* bugfix: several admin screens related fixes
* bugfix: tracking page, download options fixed (header, URLs etc.)
* other: checkbox fields now include a "checked symbol", instead of the word "on"
* other: email layout enhancements (optimized for gmail & HTML capable clients)
!!! NOTE: in order to fully enable the new layout for old forms, you MUST
reset the Admin & Auto Confirmation Messages (see button above each)
= 12.2 =
* other: pare_str() caused issues for some, commented out now
= 12.1 =
* bugfix: minor datepicker adjustment (for anyone that uses non standard date display)
= 12.0 =
* other: WP3.2.1 compliance
* other: upgraded to jQuery 1.6.2 (datepicker)
* bugfix: corrected WP comment form issue ($usermessage_text)
* bugfix: Zip Code RegExp in the Help Seection corrected
* bugfix: date picker fix for WP3.2
= 11.9 =
* bugfix: IE9 date picker fix
= 11.8 =
* bugfix: fixing PHP's issue with uksort()
* bugfix: upload fields in forms could cause hang ups when submitted from iphone/ipad
* other: enhanced path determination in cforms.js, should help to avoid issues going forward
* other: session check in cforms.php to better support existing sessions (shopping carts etc)
= 11.7.3 =
* bugfix: stalling of upload forms fixed (or ones with alternative form action)
= 11.7.2 =
* other: enhanced support for form field arrays, e.g. : my-field[id:address[]]
* bugfix: fixed jQuery wizard editor error
* bugfix: fixed "upload field" handling & form error (stalling)
* bugfix: sorting fixed for API call "get_cforms_entries()" - hopefully for good
= 11.7.1 =
* bugfix: fixed function_exists() call in lib_functions.php
* bugfix: fixed some date picker related bugs
* bugfix: fixed PHP call insert_cforms() to accept "Form Names" as input (again)
= 11.7 =
* bugfix: much enhanced/fixed REGEXP support for multi-line fields, to better support anti
SPAM measures, e.g. : ^(?!.*(xxx|seo|ptimization)).*$
= 11.6.1 =
* bugfix: fixed missing spaces in multi-line text fields
= 11.6 =
* added: addded Form Name to `