Home Forums Theme support Eastend : Ajax contact form translation

This topic contains 18 replies, has 2 voices, and was last updated by  7Theme Support 6 years, 5 months ago.

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • Dear all,

    Could you please explain me how to setup and translate the widget :: Ajax Contact Form .

    Indeed, I tried to update the page-contact.php … update the fr-FR.po .. looking for another files but nothing.

    You can see the ajax contact form in the right footer of this page

    http://immovateur.com

    or two contact forms at the bottom of

    http://immovateur.com/estate/appartement-1-chambre-frontiere/

    Many thanks for your reply

    Franck

    Hi,

    sorry, it seems there is a problem with the translation file. To fix it, please open the file “custom.js.php” in the folder “7league/script” and change the text in line 212, 217, 227 and 232.

    Thank you for your reply .. I will update the file custom.js.php

    However, where is the location to translate the field Name, Email and Message for each input text form ?

    merci

    Franck

    Hi,

    you can translate it in the file “shortcodes.php”, its in the folder “7league” and you can find it on line 922 – 930

    Thanks a lot for your reply .. I have now access to the full contact form translation.

    Last little request, could you say me what is the function to use in order to display correctly the ‘é’ or ‘è’ in the following line :

    line 206 :jQuery(“#success”).addClass(“alert alert_green”).text(” Merci, votre email a été envoyé avec succès. “);

    Display résult : Merci, votre email a �t� envoy� avec succ�s.

    I tried to change ‘é’ by “&eacute”;

    but display result : Merci, votre email a “&eacute”;t”&eacute”; envoy”&eacute”; avec succ”&eacute”;s.

    Thanks for your reply and your support

    Franck

    Hi,

    you can take the HTML name for it:

    http://www.ascii.cl/htmlcodes.htm

    i.e. ” é ” => ” é ”

    I already used the HTML name .. but the result on the screen after posting is

    Merci, votre email a été envoyé avec succès.

    it seems that the system don’t take into consideration the HTML name ?

    Custom.js.php code :

    if(responseText===”1″)
    {
    jQuery(“form#contactForm”).slideUp();
    jQuery(“#success”).addClass(“alert alert_green”).text(” Merci, votre email a été envoyé avec succès. “);
    jQuery(“#success”).slideDown();
    }

    thanks for your reply

    Franck

    text is correctly displayed on the forum … but in my web screen, é are not displayed, the is the HTML name that iis displayed

    you can tru to send an email from this page (tab “LE propriétaire”) and see the result

    http://immovateur.com/estate/exemple-dextension-belle-maison-vosgienne-50-ares-terrain/

    Thanks a lot

    Franck

    Hi,

    we’ve tested it but it seems you’ve changed something in the files, because the form is not working.

    Hi,

    I don’t understand what’s happening

    I replace ajax.php files by the original .. but always the same error …

    at the end of the ajax.php file .. there is this code
    if($_POST[‘ajaxType’]==”ajaxTrue”)
    {
    if($emailSent==true)
    {
    echo “1”;
    }
    else
    {
    echo “2”;
    }
    }
    else
    {
    $url=$_SEVER[“HTTP_REFERER”];
    //header(“Location: $url”);
    die();
    }

    so the mail is sent but 1 is displayed ..

    I just made test on ajax.php and custom.js.php … do you have an idea ?

    (hard period for the site immovateur.com 🙁 )

    many thanks for your help

    Franck

    AU SECOURS !! 🙁

    I delete my 7league folder and replace it by the original one …

    always the same error .. the screen display “1” when I send the mail ..

    There is something else linked to the ajax mail ?

    Hi,

    found the problem, there is a problem with the javascript, I think the problem is the minify plugin. Can you deactivate it and test it again?

    Hi

    Thank you for your reply.

    Unfortunately, it’s not linked to the minify plugin (same problem after desactivation)

    However, i discovered perhaps the root cause (but I don’t fond the solution for the moment)

    In fact I display two times the contact part on the page estate-single-default.php

    The first in a tab (behind the Details tab) and the second at the bottom of the page

    The first is working well, the second (at the bottom) don’t working.

    There is perhaps a conflict, I don’t know why .. I’m looking for the reason …

    Perhaps do you have an idea ?

    many thanks for your help

    Franck

    Hi,

    found the plugin / the file with the problem, its this here:

    http://immovateur.com/wp-content/plugins/userpro/scripts/scripts.min.js?ver=4.0

    So the plugin what cause the problem is the “Userpro” plugin. I think when you deactivate it its working again

    Hi,

    I desactivated User pro (which is a premium plugin)
    Unfortunately, always the same problem appears ..

    As I said in my previous message, the contact form is displayed two times on the page estate-single-default.php

    The first in a tab (behind the Details tab) and the second at the bottom of the page

    The first contact form is working well, the second (at the bottom) don’t work (mesage displayed : “1”).

    There is certainely a conflict code when this short code is called two time on the same page, but I don’t found what ..

    Could you have a look perhaps on this way ?

    Thanks a lot

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in to reply to this topic.