又一个wordpress AJAX paged comments 插件

这个插件提供

方式在发表评论、确认、翻页等!

image-thumb2

image-thumb2

下载地址:点击下载该插件

插件的安装:

1.上传 YAAPC 到 `/wp-content/plugins/` 目录!

2.在 ‘Plugins’ 菜单下激活该插件。

3.(可选择的,但是推荐这样做)修改你的评论模板(comments.php),添加一个 div 标签 id=”yaapc-comments”  把< ?php yaapc_pages()?>` 放到你想显示的地方去.看下面的例子。

4.修改样式表style.css 在YAAPC 目录自定义YAAPC的外观

修改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>
... ...

13 Responses to “又一个wordpress AJAX paged comments 插件”

  1. 爱尔兰人可根据 CHINA Internet Explorer Windows says:

    我在卡那可能效果

    [Reply]

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:


正在读取数据……