• Hellow,

    I’ve searched for replacing the comment box of facebook and I found this sollution:

    Functions.php

    add_action(‘wp’, ‘move_fb_comments’, 999999);
    function hook_fb_comments_form() {
    do_action(‘the_fb_comment_form’);
    }
    function move_fb_comments() {
    $priority = apply_filters( ‘facebook_content_filter_priority’, 30 );
    remove_filter( ‘the_content’, array( ‘Facebook_Comments’, ‘the_content_comments_box’ ), $priority );
    add_filter( ‘the_fb_comment_form’, ‘Facebook_Comments::the_content_comments_box’, 30);
    }

    comments.php

    <?php echo apply_filters(‘the_fb_comment_form’, NULL); ?>

    So that works but now I need to enable the wordpress comment as well.
    Or an easy way to merge them.

    Thanks,

    Jesse Bakker

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

Viewing 1 replies (of 1 total)
  • Thread Starter tatof

    (@tatof)

    and found it again:

    commenting line 256 (in facebook.php in the facebook pluginfolder)

    // add_filter( ‘comments_array’, array( ‘Facebook_Comments’, ‘comments_array_filter’ ), 10, 2 );

    // add_action( ‘wp_enqueue_scripts’, array( ‘Facebook_Comments’, ‘css_hide_comments’ ), 0 );

    still searching for an easy and good solution go merge facebook and wp comments.

Viewing 1 replies (of 1 total)
  • The topic ‘Replace commentbox and allow wordpress comment’ is closed to new replies.