ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using Freeform to post to different database

January 08, 2009 7:48am

Subscribe [3]
  • #1 / Jan 08, 2009 7:48am

    tristanbailey

    31 posts

    Hi Sue,

    to continue from twitter, I want to be able to use forms on my EE site but I do not want to post the data into freeform db, as it is an upgrade to an existing site, and has a cms admin interface to handle new contacts and needs analysis.

    http://www.cactuslanguagetraining.com/tailormade/ is the old site, with one form on the right
    and another
    http://www.cactuslanguagetraining.com/book_now/needs_analysis.php
    and another

    all the forms check if the user exists and update or create new user and then they add the rest of the form as a message for action in a admin crm system.

    So would rather that Freeform let me specific where the post processing was done, then all would be great in the world.

    thanks

    tristan

  • #2 / Jan 08, 2009 7:58am

    Mark Bowen

    12637 posts

    Hi Tristan,

    Not entirely sure what has transpired over Twitter but I think that Freeform possibly has some hooks available to it. I’m wondering if possibly one of those can be used to trigger a script that will take the posted data that is sent along to Freeform and then you can do whatever you want with it afterwards?

    Alternatively you should (I think) be able to create an add-on that will allow you to get the data from the Freeform tables and do with it as you like.

    Perhaps asking on the Solspace Forums might help on this one though, they are very responsive over there usually, Pie Man especially.

    Best wishes,

    Mark

  • #3 / Jan 08, 2009 8:06am

    Sue Crocker

    26054 posts

    Freeform does have hooks available to use.

    Docs:// Extras

  • #4 / Jan 08, 2009 8:18am

    tristanbailey

    31 posts

    Thanks sue and mark, had not seen them before.

    And last time I looked at it had not thought about writing a cron script every 10 mins to move the data from a to b.

    My junior wrote some form handling over christmas so will see if that all works first, and maybe release it if it works differently.

    He found some limits as he wanted to make the classes global to the system not an add on working with the template parsing, I have not looked that deeply at EE to be able to help him there.

    Will go look at the docs again.

  • #5 / Jan 08, 2009 8:28am

    tristanbailey

    31 posts

    ok Freeform all is forgiven $EXT->extensions[‘freeform_module_insert_begin’] looks a good add point to send our form data to our old database tables, I either missed this or its something new.

  • #6 / Jan 08, 2009 8:29am

    Mark Bowen

    12637 posts

    Yep that’s the one I’d go for.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases