Forums

Problems with formbuilder and qTranslate (5 posts)

  1. maorb
    Member
    Posted 2 years ago #

    Hi,

    I've just added Hebrew and Arabic support to a site in English, using the qTranslate plugin.
    I use form builder and created 2 new forms, each for every language and I put for each language the form id.
    The problem is that when submitting the form from its Hebrew or Arabic pages, it jumps to the English form and not being submitted.
    I tried
    I gave the form fields in the 3 forms different input names but didn't help.

    The form in English:
    http://saadi.technocraft.co.il/contact-us
    The form in Hebrew
    http://saadi.technocraft.co.il/IW/contact-us
    The form in Arabic
    http://saadi.technocraft.co.il/ar/contact-us

    Anyone has encountered similar problems and have an idea how to fix this?

    Thanks,
    Maor

    http://wordpress.org/extend/plugins/qtranslate/

  2. maorb
    Member
    Posted 2 years ago #

    Any ideas for this?

    Thanks

  3. maorb
    Member
    Posted 2 years ago #

    Someone...?

  4. dorupost
    Member
    Posted 2 years ago #

    Hi,

    I have success using formbuilder with qtranslate.

    I just modified a line code in formbuilder.php on line 568:

    This one:
    $form['action_target'] = $_SERVER['REQUEST_URI']. "#$formCSSID";

    To this:
    $form['action_target'] = $GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI'] . "#$formCSSID";

    You can read about this issue here: http://ckon.wordpress.com/2006/08/09/server-request_uri-doesnt-always-work-correctly-heres-how-to-fix/

    I think this could help other plug-ins and forms with submission witch use $_SERVER['REQUEST_URI'] in conjunction with qtranslate.

    Good luck!

  5. TruthMedia
    Member
    Posted 1 year ago #

    Hey, that's a good suggestion. I'll see if I can get that incorporated into future versions.

Topic Closed

This topic has been closed to new replies.

About this Topic