• Resolved Seth Long

    (@sethlong)


    The comments feature doesn’t appear to properly position the comments and form (at least with my theme). With FB comments OFF, my comments appear below my author bio box (right where my theme wants them). With Facebook plugin 1.0 and FB comments turned ON, they appear directly below the body of my post but above the author bio box, which is not where my theme calls for comments.

    Worse, the theme’s comment system then reports “no comments yet” where the comments are supposed to appear.

    Theme is Canvas 5.0.1 from WooThemes.

    https://www.ads-software.com/extend/plugins/facebook/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Yeah it appears they are adding the comments using the_content tag which isn’t ideal:

    add_filter( ‘the_content’, ‘fb_comments_automatic’, 30 );

    Ideally they’d use a filter/action that allows more control over positioning of the comments as it doesn’t work well on my blog either.

    I’m integrating this plugin with a client site that uses the Thesis theme and i’m having the same problem.

    The current filter doesn’t allow any positioning – a shortcode or being able to choose a location to hook to would be ideal ??

    Will keep reading up and post back if I find a solution.

    Nick

    +1 for not adding to posts automatically. Give me a function that I can add to my theme please.

    The whole integration of this plugin is weird… Take my case. I have a facebook page, and the plugin posts to it. But whenever I receive I comment in a facebook post, it doesn’t appear to my page timeline. Neither does it to wpcomments tab. So, to find out a comment was posted, I need to go checking every single post. I like the automatic integration, but FB is dull… Another issue is, whenever someone like your post on fb, the correspondant box on WP keeps showing no likes to the posts…

    As an ugly workaround I commented out the following in fb-social-plugins.php:

    /*add_filter( 'the_content', 'fb_comments_automatic', 30 );
    		add_filter( 'comments_array', 'fb_close_wp_comments' );
    		add_filter( 'the_posts', 'fb_set_wp_comment_status' );
    		add_action( 'wp_enqueue_scripts', 'fb_hide_wp_comments' );
    		add_filter( 'comments_number', 'fb_get_comments_count' );*/

    and I added a call in my theme as shown below which allows more control of placement of the comments box:

    if (function_exists('fb_comments_automatic')) {
       $fb = fb_comments_automatic($fb);
       echo  $fb;
    }

    Plugin Contributor Matt Kelly (Facebook)

    (@mattwkelly)

    We’re aggregating comments feedback at https://www.ads-software.com/support/topic/plugin-facebook-comments-suggestions?replies=69 so that we can focus on it in the next major version.

    Do you mind posting this there? Thanks

    sorry for me being a noob here. I just wanted to know how can I disable the default wordpress comments after successfully installing facebook comments.

    my site: https://www.itsallabouttech.com

    please help.

    thanks.

    Plugin Contributor Matt Kelly (Facebook)

    (@mattwkelly)

    @matt Kelly

    I’ve replied there.

    @jesseheap

    do you have any idea on how to hack the manual placement of the LIKE and SEND button placing it right after the blog post title rather than the present’s case of it being placed at the beginning of the blog post content if one chose TOP. thanks

    @getitfromboydotnet

    I haven’t looked at the code of this plugin to see where you’d have to hack.

    In my case I actually had a similar need as well, and what I did was just manually drop the code from facebook (https://developers.facebook.com/docs/reference/plugins/like/) into the proper theme file (single post.php in my case) so that it shows up right after the title. You can see the result here:

    https://blog.pinkcakebox.com/parisian-themed-1st-birthday-cake-2012-07-18.htm

    So basically I don’t use the facebook like feature from this current plugin.

    @jesseheap

    Thanks a lot! great workaround. I didn’t think of that simple solution.:D

    @jesseheap, you don’t have to comment out anything to remove a filter. Just use remove_filter('the_content', 'fb_comments_automatic'); etc. as a not-as-ugly workaround.

    Sorry, actually you have to first remove the action adding those filters with remove_action( 'init', 'fb_apply_filters' );

    That removes all the automatic code added to the posts and pages. If you want to put some back, you’ll have to copy-paste the code from fb-social-plugins.php adding them, e.g.

    if ( array_key_exists( 'send', $options ) && array_key_exists( 'enabled', $options['send'] ) && $options['send']['enabled'] ) {
    add_filter( 'the_content', 'fb_send_button_automatic', 30 );
    }

    This post says resolved but I cannot figure out how to make my Comments apear after the author Bio.

    I cannot find the places to insert the code from above if that is what I need to do.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: Facebook] Comments integration’ is closed to new replies.