Michael Simpson
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] CFDB JSON to Salesforce custom objectThanks.
Forum: Plugins
In reply to: [Contact Form DB] How to call submit_timeSee: http://cfdbplugin.com/?page_id=747
Something like this:
require_once(ABSPATH . 'wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php'); function insert_submit_time_into_other_db($formData) { if (!isset($posted_data['submit_time'])) { $plugin = new CF7DBPlugin(); $posted_data['submit_time'] = $plugin->generateSubmitTime(); } // TODO: Save $posted_data['submit_time'] into your other DB return $formData; // be sure to return it } add_filter('cfdb_form_data', 'insert_submit_time_into_other_db');Forum: Plugins
In reply to: [Contact Form DB] Date field lookYou can change data by purchasing the CFDB Editor or directly in PHPMyAdmin
Forum: Plugins
In reply to: [Contact Form DB] Export (xlsx) doesn’t openTry temporarily deactivating other plugins then try an export to see if one of them is causing an issue.
Look at turning off debug if it is on. https://codex.wordpress.org/WP_DEBUG
Forum: Plugins
In reply to: [Contact Form DB] Filter table results by current page URLIn the CFDB Options for CF7, there is an option to capture the form page URL that you can turn on. You can use that in a filter.
Forum: Plugins
In reply to: [Contact Form DB] PHP error thrown in plugin OptionsYour site is running outdated PHP 5.2. WordPress recommended version is 5.6.
Forum: Plugins
In reply to: [Contact Form DB] How to call submit_timeAre you trying to do this when a submission comes in or afterward?
Forum: Plugins
In reply to: [Contact Form DB] How to import data into another websiteThere is an option in the CFDB Options page to display the query on the admin page where you view the data. It will show the pivot query it uses on that page.
Forum: Plugins
In reply to: [Contact Form DB] Plugin doesn’t save valueForum: Plugins
In reply to: [Contact Form DB] New DatabaseIt sounds like all the 100 entries have the same submit_time and so only one appears.
Forum: Plugins
In reply to: [Contact Form DB] Date field lookThe plugin is storing the date string in the format that the browser sends (which could be different than it displays it). The plugin just displays what it has verbatim.
You can try to (1) convert it when it goes into the DB or (2) try to convert it when you display it in a shortcode or export.
(1) You will need to hook in the following PHP code to do the conversion. See: http://cfdbplugin.com/?page_id=747
function convert_date_filter($formData) { $formName = 'dateform'; // change this to your form's name if ($formData && $formName == $formData->title) { // change 'field' to the name of the field holding your date $formData->posted_data['field'] = date('d/m/y', strtotime($formData->posted_data['field'])); } return $formData; } add_filter('cfdb_form_data', 'convert_date_filter');(2) In a shortcode or export, assuming your date field was called “field”, you can use a transform like this:
trans="field=strtotime(field)&&field=date(d/m/y,field)"- This reply was modified 9 years, 7 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] Auto-Export to Email at the end of the monthI’m not familiar with that plugin.
Forum: Plugins
In reply to: [Contact Form DB] Auto-Export to Email at the end of the monthNo. But you can create an export link in the plugin and use that in something else to automate calling it.
Forum: Plugins
In reply to: [Contact Form DB] New DatabaseEach entry must have a different submit_time value. CF7DBPlugin::generateSubmitTime() will generate unique submit times. This is handled for you by the CFDB Editor import.
Forum: Plugins
In reply to: [Contact Form DB] Data Editor extensionThe plugin doesn’t save it. You can either save the URL yourself on a page
or put the equivalent [cfdb-export-link] shortcode on a page. You can also make that page private.