Michael Simpson
Forum Replies Created
-
Does the CSV export work? Does it contain all the data?
Forum: Plugins
In reply to: [Contact Form DB] CRM Integration APIIn Manipulating Form Data Before it is Saved you can add PHP code to do something whenever a submission is received.
Forum: Plugins
In reply to: [Contact Form DB] PaginationNot exactly. All the shortcode data loads on the page and you can set the datatable to paginate through them using dt_options but there isn’t an option to paginate by loading a set of data at a time into the page from the server.
Forum: Plugins
In reply to: [Contact Form DB] SQL Query HelpI don’t see any URL in your example, only SQL. But instead of doing complex SQL, let the plugin do it for you. Then if you want to expose that via a URL, then I suggest to create an WordPress AJAX URL that wraps it. See: https://codex.wordpress.org/AJAX_in_Plugins
Basically:
You need code to register the URL and a function to handle the request:
add_action( ‘wp_ajax_my_action’, ‘my_action_callback’ ); // Must be logged in
or
add_action( ‘wp_ajax_nopriv_my_action’, ‘my_action_callback’ ); // Open to everyoneIn your my_action_callback function you can code any additional security checks before continuing. Then process any $_REQUEST parameters you choose to to pass to the Accessing Form Data via PHP or it might be easier to create a shortcode string from the user input and call do_shortcode and let that just echo the output back to the calling browser.
Put all that code in your theme’s functions.php file or use my Add Shortcodes Actions and Filters plugin to give you a place to put it.
Forum: Plugins
In reply to: [Contact Form DB] where attach file are save in cf7dbCF7 deletes uploaded files right after it emails you the submission information with those files attached to the email. CFDB grabs a copy just before it is deleted and put a copy in the DB.
Forum: Plugins
In reply to: [Contact Form DB] SQL Query HelpI recommend against writing SQL. I suggest to follow Accessing Form Data via PHP to retrieve the data you want, and expose that via the API that you create.
Forum: Plugins
In reply to: [Contact Form DB] CRM Integration APIAre you trying to push each submission to an API when a form is submitted, or are you trying to export/import data?
Forum: Plugins
In reply to: [Contact Form DB] DropDown DataI don’t know the full context of your question but this might be what you are looking for:
http://cfdbplugin.com/?page_id=1435Forum: Plugins
In reply to: [Contact Form DB] Parse error when I try to access plugin optionsYou are running outdated PHP 5.2 on your site. Upgrade WP recommended version 5.6.
Forum: Plugins
In reply to: [Contact Form DB] problem with jalali dateThank you very much.
I’ll additionally consolidate the “if” statements and add that change to my next update.
// See if wp-jalali is active and if so, have it convert the date // using its 'jdate' function else if (is_plugin_active('wp-jalali/wp-jalali.php') && function_exists('jdate')) { if (CF7DBPlugin::$customDateFormat) { return jdate(CF7DBPlugin::$customDateFormat, $time); } else { return jdate(CF7DBPlugin::$dateFormat . ' ' . CF7DBPlugin::$timeFormat, $time); } }- This reply was modified 9 years, 7 months ago by Michael Simpson.
Forum: Plugins
In reply to: [Contact Form DB] problem with jalali dateDid you test the code to see if it works?
Forum: Plugins
In reply to: [Contact Form DB] pictures with only a link to itForum: Plugins
In reply to: [Contact Form DB] Broken Export Google Live SpreadsheetPerhaps the Google SS is temporarily unable to connect to your site, or the connection is timing out. I would wait a while and try again.
Forum: Plugins
In reply to: [Contact Form DB] Where are uploaded images storedThey are stored in the DB, not on the file system.
How do you duplicate forms? That functionality is part of CFDB.