John Huebner
Forum Replies Created
-
Forum: Plugins
In reply to: [Hidden Field for Contact Form 7] Setting up filter questionI’m really not sure after reading this what it is you’re attempting to do.
But going back to your first post and looking at the first field
[group mail-to-A] [dynamichidden2 mail-to-A "mail_to_select_A"] [/group]the hook you added was this
add_filter('mail-to-A', 'mail_to_select_A', 10, 2);The hook is
mail-to-A,mail_to_select_Ais the name of the function. You field should include the hook name, not the function name.[dynamichidden2 mail-to-A "mail-to-A"]Forum: Plugins
In reply to: [Dynamic Select for Contact Form 7] First item / placeholder?If the value for this option is set up correctly and the field is required and submitted without a value then there will be an error telling the person that the field is required. I’m not sure what else you’re looking for here.
Forum: Plugins
In reply to: [Dynamic Select for Contact Form 7] First item / placeholder?then create it as a required field
[dynamicselect* my-field-name]Forum: Plugins
In reply to: [Dynamic Select for Contact Form 7] First item / placeholder?This is shown in my example filter
$choices = array( '-- Make a Selection --' => '', 'Choice 1' => 'Choice 1', 'Choice 2' => 'Choice 2', 'Choice 3' => 'Choice 3', 'Choice 4' => 'Choice 4', 'Choice 5' => 'Choice 5' );the first items has not value and is the placeholder
Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] Dynamic RecipientYou would need to put either the users email address for the ID into a hidden field, and then specify this field as the value of the
dynamic-mail-to-fieldshidden field. Then you can use the value of that other field to alter the recipient.Forum: Plugins
In reply to: [Dynamic Recipient for Contact Form 7] Issue Setting Dynamic RecipientYour hidden field with the name of the select fields should look like this
[simplehidden dynamic-mail-to-fields "name-of-first-select-field,name-of-second-select-field"]Forum: Plugins
In reply to: [Account Engagement] Pass query string vars to pardotWell, I figured it out, yes it does work.
Forum: Plugins
In reply to: [Account Engagement] Pass query string vars to pardotAnd it’s a bit confusing
how does the hook
pardot_form_embed_code_54796relate to changing form #545
Forum: Plugins
In reply to: [Account Engagement] Pass query string vars to pardotOther than the SRC value for the form, is there anything that I can use to determine which of many forms in being shown?
Thank you for posting this and for the praise. I have seen the questions, but I just have not had the time to create an in depth explanation of how to use this plugin. I admit that the documentation only gives a very high level overview. Hopefully your explanation helps others as well.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 (Version 4.8) – Sending does not workThe main problem with disabling JS loading for CF7 is that it will cause you issues if you want to use CF7 in a modal window since the page must refresh to submit the form.
The reason why the hidden file upload field works is that this also disables submission through the REST API and AJAX. Image fields cannot be submitted through AJAX in the way that CF7 does its submit. This is basically the same thing as disabling JS, but without needing to alter the CF7 plugin to do it.
rather than either of the above, add this to your functions.php file
add_filter('wpcf7_load_js', '__return_false', 20);As long as you’re happy not having the JS submission.
- This reply was modified 8 years, 8 months ago by John Huebner.
- This reply was modified 8 years, 8 months ago by John Huebner.
Forum: Plugins
In reply to: [Dynamic Select for Contact Form 7] How to make a SQL queryforeach ($countries as $country) { $choices[$country->country] = $country->id; }to answer my own question and hopefully so that others will find this information easier to find than I did.
add_filter('admin_head', 'edtior_access_to_wpseo_manage_options'); function edtior_access_to_wpseo_manage_options() { if (get_option('jh_editor_access_to_wpseo') != 'done') { $role_object = get_role('editor'); $role_object->add_cap('wpseo_manage_options'); $role_object->add_cap('wpseo_edit_advanced_metadata'); update_option('jh_editor_access_to_wpseo', 'done'); } }Forum: Plugins
In reply to: [Dynamic Select for Contact Form 7] Instructions are too advancedcreating 2 drop downs where the selections in the second field are dependent on what is selected in the first field is beyond the scope of this plugin. This cannot be done without building ajax requests into the plugin which is not something that I have any plans to do.
I can’t say if this information will help you or not. But the code script that cause this is the Google Tag Manager code that goes in the <head> of the page that is supplied by them and it looks something like this
<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-XXXXXX');</script> <!-- End Google Tag Manager -->my only conclusion is that this is somehow interfering with FB’s parser since it does not effect any of the other social sharing sites. Why it effects an SSL site when it does not effect a non-SSL site is a complete mystery.