View Single Post
Old 11-01-2013, 08:43 AM  
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
and use facebook to enable people to leave comments. Not everyone has fb obviously, but at least you won't have to moderate, and all of them will be real comments.

Put this in your theme's <head> section:

Code:
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and in your single.php, in the body, put this right after the line <?php the_content(); ?>:

Code:
                

<BR>
                <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="5" data-width="470"></div>
changing "5" to display more comments, and "470" to adjust the layout if necessary
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote