• This is a great plugin on its own but need three more features added. I am familiar with HTML, PHP and SQL and was wondering if you could point me in the right direction as to adding the below three features.

    I included a mockup on what I am trying to get at here:
    http://keytax.info/images/joined_2.jpg

    1) Make the service action occur conditionally. This would be similar to how conditional confirmation and conditional fields work. Each 3rd party service would have the option of using conditional logic. If the rules don’t match don’t post to service.

    2) Merge tags ‘Field Picker’ to populate submitted values in the Form Submission Field. Similar to the Merge Tags drop down in the confirmation page.

    3) Adjust pattern formatting for certain fields like date,timestamp and phone numbers. Specifically for separators and order.
    Certain integrations need phone and dates in a specific format.
    When having two or more integrations that require different date or number formats his would come in handy.

    Examples :
    –DASH Separator
    ‘YYYY-DD-MM’
    ‘DD-MM-YYYY’
    ‘YYYY-MM-DD’
    ‘MM-DD-YYYY’
    555-555-5555

    // slash Separator
    ‘YYYY/DD/MM’
    ‘DD/MM/YYYY’
    ‘YYYY/MM/DD’
    ‘MM/DD/YYYY’

    . Separator
    ‘YYYY.DD.MM’
    ‘DD.MM.YYYY’
    ‘YYYY.MM.DD’
    ‘MM.DD.YYYY’
    555.555.5555

    None
    5555555555

    Thanks in advance any help is appreciated.

    https://wordpress.org/plugins/forms-3rdparty-integration/

Viewing 1 replies (of 1 total)
  • Plugin Author zaus

    (@zaus)

    All great ideas; Pull requests welcome 🙂

    1. To apply the conditional logic, you’d hook like I just mentioned here. As far as the nice admin ui you mocked-up, you could hook to service_settings seen here, like my other add-on plugins (like Xpost do). Making that field selector dropdown would be more complicated, and is a really good idea and should be part of the way my plugin handles the different integrations. The form plugin integrations should attach themselves to the forms3rdparty singleton
    2. Would use the same field picker as in the above, and would solve Issue 22 and make users love you forever.
    3. Would use hook service_filter_post or service_filter_args to modify the post body based on your criteria, which would ideally be part of the $service argument.

    #2 and #3 of the admin ui would rely on currently non-existant hooks to plugin-ui.php, specifically around line 208. There are a couple hooks for that admin page (aforementioned service_settings, service_metabox, service_metabox_after), but they’re not really in the right places for some of the features you wanted.

    I’d be happy to work with you on this, either adding some hooks so you can write a new plugin (#1 is a great candidate) or working to add the features directly (#2 definitely). Just send me a message through my website or make a github issue.

    I would point out that I’m hesitant to include more data to the service configs within the plugin (as opposed to writing an add-on to do this) like #1 and #3, as it’s not something I think is usually needed, and might cause conflicts for some users. (At the moment) everything is saved to the wp_options table as a single setting, so there is a limit to how much data can be stored (i.e. too many fields/services make it blow up) (Aside: this plugin started out smaller in scope).

Viewing 1 replies (of 1 total)

The topic ‘Customization Advice’ is closed to new replies.