This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Joomla & Machform Integration


  1. markweb
    Member

    Hi,

    I've scoured the forums, tried a lot of different things, but still haven't successfully got Machform working with Joomla 1.5, I'm not a coder whizz, but know enough to edit files.

    I'm using DirectPHP http://extensions.joomla.org/extensions/edition/custom-code-in-content/4470

    And the embedded code generated.

    <?php
    require("myfolderto/machform.php");
    $mf_param['form_id'] = 3;
    $mf_param['base_path'] = 'mymachformurl';
    display_machform($mf_param);
    ?>

    And also tried using:

    <?php
    require("myfolderto/machform.php");
    $mf_param['form_id'] = 3;
    $mf_param['base_path'] = 'mymachformurl';
    display_machform($mf_param);
    mysql_select_db("databasename");
    ?>

    Now the form pulls fine.
    http://www.g2gcommunities.org/jobs

    Though there are a few issues:

    1/ If you submit the form and forget a required field, the email address field populates with:

    < script language='JavaScript' type='text/javascript'> <!-- var prefix = 'mailto:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy68850 = 'myname' + '@'; addy68850 = addy68850 + 'domain' + '.' + 'co' + '.' + 'uk'; document.write( '' ); document.write( addy68850 ); document.write( '<\/a>' ); //--> </ script ><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </ script >

    2. If you don't have 'Show Review Page Before Submitting' Ticked it pulls this error:

    select element_8 from ap_form_3_review where id='5' Query failed: Table 'databasename.ap_form_3_review' doesn't exist

    3. If review is enabled, review page pulls successfully, but on final submit pulls error "404 - Article #3 not found" (this could be a Joomla error of course).

    Hope you can help, I love MachForm and it would be great to intergrate into my website.

    Edit: Hit a key and it submitted prematurely :S

  2. markweb
    Member

    Ok i've opted for using the iframe and wrapper as it's a much simpler solution.. and it works! Huzzah!

    So you can ignore me now ;)

    Posted 14 years ago #

RSS feed for this topic

Reply