I have the Formidable plugin. I want to display the number of unique users that have filled my form, and this option is not included in the plugin.
Here is a php code that might help me :
global $wpdb, $frmdb; $users = $wpdb->get_var("SELECT COUNT(DISTINCT user_id) FROM $frmdb->entries WHERE form_id=5");
I was told to do a shortcode with that code, however, even with the codex (http://codex.wordpress.org/Function_Reference/add_shortcode) it's really difficulte for me to understand what I have to do :/.
I would like to be able to put [observateur] in a text-widget and I would like [observateur] to give the number of distinct user_id that have filled my form.
Do you know how to help me ?
Thank you in advance for any help you will offer me.