AJAX Comment Preview
DOWNLOAD
Get the plugin from the Ajax Comment Preview page in the WordPress.org plugins directory.
COMPATIBILITY
The newest version of this plugin (version 2.1) is compatible with WordPress 2.6 and higher only. Users of WordPress 2.0.x should use the older version 1.0.1 (which is unsupported and probably broken).
INSTALLATION
For more information, see the Ajax Comment Preview FAQ in the WordPress.org plugins directory.
To use this plugin, all files from the zip file you download must be in your wp-content/plugins/ directory. If you choose to place them in a subdirectory, all files must be in the same directory.
Activate the plugin from your WordPress site’s Plugins admin page.
Edit the plugin’s options from your Options -> AJAX Comment Preview admin page in order to specify the formatting of the preview. This will depend on your particular theme. The default format works for WordPress’ default Kubrick theme.
Note: You may need to tweak your theme’s CSS to get the preview to look exactly like a normal comment.
Testing
I get a number of comments on this post testing the system. A little odd, since it seems to me people should be testing the preview functionality (which is new) not the comment posting functionality (which is the same old WordPress standard stuff). Anyway, that’s cool. Go ahead. But please do me a favor; don’t just thow up some lame “testing” comment. Try sending over a poem or maybe something from the Farmer’s Almanac. Tell me your favorite book/artist/music. Don’t suck; try to be creative.
The History
My original post.
2.1
- Fixes an JavaScript issue in Internet Explorer reported by Eric
2.0
- Full gravatar/avatar support
- Moved to jQuery
- WordPress 2.7 support
- Should have fixed any character endcoding issues
- Should now work on pages served as XML
1.2.1:
- Fully internationalized dates
1.2:
- Fixed some JS errors (Mark Jaquith)
- %email_hash% available for gravatars
- Readme file with configuration instructions
- Fix double offset in dates (Mark Jaquith)
i have problem with ajax comment preview, my jQuery scrollto is not work if i use this
Thanks,
I’m the designer :)
Nice preview. This is really looking good and I am using it to one 1 of my blogs
Yet another reason to update your WP blog to a newer version (2.6+)!
It’s really too much trouble to do this; a true “code” tag is needed, one that would do a truly literal block quote, preserving initial space, special characters without interpretation, etc. But the preview at least makes it possible to fine-tune. Had to construct this in an editor for replacing stuff; had to use use ‍ to disconnect the %’s from %content%, etc.
This is a wonderful plugin; should be in the core.
class Ajax_Comment_Preview {
function version() { return '2.0'; }
function init() {
add_option( 'ajax_comment_preview', array('template' => <<<EOM
<ul class='commentlist'>
<li id="comment-preview" class="thread-alt alt depth-1">
<div id="div-comment-preview">
<div class="comment-author vcard">
%avatar:32%
<cite>%author%</cite> Says:
</div>
<div class="comment-meta commentmetadata">
<a title="" href="#comment-preview">%date%</a>
</div>
%content%
</div>
</li>
</ul>
[...] Ajax Comment Preview [...]
[...] на самом сайте. Alexa Rank – показывает рейтинг в Alexa. Ajax Comment Preview – позволяет читателю-комментатору сделать [...]
[...] Ajax Comment Preview – Using this plugin, with the click of a button, your site’s visitors can preview their [...]
very nice !
ds
Hi thats great
This looks great
some comment
[...] CrossroaAjax Comment Preview – позволяет читателю-комментатору сделать предварительный просмотр комментария перед публикацией.ds – позволяет добавить в блог предварительный просмотр картинок вашего профиля во Flickr и комментарии к ним. FireStats – полная статистика по темам “кто ссылается” и “популярные страницы” [...]
Nice work!
I will add to my http://www.scorecinci.org blog!
Thanks
[...] Ajax Comment Preview – Permet à vos lecteurs de voir leurs commentaires avant publications. [...]
[...] – 在全站运用AJAX,从而加快页面载入速度。 Alexa Rank – 显示Alexa排名。 Ajax Comment Preview – 允许读者在发表评论前预览。 asTunes – [...]
[...] Ajax Comment Preview – Ajax效果的留言预览插件, 会在留言文本框下面添加一个预览按钮, 点击生成按钮即可. [...]
I put this in and it works perfectly. WP 2.9. 5 pentagons.
[...] на самом сайте. Alexa Rank – показывает рейтинг в Alexa. Ajax Comment Preview – позволяет читателю-комментатору сделать [...]
[...] Rank – 显示Alexa排名。 Ajax Comment Preview – 允许读者在发表评论前预览。 asTunes – [...]
[...] Ajax Comment Preview – Ajax效果的留言预览插件, 会在留言文本框下面添加一个预览按钮, 点击生成按钮即可. [...]
[...] – 在全站运用AJAX,从而加快页面载入速度。 Alexa Rank – 显示Alexa排名。 Ajax Comment Preview – 允许读者在发表评论前预览。 asTunes – [...]
Sorry I have a rather stupid question, I can’t find the answer; if you look at my site the preview button (which is called “eerst kijken”) is positioned below the submit button (“klikken”).
How do I get the preview to the right of the submit button? Similar to below, only I would like to have the preview to the right.
Thanks
[...] Ajax Comment Preview – Allows readers to preview their comment before submitting. [...]
[...] 在评论管理中添加评论回复选项。 AJAX Comments 2.0 – 基于AJAX的评论系统。 Ajax Comment Preview – 允许读者在发表评论前预览。 Ajax Comments-Reply – [...]
asdas
hello!
I’m developing a plugin that filters
'comment_text'in normal comments, and I don’t want it to to filter previewed comments.I tried to remove the filter after it was done but didn’t work, tried to set a flag that would be set and when so, filter would be skipped, but also didn’t work.
It seems when your plugin’s JavaScript queries the server, everything is run again as if it was a whole new page being loaded, and everything done on previous page load is gone.
Do you have any idea of what I can do? Is there a way to know when a load is from a preview, so I can turn off my plugin in those cases?
I had found a solution ^^’
I create a
$true_pagevariable, and set it tofalseduring class constructor. Then I add an action to'wp_head', where it is set totrue, and when my main filter runs if it isfalseI just skip and return.Since only pages that run themes’ header.php calls
'wp_head'action, I believe this way I can avoid any special request that is not meant for a full page load, and at once I can avoid situations like the generated by your plugin.tnx a lot for keeping it working, I love it ^-^
[...] 在评论管理中添加评论回复选项。 AJAX Comments 2.0 – 基于AJAX的评论系统。 Ajax Comment Preview – 允许读者在发表评论前预览。 Ajax Comments-Reply - [...]
Hi,
Could you please tell me how (en where) I can tweak the Css of my theme to let the preview fit the comments?
Thanks a lot, this is a great plugin!
ssdfsd
Hi! good
sf
test123
This is a test. Hope it’s cool.
l
[...] – 在全站运用AJAX,从而加快页面载入速度。 Alexa Rank – 显示Alexa排名。 Ajax Comment Preview – 允许读者在发表评论前预览。 asTunes – [...]
خوبه
ثحی
hidf
fdfgdg
Hello,
I can not seem to get my default avatar to appear with the comment preview, it shows the Gravatar default but not mine.
I am typing [%]avatar:65:[image url][%] (without the “[“)
Can anyone help?
Cheers!
thanks Ben varsayılan avatar yorum önizleme ile görünmesi için görünmek değil, o Gravatar varsayılan ama benim değil gösterir.