السلام عليكم وشكرا على الإضافة أخي مخترح ،
وجدت الإضافة في احد المواقع الأجنبية في بل أيام وقمت بجميع الخطوات ولكني لم أفلح في تركيبها ,
للأني واجهت مشكلة في إدراج كود php في صفحة comments.php
كود PHP:
<?php global $theme; ?>
<?php if ( post_password_required() ) { ?>
<p><?php _e( 'This post is password protected. Enter the password to view any comments.', 'themater' ); ?></p>
<?php return; } ?>
<?php if ( have_comments() ) { ?>
<div id="comments">
<h3 id="comments-title"><?php
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'themater' ),
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
?></h3>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=126265014139256&xfbml=1"></script><fb:comments href="<?php the_permalink(); ?>" num_posts="3" width="500"></fb:comments>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<div class="quote"><?php comment_text() ?></div>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
</li>
<cite><?php comment_author_link() ?> on <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?> <?php edit_comment_link('edit',' ',''); ?></a></cite>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php if ( get_comment_pages_count() > 1 ) { ?>
<div class="navigation clearfix">
<div class="alignleft"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'themater' ) ); ?></div>
<div class="alignright"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'themater' ) ); ?></div>
</div><!-- .navigation .clearfix -->
<?php } ?>
</div><!-- #comments -->
<?php } ?>
<?php comment_form(); ?>