Michael Simpson
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] Addon,fuction,filter questionsIt is hard to read when you don’t format it as “code” like I asked, and I can’t copy your code b/c the quotes are messed up by the not-code formatting.
If your field is a CF7 email field, then you need these lines:
add_filter('wpcf7_validate_email*', 'my_validate_email', 10, 2); add_filter('wpcf7_validate_email', 'my_validate_email', 10, 2);Not these lines:
add_filter('wpcf7_validate_text*', 'my_validate_email', 10, 2); add_filter('wpcf7_validate_text', 'my_validate_email', 10, 2);Forum: Plugins
In reply to: [Form to Post] Form FieldsOptions:
(1) The code should only run for a specific form if you set it up like the example
if ($form_data->title = $form_title) ...
So you could set up different filter functions for different forms(2) Or you can use the same filter function for multiple forms, but add “if” statements based on what fields are submitted. For example:
$content = ''; if (isset($form_data->posted_data['select-family']) { $content .= $form_data->posted_data[‘select-family’] . ' '; } if (isset($form_data->posted_data['translator']) { $content .= $form_data->posted_data[‘translator’] . ' '; } if (isset($form_data->posted_data['select-language']) { $content .= "the language is {$form_data->posted_data[‘select-language’]}"; } $form_data->posted_data['post_content'] = $content; $form_data->posted_data['post_content'] = "This is a post from {$form_data->posted_data['your-name']} with email {$form_data->posted_data['your-email']}";- This reply was modified 9 years, 5 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] Translating column titlesThe shortcodes output the text that was input in the form. It doesn’t translate the text. I’m not sure if that is what you mean.
I don’t see any issues on my sites using WP 4.7.
You can get an error on that page if you are running PHP 5.2. WP recommending version is PHP 5.6. But usually that is a different error. What version are you running?
Forum: Plugins
In reply to: [Contact Form DB] editcolumns not doing anythingI see this is marked resolved. LMK if it is not.
Forum: Plugins
In reply to: [Contact Form DB] Support for WordPress 4.7 in the making?I can guarantee 100% for any WP version but I have tested 4.7 and I have not seen any issues.
The “errors” reported are not errors but deprecated code that is there for backward compatibility. These code lines are not run when using PHP7. See: http://cfdbplugin.com/?p=1544
Forum: Plugins
In reply to: [Contact Form DB] Addon,fuction,filter questionsPost your code. Format it with the “code” button.
Forum: Plugins
In reply to: [Contact Form DB] Is their a way to import Excel file into Contact Form 7 DBYou would have to save the Excel file as CSV then import the CSV file. Be sure there is a header row on the first line. It should include all the columns if you have headers for them.
With the purchase you can create specific private pages for certain users to see certain forms. But it isn’t like you want where a user goes to the admin page and only sees certain forms. I doesn’t nicely support this example.
You can certainly replace the hardcode ‘Mike’ with a PHP variable. In the array, you can add any (or none) of the shortcode attributes such as show, hide, filter, search, trans, limit, orderby.
How you set that variable is up to you. If you are processing a form post that has a field named “search” then replace ‘Mike’ with $_REQUEST[‘search’] for example.
Forum: Plugins
In reply to: [Contact Form DB] change the fields that are reported as codesThese names come from your form. Change the field names on your form definition.
Forum: Plugins
In reply to: [Contact Form DB] Adding Specific Users to access specific Databases?No, the plugin does not support limiting access to certain forms to specific users.
Forum: Plugins
In reply to: [Contact Form DB] Import/Export Data as CSVinclude('wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php'); $plugin = new CF7DBPlugin(); $plugin->showShortImportCsvPage();Forum: Plugins
In reply to: [Contact Form DB] accidentally deleted all contact formsUnfortunately no.
Forum: Plugins
In reply to: [Contact Form DB] export excel xlsx not working in php7.0I’ll put out an update this week with the latest Spout.