Yet another Ajax paged comments plugin for wordpress (YAAPC)

This Plugin provides Ajax enabled comments system with paging,posting and form validation to your WordPress blog.

image

Features:

  • Ajax page navigation

    When the user navigate through the comments via page selector,only the comments area will be send back to the client and refreshed,not the full page.This actually save your server load and bandwidth thus making your blog faster and more responsive. The paging system works even if JavaScript is disabled.

  • SEO friendly

    Pagination can cause a duplicate content issue with search engines.YAAPC can automatically generate “noindex,follow” meta tag in your paged comments page to avoid duplicate content in search engines that may hurt your rankings.(many thanks for Hank’s great comment and advice)

  • Ajax comment posting

    Posting comments via Ajax,without page refreshing.

  • Comment form validation

    validate the user input in comment form before sending to server. 

Download Yet another AJAX paged comments plugin for wordpress(YAAPC)

Demo and Testing

Click here for demo and testing.

please don’t comment to this post for testing purposes.

Installation

  1. Upload YAAPC to the `/wp-content/plugins/` directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. (Optional,but recommended) Modify your comments template(comments.php),add a div with id="yaapc-comments" to wrap the comment list area. Place <?php yaapc_pages()?> in where you want the page selector to show.take a look at the example bellow for details.
  4. Modify the style.css in YAAPC directory to custimize how YAAPC looks .

An example of a modified comments.php:

... ...
<!-- You can start editing here. -->
<div id="yaapc-comments">
<?php if ($comments) : ?>
	<h3 id="comments"><?php the_title();</h3>
	<?php yaapc_pages()?>
	<ol   class="commentlist">
	<?php foreach ($comments as $comment) : ?>
	... ...
	<?php endforeach; /* end for each comment */ ?>
	</ol>
	<?php yaapc_pages()?>
 <?php else : // this is displayed if there are no comments so far ?>
	<?php if ('open' == $post->comment_status) : ?>
		<!-- If comments are open, but there are no comments. -->
	 <?php else : // comments are closed ?>
		<!-- If comments are closed. -->
		<p class="nocomments">Comments are closed.</p>
	<?php endif; ?>
<?php endif; ?>
</div>
... ...

Administration UI

click for full image:

image

Q&A

  • How to display the comment number?

    Add <?php echo $comment->yaapc_number;?> to your comment template(inside loop).

Related posts:

  1. YAAPC has upgraded to version 1.1.3 with SEO Enhanced
  2. Dean’s FCKEditor for WordPress plugin(V3.3)
  3. wp-comments-notifier:a wordpress comments notifier

Related posts:

TAGS: , , , , ,


145 Comments »

« Previous15141312111098...21Next »
andrei On August 10th, 2010 at 6:27 am (#)

nice plugin :D

Damien On July 12th, 2010 at 8:02 am (#)

Pas mal le plugin !

chok On July 2nd, 2010 at 8:51 am (#)

test the comment.
What is the plugins , I want to know

NETTIE RAY On June 1st, 2010 at 8:19 am (#)

I’ve been looking around http://www.deanlee.cn and really am impressed by the terrific content here. I work the nightshift at my job and it is so boring. I have been coming here for the previous couple nights and reading. I just needed to let you know that I’ve been enjoying what I’ve seen and I look ahead to reading more.

Fabio On May 23rd, 2010 at 2:15 am (#)

Hello thumbnails do not appear on my blog, where only in the single.php file are displayed as thumbnails and comments. I've been studying the code, and I believe it is in this line.

add_action ('template_redirect', array (& $ this, 'template_redirect'), 15);

The link of the thumbnail image is not loaded.
 

Carlos On April 17th, 2010 at 2:26 pm (#)

You might wanna check that example script for valid php

Craig On March 16th, 2010 at 8:42 am (#)

Does this replace the comment form, or just add functionality to it?

calvin On January 28th, 2010 at 5:39 am (#)

what a beautiful plugin…this is what i've been looking for but I can't get it to work for WP 2.9.1 :(
Can you please update your plugin to make it work with latest version of wordpress?

testttrr On December 10th, 2009 at 11:37 pm (#)

trree dekjrdoiew vew iuore ui  ruirwe yur  ruire iur er euire
erjer jkr hjgjhg ejh grehj ejge dfjkdfhj ghj gdndh dsh dfs – nhjjh hjhjol kui yuy rerert  yty uyuyiui

test On December 10th, 2009 at 11:35 pm (#)

trree dekjrdoiew vew iuore ui  ruirwe yur  ruire iur er euire
erjer jkr hjgjhg ejh grehj ejge dfjkdfhj ghj gdndh dsh dfs

« Previous15141312111098...21Next »

Leave a comment


(will not be published)