Forum Replies Created

Viewing 12 replies - 16 through 27 (of 27 total)
  • Remove the “$before.” at line 455 works for me. Many thanks whaus.
    I don’t see any problem right now… But I am wondering in what this “$before.” was useful. Strange.

    Thread Starter Fabian

    (@carmano)

    Yes, you’re right. Now it works, now the error messages are displayed under the field and cannot disappear.
    Fine for me ?? Thanks for your help!

    Thread Starter Fabian

    (@carmano)

    Thanks for your quick answer (and many thanks for this great plugin).

    In my opinion, the accessibility is not as good as before because the field is hidden by the validation message…

    See this screenshot: https://snag.gy/cvAUh.jpg the user cannot see what he is actually typing.

    What do you think?

    Like Tee888, I later discovered that my blog had been hacked with code injection. I remove the injected code and my contact form with AJAX was working properly again (without the change I described before).

    Thanks! I modify my current template (template-thumbnails.php) by moving

    if (have_posts()) {

    up and removing

    else {
    	$output .= $no_results;
    }

    It works.

    Thread Starter Fabian

    (@carmano)

    Thanks for the precision. Finally, I change manually the file “wp-conditional-captcha.php” to hardcode the translation.

    For example:

    Before:
    $this->page(__('Verification required', 'wp-conditional-captcha'), $html);

    After:
    $this->page(__('[:en]Verification required[:fr]Vérification requise'), $html);

    It works, but it is very specific for me (french and english with qTranslate). Also I will have to do these changes everytime I will update the plugin…

    Because it was not enough and the language was always in french, I also needed to change the file “comments.php” of my theme to provide the correct language. Note that all these changes are specific to qTranslate.

    Before:
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

    After:
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php<? _e('[:en]?lang=en[:fr]?lang=fr'); ?>" method="post" id="commentform">

    Now the plugin is displaying the good language to enter the Captcha.
    Hope that helps qTranslate users.

    The title of this thread is not so good, it should be “Making the plugin working with qTranslate”, I don’t think I can change it…

    Thread Starter Fabian

    (@carmano)

    Actually, the languages folder was existing. So it was ok (except the 404 error)

    How do you use it? For your information, I am using qTranslate to change the language, maybe your plugin is not compatible?

    Thread Starter Fabian

    (@carmano)

    Thanks, I will try it later, can’t access a ftp client right now ??

    @academy Of Contemporary Music

    here is the http request of you website:

    {<json valid code here}<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
    

    You have html code also, but at the end! Modify my code to delete the end, not the beginning. Or you can fix the cache plugin problem w-cache.

    @academy Of Contemporary Music
    I tried on your website, but you have deactivated ajax… Can’t see the http response so.
    Maybe it is because of my modification, but I don’t think so.

    But without ajax, it works, it just refreshed the entire page.

    I’m using WordPress 3.4.2 and CF7 3.3.2

    Anyway don’t forget to backup your script.js first ?? just in case!

    Ok, I have finally found what the error was and correct it (actually this is a workaround).

    The http response was not in valid JSON format. Don’t ask me why, but it included some html code before the real json data (i.e. before ‘{‘, something like

    <div style="display:none"><b></b><div>

    I am not sure where it is coming from (I got also this code when I’m editing the form in the admin). Whatever, here is a fix:
    Instead of json data, use ‘text’. Then get ride of the unexpected html code (use substring and indexOf), then convert to json format (now it is ok). It works like a charm!

    Here is the code extract I added/modified (contact-form-7\includes\js\scripts.js, from line 22):

    data: { '_wpcf7_is_ajax_call': 1 },
    dataType: 'text',
    success: function(data) {
    	// remove invalide characters
    	data = data.substring(data.indexOf("{"));
    	data = $.parseJSON(data);
    

    Hope that little trick will help some of you. Look carefully the response content after the submit (e.g. use firebug for firefox), maybe you have the same problem, if not, this code won’t help you at all…

    I have the same problem here.

    The email is correctly sent but the icon is still spinning.

    I watched the http request (with firebug), I don’t see any problem, I receive an ajax response from the server (success if all fields are filled in, error with the list of fields to fill in…). It should work but the contact form is not refreshed (with ajax I mean, the little box to display the errors or the confirmation that the email has been sent).

    Something is missing?

    I don’t know since how long it is not working anymore, I just test it yesterday… I don’t think there is extensions conflict, I didn’t install any for a long time, but did some update…

    Any clues someone??

Viewing 12 replies - 16 through 27 (of 27 total)