Michael Simpson
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] Prevent submission if email *does not* exist?I think you would just change this:
if (is_already_submitted($formName, $fieldName, $_POST[$name])) {
to this:
if (! is_already_submitted($formName, $fieldName, $_POST[$name])) {Forum: Plugins
In reply to: [Contact Form DB] Add unique ID to the insert queryCFDB does not do the email. You would have to figure out how to add it via your form plugin instead so that it emails it (then CFDB should also save it without the above code).
Forum: Plugins
In reply to: [Contact Form DB] Contact Form db[cfdb-table] gives a plain, unstyled HTML table. You can add your own CSS to set the style of your table. Some styles you are seeing (like the font size) are probably inherited from your theme.
Forum: Plugins
In reply to: [Contact Form DB] Add unique ID to the insert queryThis should do it:
function add_unique_id($formData) { $formData->posted_data['uniqueid'] = uniqid(); return $formData; } add_filter('cfdb_form_data', 'add_unique_id');- This reply was modified 9 years, 5 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] Contact Form dbI’m having difficulty understanding the English here. I will answer to the best of my understanding.
1. No, the plugin will not update an existing entry. It will always create a new entry.
2. There is a way to make a shortcode filter on the user. See http://cfdbplugin.com/?page_id=116
3. There is an editing capability that you can purchase https://cfdbplugin.com/?page_id=459
4. I don’t know about the mobile phone issue. Is this output form [cfdb-table] or [cfdb-datatable]?
Forum: Plugins
In reply to: [Contact Form DB] Preload CF7-form with data from CFDBAlthough it loads all data in the table, datatables can display only some at a time and let you paginate by setting the iDisplayLength
[cfdb-datatable form="your-form" dt_options="iDisplayLength:10"]https://cfdbplugin.com/?page_id=91#dt_options
- This reply was modified 9 years, 5 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] Save data depending of checkboxes in different databasesBased on Manipulating Form Data Before it is Saved,
Assuming the values submitted in your checkboxes are the form names, I think this would work:
require_once(ABSPATH . 'wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php'); function save_to_multiple_forms($formData) { $formName = 'your-form'; // change this to your form's name $fieldName = 'form-names-field'; // change this to your form's name if ($formData && $formName == $formData->title) { if (isset($formData->posted_data[$fieldName]) && is_array($formData->posted_data[$fieldName])) { $plugin = new CF7DBPlugin(); $num_selections = count($formData->posted_data[$fieldName]); for ($idx = 0; $idx < $num_selections; ++$idx) { $formData->title = $formData->posted_data[$fieldName]; if ($idx < ($num_selections - 1)) { $plugin->saveFormData($formData); } } } } return $formData; } add_filter('cfdb_form_data', 'save_to_multiple_forms');Forum: Plugins
In reply to: [Contact Form DB] Security settings bugIf you have “Allow only Administrators to see CFDB administration screens” set, that prevents that menau/page from showing.
Forum: Plugins
In reply to: [Contact Form DB] Is there a Contact Form 7 DB Editor Refund Policy?Send support request to info@cfdbplugin.com
Forum: Plugins
In reply to: [Contact Form DB] wordpress 4.7I have tested with 4.7 and have not found any problems.
Forum: Plugins
In reply to: [Form to Post] Form FieldsI would need a complete example including form definition and hook code to reproduce the problem.
Forum: Plugins
In reply to: [Contact Form DB] Filter by date(Y-m-d)Forum: Plugins
In reply to: [Contact Form DB] Error importing dataThis appears to be a system configuration issue, not a plugin issue.
Your PHP process cannot write to the Windows temporary directory. That where uploaded files go while PHP is processing them (and not just by this plugin). So there is something wrong in your configuration on Windows that doesn’t allow the process (or logged in user) to write there. Or the PHP configuration on that computer that tells PHP which is the temporary directory is wrong. It seems very strange that there are spaces in the file file in your error message. Maybe that is the issue.
Forum: Plugins
In reply to: [Contact Form DB] Preload CF7-form with data from CFDBThis article shows you how to populated drop-downs from CFDB data:
http://cfdbplugin.com/?page_id=1435This article shows how to create a search form that passes the search value to a shortcode
http://cfdbplugin.com/?page_id=680Forum: Plugins
In reply to: [Contact Form DB] Not getting entries properlyEvidently WPFORMS would need custom code to process its form submissions.