zaus
Forum Replies Created
-
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] UI bugStrange — is it related at all to https://wordpress.org/support/topic/firefox-issue-16?replies=12
What browser? Can you open the developer console (usually F12), reload the page, and tell me if you have any javascript warnings/errors?
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] 500-Internal Server ErrorPost your debug email so I can see what you’re doing. Redact sensitive info (like credentials, etc).
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] gravity forms postYes, that’s pretty much exactly how this plugin is designed. Just map the appropriate WordPress contact form field to
EmailAddress, etc.Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Unable to open a external urlSays it right there in the response:
incorrect verification codeLooking at the form you’re trying to post to, seems like the ‘verification code’ box is a captcha that changes every time, so you can’t just send a “stale” value across. You’d have to check with them how to have it accept a “3rdparty” submission.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Fatal ErrorForum: Plugins
In reply to: [Forms: 3rd-Party Integration] Fatal ErrorWhat versions of the plugins are you using? I may have noticed that an upcoming cf7 update was going to change some things, and maybe this is it…
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Email and redirection after FAILED submissionSo it’s supposed to update the CF7 form in this case, specifically by “setting a bad message”, but that’s just to add text to the CF7 results. You can use the same hook, with a later priority, to further affect the CF7
$formobject and prevent it from sending.I’m not entirely sure how to do that; you used to be able to modify a property of the
$formthat would prevent it from mailing, but CF7 has changed since I last looked so I’m not sure which hook/property/method to use. I think in your...remote_failurehook you could add another hook towpcf7_skip_mailthat just returns false.Okay, anyone willing to try the fix I just made to the GitHub version and let me know if it breaks anything?
re: https://github.com/zaus/forms-3rdparty-integration/issues/42#issuecomment-111305501
@bganush – no that hook would go in a separate file, like
functions.phpor a standalone plugin. don’t change plugin files.i think i’ll eventually build that in to my plugin, but for now it’s a ‘standalone’ solution.
I’m marking resolved as someone indicated on the GitHub issue that it worked.
Please let me correct my earlier post with a lengthier explanation from GitHub — https://github.com/zaus/forms-3rdparty-integration/issues/42
TL;DR: something like
add_filter(‘Forms3rdPartyIntegration_get_submission’, ‘fix_3rdparty_slashes’, 20, 2);
function fix_3rdparty_slashes($post, $form) {
return stripslashes_deep($post);
}Quickly off the top of my head – hook to
...service_post_filterwith a low priority and callstripslashes_deepon the post array.Glad you figured it out. Marking resolved.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Gravity Form checkboxes mappingHm…might be able to add regex handling to the mapping, although for non-GF users it’d be “unnecessary” processing, which I try to avoid baking in to the plugin. Or I could alter how submissions are acquired from GF, although I try to avoid making potentially breaking changes for existing users.
Maybe a late hook on
get_submissionto manipulate the submission before my plugin does the mapping. Or could make a plugin hooking onfilter_postthat would duplicate the mapping section with the regex processing.As an aside, I originally wrote this plugin for Contact Form 7, which has much less problems with mappings (and particularly your problem) because you have control over how the input
nameis generated.Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Content Length 0 When PostingThe reason is that you’ve run out of internet powder.
As I tell everyone, gotta post a debug dump for me to help you 🙂
Are you using the wrong hook?
_service_a0occurs after the service request was sent, so your CRM will never get this. Did you mean to use #3 or #4,...service_filter_post...?