WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Problem with url query vars (qtranslate) (7 posts)

  1. toimisto
    Member
    Posted 2 years ago #

    I've used qtranslate to load two different contact forms (one for both languages). However, when I submit the form in the secondary language page (/contact/?lang=en) the form doesnt submit and it jumps back to the primary language page (/contact/). I tried pre-path (/en/contact/) mode as well but the same problem persists.

    Naturally this is IE only. Can someone explain why contact form 7 even loads the url since its supposed to do it ajax? The primary language form works fine.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    Isn't it a problem of IE?

  3. toimisto
    Member
    Posted 2 years ago #

    Well its our clients problem and so its our problem. They get hundreds of contacts a day and its important for their business. I really love cf7 and use it with most of our sites but we still need to figure some easy way to overcome the problem with IEs and qtranslate

    Any ideas? Some easy solutions? Appreciate it!

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    See FAQ.

    My contact form behaves oddly on certain browsers.

    If you need farther advice, please write the URL of the page.

  5. toimisto
    Member
    Posted 2 years ago #

    The faq or firebug does no good here.

    The problem simplified. When submit is clicked ie loads this to the url /contact/#wpcf7-f288-p170-o1

    So why this hash gets loaded to url? What I've learned from ies that it vars are impossible to output to url without reloading the whole page and I guess that is the reason why the form on /contact/?lang=en page isnt' sending (?)

  6. toimisto
    Member
    Posted 2 years ago #

    Um ok the problem seemed to be fancybox script not your code. Thanks for the help though

  7. toimisto
    Member
    Posted 2 years ago #

    With ie8 but ie7 still has the problem. I tried to modify wpcf with this but it jams the ie7 completely...

    was
    return (string) $wpcf7_request_uri;
    and now is

    $lang = "&lang=" . qtrans_getLanguage();
    return ((string) $wpcf7_request_uri) . $lang;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic