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:

TAGS: , , , , ,


138 Comments »

« Previous1413121110987...21Next »
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

liushui On November 17th, 2009 at 11:51 pm (#)

<a href="About”>http://www.cutembt.com/page_3.html">About mbt</a>

ton On October 20th, 2009 at 9:10 pm (#)

Best unlimited web hosting, unlimited master reseller web hosting, best unlimited Alpha reseller hosting http://www.eaglehost.info http://www.acvilla.net, 24/7 Support,

ページ機能を搭載したコメントプラグイン | くずWebデザイナーのなれの果て On September 28th, 2009 at 5:50 am (#)

[...] YAAPC デモページはコチラ [...]

Shemiotoceelm On September 28th, 2009 at 1:05 am (#)

mini digital camera free digital camera http://bzcqybvgv.977mb.com/qulle.html

Sxwopqsm On September 21st, 2009 at 10:58 pm (#)

,

Gxrnuloj On September 21st, 2009 at 9:32 pm (#)

,

Philip On September 16th, 2009 at 12:50 am (#)

LimeWire,

« Previous1413121110987...21Next »

Leave a comment


(will not be published)