Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
=== Contact Form DB === Contributors: msimpson Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=NEVDJ792HKGFN&lc=US&item_name=Wordpress%20Plugin&item_number=cf7%2dto%2ddb%2dextension¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted Tags: contact form,database,contact form database,save contact form,form database,CFDB License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html Requires at least: 3.2.1 Tested up to: 4.1 Stable tag: 2.8.35 Saves submitted form data to the database. Export the data to a file or use short codes to display it. == Description == The "CFDB" plugin saves contact form submissions to your WordPress database and provides and administration page and short codes to view and display the data. Video tutorial on the <a href="http://cfdbplugin.com/">CFDB Plugin Site</a> By simply installing the plugin, it will automatically begin to capture form submissions from: * JetPack Contact Form plugin * Contact Form 7 (CF7) plugin * Fast Secure Contact Form (FSCF) plugin * Gravity Forms plugin * WR ContactForm plugin * Quform plugin (BETA) * Ninja Forms plugin (BETA) * Enfold theme forms Other form submissions can be saved with the addition of the <a href="http://cfdbplugin.com/?page_id=508">[cfdb-save-form-post]</a> short code on the target submission page. Contact form plugins are great but generally one thing...the ability to save and retrieve the form data to/from the database. If you get a lot of form submissions, then you end up sorting through a lot of email. This plugin provides three administration pages in the administration area under the "Contact form DB" submenu. * "Contact form DB" to view and export form submission data * "Database Short Code" page to generate short codes and exports * "Database Options" to change configuration parameters Displaying Saved Data in Posts and Pages Use short codes such as [cfdb-html], [cfdb-table], [cfdb-datatable], [cfdb-value] and [cfdb-json] to display the data on a non-admin page on your site. Use the short code builder page to set short code options. == Installation == 1. Your WordPress site must be running PHP5 or better. This plugin will fail to activate if your site is running PHP4. 1. Be sure that any of Contact Form 7, Fast Secure Contact Form, JetPack, and/or Gravity Forms is installed and activated == Frequently Asked Questions == = Is there a tutorial? = See the <a href="https://www.youtube.com/watch?v=mcbIKJK6EJ0">Video Tutorial</a> = I installed the plugin but I don't see any of my forms listed in the administration page = Nothing will show until you have actual form submissions captured by this plugin. The plugin is not aware of your form definitions, it is only aware of form submissions. = Where can I find documentation on the plugin? = Refer the <a href="http://cfdbplugin.com/">Plugin Site</a> = Where do I see the data? = * In the admin page, "Contact Form DB" = Can I display form data on a non-admin web page or in a post? = Yes, <a href="http://cfdbplugin.com/?page_id=89">documentation on shortcodes</a> `[cfdb-html]`, `[cfdb-datatable]`, `[cfdb-table]`, `[cfdb-json]` and `[cfdb-value]`, etc. = What is the name of the table where the data is stored? = `wp_cf7dbplugin_submits` Note: if you changed your WordPress MySql table prefix from the default `wp_` to something else, then this table will also have that prefix instead of `wp_` (`$wpdb->prefix`) = If I uninstall the plugin, what happens to its data in the database? = By default it remains in your database in its own table. There is an option to have the plugin delete all its data if you uninstall it that you can set if you like. You can always deactivate the plugin without loosing data. == Screenshots == 1. Admin Panel view of submitted form data == Changelog == = 2.8.36 = * Now captures form submission from Quform plugin * Now captures form submission from Ninja Forms plugin = 2.8.35 = * Reduced cell padding in admin table * Fixed typo in new option = 2.8.34 = * Now captures Enfold Theme forms * New on Options page: "Use fixed with in Admin datatable" * Taiwanese language update = 2.8.33 = * Fixed Delete button on Admin entry detail page = 2.8.32 = * Security patch = 2.8.31 = * Fix to work with Gravity Forms 184.108.40.206 = 2.8.30 = * Minor fix to short code builder page = 2.8.29 = * Tweak to install procedure = 2.8.28 = * Security patch = 2.8.27 = * Minor tweak to allow edit mode in short code to be set via $_GET and $_POST = 2.8.26 = * Encoding fix on administration page = 2.8.25 = * Now captures data from WR ContactForm (BETA) * New option to allow only Administrators to see CFDB administration screens * New option to send CFDB errors to a file to email * Bug fix to avoid rare instances of duplicate submit_time = 2.8.24 = * Bug fix related to displaying form names in administration panel with certain characters = 2.8.23 = * Bug fix for Gravity Form integration. Sometimes field value was not captured where there are multiple fields of the same name but only one shown based on conditional field definition. = 2.8.22 = * Changed icon in admin panel * Dutch translation update = 2.8.21 = * Added icons to admin panel = 2.8.20 = * Additional XSS protection for admin panels = 2.8.19 = * Swedish translation update = 2.8.18 = * Better XSS protection for admin panels = 2.8.17 = * Bug fix in [cfdb-html] variable substitution when data for column is not present. = 2.8.16 = * Generating the [submit_time] tag for Contact Form 7 is now an option in the Options page and is off by default to avoid the post being flagged as spam * Added some protection against cross site scripting = 2.8.15 = * Bug Fix: No longer generating 'submit_url' for Contact Form 7 email because it seems to cause CF7 to think it is a spam submission and it drops it. * Bug fix: when form name has commas in it, retrieving its data from the DB did not work because plugin was treating it as a list of form names = 2.8.14 = * Fix to capturing Gravity Forms list values = 2.8.13 = * Bug fix in "trans" = 2.8.12 = * Work-around for WP bug https://core.trac.wordpress.org/ticket/29658 = 2.8.11 = * Bug fix related to Excel Internet Query export * Bug fix when HTML special characters in short code attributes = 2.8.10 = * Bug fix related to "trans" with multiple transform functions = 2.8.9 = * Added delete button in admin screen viewing single submission * Can now include in CF7 emails the CFDB [submit_time] and [submit_url] * Fixes to handling line breaks in [cfdb-json] = 2.8.8 = * PHP fix: work-around for bug in PHP 5.3.0 - 5.3.8 https://bugs.php.net/bug.php?id=43200 = 2.8.7 = * Bug fix: [cfdb-export-link] was not processing all short code options = 2.8.6 = * Bug fix: on some system submit_time timestamp lost precision due to being represented in scientific notation. This can cause more than one submission being seen as the same. = 2.8.5 = * Fix to error message introduced in 2.8.4 = 2.8.4 = * New short code [cfdb-save-form-maker-post] can be used to capture data from Form Maker plugin. * Bug fix: (recently introduced in 2.8) Fixed handling of filter expressions with $_POST(field) where field is blank * Bug fix: Fix for rarely experienced bug where plugin is confused about needing to upgrade itself = 2.8.3 = * IMPORTANT: Addition fix to work properly with Contact Form 7 version 3.9 = 2.8.2 = * IMPORTANT: Contact Form 7 users will need to update to this version when they update to Contact Form 7 version 3.9 otherwise data will no longer be saved in the database! * Bug fix: cases where blank version saved to DB was causing the plugin to keep trying to upgrade * Bug fix: data with blank column name was causing query to fail and data not to be displayed = 2.8.1 = * Bug fix: transform re-assigning the value of a column was creating a duplicate column = 2.8 = * Can put functions in short code filters. <a target="_cfdb_doc" href="http://cfdbplugin.com/?page_id=1073">See documentation</a> * Can transform data coming into short codes by assigning functions or classes in the new "trans" short code attribute. <a target="_cfdb_doc" href="http://cfdbplugin.com/?page_id=1076">See documentation</a> * All short code options can be set to $_POST(value), $_GET(value), $_COOKIE(value) * Most short codes now allows for an optional "before" and "after" section * Admin page view now has links on each row to bring up a window with just that entry's data. Easier to read and print (and edit if Editor extension is installed) * Support for MySqli which should fix some character encoding issues * Returning null from cfdb_form_data filter now stops the form from saving * Bug fix: hook to save form data was not returning "true" an causing subsequent hooks for other plugins to not be called. = 2.7.5 = * Simpler Google Live Data implementation * [cfdb-json] now supports "header" and "headers" options. Short code builder page now generates JSON export link. = 2.7.4 = * Fix: short code builder page for Google Live Data typo: was giving the spreadsheet function as "cfdbddata" instead of "cfdbdata" = 2.7.3 = * Fix for mysql_real_escape_string error = 2.7.2 = * Google Spreadsheet Live Data now fixed. But users need to regenerate Google script code * Google Spreadsheet Live Data function now supports all standard short code options (filter, show, hide, etc.) * Short Code Builder page now can build function call to be used in Google Spreadsheet * [cfdb-export-link], CSV exports and Excel export Links now support "headers" options = 2.7.1 = * Integration with wp-parsidate to shows Shamsi(Jalali) dates. = 2.7 = * Integration with Gravity Forms * Translation updates = 2.6.3 = * Bug fix: When option was set, Cookies were not being captured with the form submission unless explicitly listed * Option page has "have donated" option that will turn off showing the Donate button on admin pages = 2.6.2 = * Admin page has checkbox for selecting all visible rows * New option: #Rows (of maximum above) visible in the Admin datatable * Custom short code filters (alpha) = 2.6.1 = * Minor bug fix: needed to strip slashes from dt_options when using cfdb-datatable by URL * Minor bug fix: avoiding divide by zero error in [cfdb-value] * Minor bug fix: avoiding error when no timezone set: "Notice: date_default_timezone_set() [function.date-default-timezone-set.php]: Timezone ID '' is invalid" = 2.6 = * [cfdb-datatable form="form-name" edit="true"] The "edit" option makes the table editable if the CFDB Editor plugin extension is also installed. * [cfdb-datatable] "Show" setting shows all rows by default * [cfdb-datatable] upgraded the included DataTables to version 1.9.4 * Support for import from CSV file when CFDB Editor extension is installed = 2.5.2 = * Minor bug fix. When user has exactly one form and admin page auto-loads that form's data, the editor plugin did not know which form to edit. = 2.5.1 = * Now "headers" option on [cfdb-table] and [cfdb-datatable] allow you to change column header display names, e.g [cfdb-table form="form1" headers="ext_field1=First Name,ext_field2=Last Name"] * Can now query multiple forms at once in short codes, e.g. [cfdb-table form="form1,form2"] * Added RSS URLs * Can now use regex's in options for forms & fields to ignore and which cookie values to save = 2.5 = * Added option to set the timezone in which Submit Time should be captured. = 2.4.8 = * Bug Fix: noSaveFields not observed for file upload files = 2.4.7 = * Fixing "PHP Notice: Undefined property: WPCF7_ContactForm::$user" = 2.4.6 = * Fix where JetPack users could not see submitted data related to form field names with a single quote in them = 2.4.5 = * Fixing issue where admin page for data does not show for users less than administration even when permissions are set for such users to view the data = 2.4.4 = * Fixed WordPress 3.5 compatibility issue where uploaded files were not being saved. * New top-level menu on administration page * JetPack form submissions are now separated based on the JetPack form ID. The form name will be listed as 'JetPack Contact Form ' followed by the form's numeric ID. = 2.4.3 = * Added Japanese language support (Shift-JIS) = 2.4.2 = * Fixed character encoding issues with Excel IQY = 2.4.1 = * Added new short code attribute "role" to limit short code output only to those with sufficient role. * Added new short code attribute "permissionmsg" to allow turning off the "You do not have sufficient permissions to access this data" message = 2.4 = * Now captures data from JetPack Contact Form * Added filter hook <a href="http://cfdbplugin.com/?page_id=747">cfdb_form_data</a> that can be used to change data before it gets submitted * Added "random" option to short code. Used to retrieve random subset of rows from the query. Usage example: [cfdb-table form="myform" random="1"]. The number is the number of random rows to return. * Added button to remove _wpcf7 columns in admin page = 2.3.2 = * Bug fix that occasionally prevents pagination in the admin view of data * Bug fix where external integrations posting to CFDB might fail if list of upload files was null instead of empty array = 2.3.1 = * Bug fix where $_GET and $_COOKIE would not work = 2.3 = * Variable substitution in filter now works when embedded in text, e.g. filter="fname~~/.*$_POST(fname).*/i&&lname~~/.*$_POST(lname).*/i" * Filters: Handling where one has two ampersands in a filter expression to indicate logical AND but the WordPress editor converts them to html-coded version of ampersand. * Excel IQuery export now takes standard shortcode options * New "header=false" in table type short codes and IQuery will avoid showing the header. = 2.2.7 = * Bug Fix: Fix to match change to Contact Form 7 version 3.1 where uploaded files were not being saved to the database. = 2.2.6 = * Bug Fix: seeing error "undefined function is_plugin_active()" = 2.2.5 = * Bug Fix: Admin page data table was not showing top search banner when datatable using i18n * Displays Jalali dates when wp-jalali plugin is installed and activated = 2.2.4 = * Improvement: cfdb-html now supports nested short codes * Bug Fix: short code builder for cfdb-html not showing template HTML tags * Improvement: if "form" missing from a short code, PHP error no longer happens = 2.2.3 = * Can do exports via the Short Code Builder Page with the main short code options applied (show, hide, search, filter, limit, orderby) = 2.2.2 = * Bug fix: for some users the fix in 2.2.1 for setting character encoding when retrieving was throwing exception because no $wpdb->set_charset() method exists. Made code handle this case = 2.2.1 = * Bug fix: relating to character encoding: umlaut characters not displaying correctly * Bug fix: "class" attribution on table tag was not being emitted for [cfdb-datatables] * Fixed some strings that were not being internationalized. * More links to documentation on Database Short Code page = 2.2 = * Short code "filter" values using submit_time can now use 'strtotime' values. E.g. "submit_time>last week" * Dropped index `form_name_field_name_idx` but this fails on some MySQL versions and needs to be done manually (<a href="http://bugs.mysql.com/bug.php?id=37910">MySQL Bug 37910</a>). = 2.1.1 = * Upgrade of DataTables to version 1.8.2 from 1.7.6 = 2.1 = * New short code: [cfdb-save-form-post] * [cfdb-html] new option: "stripbr" * Raw submit_time is available for short codes as a field name * Removed unnecessary quotes in Short Code builder page for "enc" value in URL generated by [cfdb-export-link] * On uninstall, table in DB is no longer dropped by default * When accessing a file link, it will it can now display in the browser instead of forcing a download. Mime-type issues resolves. = 2.0.1 = * Bug fix: where [cfdb-count] always gave total, ignoring filters * Added 'percent' function to [cfdb-count] = 2.0 = * Data editing support in conjunction with Contact Form to Database Edit plugin * Name of table that stores data was down-cased from wp_CF7DBPlugin_SUBMITS to wp_cf7dbplugin_submits to avoid issues described in http://wordpress.org/support/topic/cf7-and-cfdb-not-saving-submissions = 1.8.8 = * Bug fix: when using "filter" operators < and > where not working in cases where they were represented &gt; and &lt; HTML codes * Bug fix: "orderby" in shortcode was ignoring if ordered by "Submitted" or "submit_time" * Filter operations now try to do numeric comparisons when possible * Can now use "submit_time" field in "filter" to filter on the timestamp float. * [cfdb-html] now preserves line breaks in fields by converting new lines to BR tags. * CFDBFormIterator now includes a 'submit_time' field showing the raw timestamp = 1.8.7 = * [cfdb-html] now has wpautop option * Form input is now always run through stripslashes() regardless of whether or not get_magic_quotes_gpc is on. This is to be consistent with wp_magic_quotes always being called = 1.8.6 = * New shortcode: [cfdb-export-link] * Bug fix in JSON output = 1.8.5 = * Added Shortcode builder page * [cf7db-count] shortcode now supports counting all forms using form="*" or a list of forms using form="form1,form2,form3" * [cf7db-html] now has "filelinks" option useful for displaying image uploads. * Added options to turn on/off capturing form submissions from CF7 and FSCF = 1.8.4 = * Added "cfdb_submit" hook. See http://cfdbplugin.com/?page_id=377 * Added delimiter option for [cfdb-value] shortcode, e.g. [cfdb-value delimiter=','] * Bug fix related to [cfdb-value] when not used as a shortcode (it was not observing show & hide options) * Now including DataTables distribution inside this distribution so that page does not reference scripts from another site (so sites using https have everything encrypted on the page) * In [cfdb-html] shortcode, now removing undesired leading "br" tag and ending "p" tag that WordPress injects. This was messing up table rows (tr tags) in the shortcode because WP was injecting line breaks between the rows. = 1.8.3 = * Minor bug fixes. = 1.8.2 = * Minor bug fixes. * Added option to not delete data on uninstall = 1.8.1 = * Fixed bug introduced in 1.8 where deleting individual rows from the admin page did nothing. = 1.8 = * New shortcodes [cfdb-html] and [cfdb-count] * New Shortcode option: 'limit' * New Shortcode option: 'orderby' * Performance/memory enhancements to enable plugin to handle large data volumes * Now capturing form submission times with microseconds to avoid collision of two submissions during the same second * Fixed to work with installations where wp-content is not at the standard location * Shortcode "show" and "hide" values can now use regular expressions to identify columns * Option to show database query text on Admin page = 1.7 = * Creating an export from the admin panel now filters rows based on text in the DataTable "Search" field. * [cfdb-json] now has "format" option. * Fixed bug where "Submitted" column would sometimes appear twice in shortcodes * Now can filter on "Submitted" column. * Admin Database page is now blank by default and you have to select a form to display. = 1.6.5 = * Now fully supports internationalization (i18n) but we need people to contribute more translation files. * DataTables (including those created by shortcodes) will automatically i18n based on translations available from DataTables.net * Italian translation courtesy of Gianni Diurno * Turkish translation courtesy of Oya Simpson * Admin page DataTable: removed horizontal scrolling because headers do not scroll with columns properly * Updated license to GPL3 from GPL2 = 1.6.4 = * Bug fix: Fixed bug causing FireFox to not display DataTables correctly. = 1.6.3 = * Bug fix: Handling problem where user is unable to export from Admin page because jQuery fails to be loaded. = 1.6.2 = * Bug fix: avoiding inclusion of DataTables CSS in global admin because of style conflicts & efficiency = 1.6.1 = * Bug fix in CSV Exports where Submitted time format had a comma in it, the comma was being interpreted as a field delimiter. * Accounting for local timezone offset in display of dates = 1.6 = * Admin page for viewing data is not sortable and filterable * New shortcode: [cfdb-datatable] to putting sortable & filterable tables on posts and pages. This incorporates http://www.datatables.net * Option for display of localized date-time format for Submitted field based on WP site configuration in "Database Options" -> "Use Custom Date-Time Display Format" * Option to save Cookie data along with the form data. "Field names" of cookies will be "Cookie <cookie-name>" See "Database Options" -> "Save Cookie Data with Form Submissions" and "Save only cookies in DB named" = 1.5 = * Now works with Fast Secure Contact Form (FSCF) * New shortcode `[cfdb-value]` * New shortcode `[cfdb-json]` * Renamed shortcode `[cf7db-table]` to `[cfdb-table]` (dropped the "7") but old one still works. * Added option to set roles that can see data when using `[cfdb-table]` shortcode * Can now specify per-column CSS for `[cfdb-table]` shortcode table (see FAQ) * Fixed bug with `[cfdb-table]` shortcode where the table aways appeared at the top of a post instead of embedded with the rest of the post text. = 1.4.5 = * Added a PHP version check. This Plugin Requires PHP5 or later. Often default configurations are PHP4. Now a more informative error is given when the user tries to activate the plugin with PHP4. = 1.4.4 = * If user is logged in when submitting a form, 'Submitted Login' is captured * `[cfdb-table]` shortcode options for filtering rows including using user variables (see FAQ) * `[cfdb-table]` shortcode options for CSS * Can exclude forms from being saved to DB by name = 1.4.2 = * Added `[cf7db-table]` shortcode to incorporate form data on regular posts and pages. Use `[cf7db-table form="your-form"]` with optional "show" and "hide: [cf7db-table form="your-form" show="field1,field2,field3"] (optionally show selected fields), [cf7db-table form="your-form" hide="field1,field2,field3"] (optionally hide selected fields) = 1.4 = * Added export to Google spreadsheet * Now saves files uploaded via a CF7 form. When defining a file upload in CF7, be sure to set a file size limit. Example: [file upload limit:10mb] * Made date-time format configurable. * Can specify field names to be excluded from being saved to the DB. * In Database page, the order of columns in the table follows the order of fields from the last form submitted. = 1.3 = * Added export to Excel Internet Query * "Submitted" now shows time with timezone instead of just the date. * The height of cells in the data display are limited to avoid really tall rows. Overflow cells will get a scroll bar. * Protection against HTML-injection * Option to show line breaks in multi-line form submissions * Added POT file for i18n = 1.2.1 = * Option for UTF-8 or UTF-16LE export. UTF-16LE works better for MS Excel for some people but does it not preserve line breaks inside a form entry. = 1.2 = * Admin menu now appears under CF7's "Contact" top level menu * Includes an Options page to configure who can see and delete submitted data in the database * Saves data in DB table as UTF-8 to support non-latin character encodings. * CSV Export now in a more Excel-friendly encoding so it can properly display characters from different languages = 1.1 = * Added Export to CSV file * Now can delete a row = 1.0 = * Initial Revision. == Upgrade Notice == = 1.6 = New cool DataTable = 1.5 = Now works with <a href="http://wordpress.org/extend/plugins/si-contact-form/">Fast Secure Contact Form</a>. Plus more and better shortcodes.