WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
[resolved] Submit Comment not working! HELP (4 posts)

  1. Eluryh
    Member
    Posted 3 years ago #

    I've the "Connect with Facebook" button working properly in my wordpress site, the facebook login works great, showing up the profile picture and the name, but the problem is when you write a comment and click to submit, it does happens anything, it's just like an "stupid button" with no function. The button works with the original submit comment form (using name, email and web inputs), but not with the facebook plugin... Please help me.

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Eluryh
    Member
    Posted 3 years ago #

    I'm using Arras Theme, so I added the necessary lines to comments.php because without them, the "Connect with Facebook" button didn't appear (so Arras Theme doesn't have the new comment_form).

    Any idea will be appreciated.

  3. Eluryh
    Member
    Posted 3 years ago #

    It's a Facebook App configuring issue or a Theme code issue?

  4. Eluryh
    Member
    Posted 3 years ago #

    Solved, special thanks to Otto, of course.

    PROBLEM (by Otto):

    the problem is that your theme does validation of those fields before
    allowing a user to submit a comment. Specifically, the jQuery
    validation code is being used.

    In this case, when you log in with Facebook, it hides those three
    fields. Two of them, the name and email, are marked as "required". But
    when you use FB to comment, they are not filled in. Instead, the
    plugin recognizes this and fills it in on the back end.

    So you need to adjust your theme to remove the validation code, so
    that it will let the comments be submitted without the name and email.

    SOLUTION FOUND

    I've erased these lines from my Arras Theme comments.php:

    <?php if (get_option('require_name_email')) : ?>class="required"<?php endif ?>

    and

    <?php if (get_option('require_name_email')) : ?>class="required email"<?php endif ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic