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 1.2.1) is compatible with WordPress 2.1 and higher only. Users of WordPress 2.0.x should use the older version 1.0.1.
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.
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)
Tags: WordPress, WordPress Plugin, Ajax.
[...] Preview Filed under: blogging, neat! @ 19:09 UPDATE: The documentation for this plugin is now on my AJAX Comment Previewpage. [...]
Great plugin, thanks.
One suggestion: make the comment_form() text configurable.
Other than that, great!
Hey, I’ve had no success. Do I need to add the tag to the top with the .js ext ..or maybe the .php extension.
what exactly do I need to do with my theme template to get this rollin.
Thanks.
I’m afraid I don’t understand your question. I can offer the hints below but do not know if they apply to your situation. Can you be more clear?
Both files should be renamed such that their extensions are
.php; the.txtextension they currently have is just so they can be downloaded easily.You shouldn’t have to do anything special with your theme. I looked at your site’s HTML output and this plugin’s defaults should all work (though you’ll need to change the template code in this plugin’s options page to get the preview to look like one of your site’s actual comments).
The only thing required of your theme is that the line:
<?php do_action('comment_form', $post->ID); ?>Should appear right before the comment form’s closing tag (
</form>). But all themes should have this already. See the documentation for theme develepment.Yes, I have done all of this. When I activate the plugin, the “preview” button shows up on the comment form.
The problem lies in two areas. The “click the preview button to see a preview of your comment” doesn’t show. the second prob is if you go to the html output source of the page, it doesn’t show the dynamic js script line that should be added to the head tag area.
check it out. thanks.
Do you have
<?php wp_head(); ?>in your theme’s header? (Again, see the link I gave in my previous comment.)
ahh…thank you. ok I’ll fix the styling later..but the wp_head function was not called. Thanks for that. :)
How bout this:
Richard P. Feynman
“Dear Mrs. Chown, Ignore your son’s attempts to teach you physics. Physics isn’t the most important thing. Love is. Best wishes, Richard Feynman.”
“Physics is to math what sex is to masturbation.”
“Physics is like sex: sure, it may give some practical results, but that’s not why we do it.”
“Mathematics is not real, but it feels real. Where is this place?”
“The same equations have the same solutions.” (Thus when you have solved a mathematical problem, you can re-use the solution in another physical situation. Feynman was skilled in transforming a problem into one that he could solve.)
“When you are solving a problem, don’t worry. Now, after you have solved the problem, then that’s the time to worry.”
“The wonderful thing about science is that it’s alive.”
“All fundamental processes are reversible.”
“What does it mean, to understand? … I don’t know.”
“What I cannot create, I do not understand.” (Taken from his chalkboard after his death.)
“Know how to solve every problem that has ever been solved.” (Taken from his chalkboard after his death.)
“But I don’t have to know an answer. I don’t feel frightened by not knowing things, by being lost in the mysterious universe without having any purpose—which is the way it really is, as far as I can tell, possibly. It doesn’t frighten me.”
“To those who do not know mathematics it is difficult to get across a real feeling as to the beauty, the deepest beauty, of nature … If you want to learn about nature, to appreciate nature, it is necessary to understand the language that she speaks in.”
“I cannot define the real problem, therefore I suspect there’s no real problem, but I’m not sure there’s no real problem.” (about Quantum Mechanics)
“I’d hate to die twice. It’s so boring”
“For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.”
Here is my poem:
“Clever remarks were no good,
Elizabeth realized. A sparrow was a sparrow,
and would never be a proper friend,
nor make up for the legions
of her childhood who’d abandoned her,
and left her to drift in this half-haze,
this country holiday without end.”
This is refreshing we don’t want this
Anonymous Tester,
It should refresh when you actually submit the comment. This is an AJAX comment previewer, not an AJAX submitter.
Just installed this plugin and I’m loving it. Great job!
Some features I’d like to be implemented (sorted by importance):
- Internationalization of %date% tag output. Should be quite easy to do;
- %gravatar% or at least %email% tag, so one could tweak the plugin to make it generate gravatars in previews;
- Allow HTML code in preview div default text.
Ok, I’m probably doing something stupid, but need your help. I couldn’t get this to work on my regular website, so set it up on a test bed loaded with fresh copy of WP 2.03.
I downloaded the two files. Renamed to ajax-comment-preview.js.php, and ajax-comment-preview.php. Put both in a directory in plugins called/commentpreview. Activated plugin. Checked the options are correct, ie. Author, url, comment id. Using wp 2.03, default theme. Loaded website, “preview” button comes up as expected. Press it, nothing happens. Press “submit”, comments posts as normal. No other plugins are activated. Tried in both Firefox and IE 6.
Any help would be greatly appreciated
Not
ajax-comment-preview.js.phpbut ratherajax-comment-preview-js.php(note the hyphen instead of the period).I’m echoing FD’s comment, I’m getting the same problem with the plugin! It isn’t working when I click the button, nor do I see any title text. I also tried using it on the Kubrick theme in my 2.0.3 installation just to be sure.
The Javascript console isn’t reporting any error, either…
SG, without pointing me to your site, I can’t offer much advice.
Lol.. to think of all the time I wasted trying to figure this out. Thank you!
SG: I bet you have the same problem I did.
Quite delightful, thank you. What I like about this is that it respects the blog author’s comment formatting settings, unlike some other plugins I’ve seen.
By the way, how hard would it be to make this into a “live preview”? I’d imagine it would only take a small amount of new code, which could be turned on and off by an option on the plugin options page.
But it’s great as is. Thank you so much!
Doing a live preview would not be too hard, but making one right (i.e. a live preview that respects your templates and filters) would be difficult to implement well.
At any rate, I find live previews to be incredibly annoying, so I won’t be looking into it
:)You’re right, they are annoying, and if I had the option I’d probably keep it turned off. I was mostly curious about how difficult it would be.
ror,
Sorry. Akismet flagged your comment as Spam for some reason.
Good suggestions. They’re on the list.
> 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).
I almost hit submit — and the reason is the tab-order. The Preview button is displayed before the Submit button, so I assumed that tab + enter will hit Preview, but your tab-order is Submit first and Preview next.
If I were to hazard a guess, most folks might just be hitting tab and then realise that they have hit Submit, rather than Preview.
Just a thought.
C’mon guys! Let’s be more creative!
Jagged Little Pill by Alanis is the greatest album ever! Perfectly mixes angst and hope.
[...] Plugins Acronym Replacer AJAX Comment Preview Akismet aLinks autohyperlink AutoMeta Auto-Close Comments Customizable Post Listings WP-EMail Favatars Head META Description Image Completion Plugins Used Plugin podPress WP-Polls WP-Print ProtectContent Random File Search Meter Show Top Commentators Simple Asides Google Sitemaps WP-Stats Translator WP-ContactForm WordPress Database Backup [...]
Works perfectly! The only comments preview plugin to do so with my setup.
Haven’t worked out how to get it to show gravatars yet. It will show Comvatars if the Comvatars plugin is activated, so why not gravatars too???
[...] AJAX Comment Preview Click Button Coment Preview which filters content through WordPress filters. Inspired by Bitflux GmbH via Jeff Minard. Requires SACK. By Michael D Adams.SCREENSHOT [...]
I have installed the plugin and get the preview button, but nothing happens when I press it? Any thoughts? Please See Here
Thank you
Alright, now much creative maybe but my favorite musical band is DMB. I even devoted a website to them which is the first and only DMB fan site in my language http://www.dmbturkiye.gen.tr
However I left the best part of my comment to the end; when I type ‘:)’ in the comment textbox I also see ‘:)’ is the preview. Is it possible to see the smiley icon instead of the text ‘:)’ in the preview?
:)
Michael Cohen, it looks like the javascript file isn’t there. Did you download both files and put them in the same place?
Halil, on your site, I’m sure the smilies would show up. I have disabled them on mine; that’s why you don’t see them here.
Hi thanks for the help, so now I can get it to start to work but as you will see I get the following error “Fatal error: Call to undefined function: get_currentuserinfo() in /home/.david/mgcohen/brandedart.net/blog/wp-content/plugins/ajax-comment-preview.php.php on line 58″
Thanks again for your help
Michael Cohen, I’m not sure what could be causing that.
ajax-comment-preview.php.phpshould be renamed toajax-comment-preview.php(only one.php). Fix that, reactivate the plugin, refresh the page and see if that helps.“Surrender pronto, or we’ll level Toronto!”
nice plugin
It’s not working for me, the div box appears on my page but there is no data appearing inside.. I use wordpress 2.x
Whe this is a better plugin, I will grab it.
Some suggestions for the development:
the text of the preview button used in the comment_form() should be localizable
plugin displays non localized dates: for example it wrotes “17 december 2006″ instead of “17 dicembre 2006″ (using j F Y on italian blog)
Another strange problem with Apple Safari (no problems with Firefox or Opera): it seems to display characters with strange encoding
See image:
http://xs310.xs.to/xs310/06500/safari.png
Great piece of work, but i found the same problem on Apple Safari. I will check for a solution and post success message here.
Maybe I found a temporary solution: decode the commentPreview.response!
Add to ajax-comment-preview-js.php the function decode from this page (change declaration since this is a class method).
After that change, modify line 85 (see decode function at the end)
commentPreview.onCompletion = function() { outputElement.innerHTML = decode (commentPreview.response); };[...] In passato avevo già provato sul blog un plugin in grado, tramite JavaScript, di visualizzare l’anteprima dei commenti durante la digitazione: l’impressione era che rallentasse notevolmente la scrittura, soprattutto su pc datati. Ho deciso quindi di provare un altro tipo di plugin, Ajax Comment Preview, in grado di visualizzare l’anteprima “a richiesta”: basta un clic sul relativo pulsante e l’anteprima viene visualizzata direttamente nella pagina (senza ricorrere a fastidiose finestre popup). [...]
[...] blogwaffe » AJAX Comment Preview Plugin de Wordpress para hacer un preview de los comentarios con Akax (tags: ajax code javascript plugin plugins preview web2.0 wordpress) Archivado en: Links Diarios | Etiquetas: No Tags. [...]
Roses are red, violets are blue,
Ajax kicks ass and so do you!!
Great plugin cheers!
[...] Ajax Comment Preview: Implements a true click-to-view comment preview function. [...]
Any chance this badboy works with Wordpress 2.1?
Thanks!
Hi,
I have upgraded my 2.0.6 test blog with version 1.0.1 of this plugin, and I have the problem where the Preview button exists, but pressing it has no effect.
My test blog has a URL of the following format: http://example.com/blogtesting/blog43/
I did some debugging, and found the reason was that the path to the js file was incorrect in the header.
It looked like this:
http://www.example.com/blogtesting/blog43/blogtesting/blog43/wp-content/plugins/AjaxCommentPreview1.0.1/ajax-comment-preview-js.php
Note the duplication of the subdirectories in the URL.
When I manually hacked the extra subdirectories out of the HTML, the preview function worked.
I suspect that this bug affects people who do not have their WordPress blog in the root directory of their web-site, and works fine for people who do.
More testing revealed that the call to wp_enqueue_script in wp_print_script seems to be adding “http://www.example.com/blogtesting/blog43″ to the front of the parameter “/blog43/wp-content/plugins/AjaxCommentPreview1.0.1/ajax-comment-preview-js.php” (which is the result of htmldir).
I haven’t got a patch, because I don’t yet understand what wp_enqueue_script is supposed to do.
[...] sembra funzionare al meglio (bello il nuovo editor!), l’unico plugin non funzionante è AJAX Comment Preview (al momento [...]
Nice detective work Julian!
Since I can’t figure out what “wp_enqueue_script” does either (and it does do a bunch of admin stuff) I just manually added a call to the proper location of ajax-comment-preview-js.php to the header and it works fine!
Having an extra call will not hurt as the one with the incorrect address is of course not being loaded.
[...] Comment Preview is the simplest way to get live comment previews on your site. Simply activate the plugin. [...]
Yup, the path to the javascript in the blog header is false (even on this blog:).
My temporary solution involves opening the file
ajax-comment-preview.phpand in line no. 31 replacing' . Ajax_Comment_Preview::htmldir( __FILE__ ) . 'with
wp-content/pluginsso that line 31 reads:
wp_enqueue_script( 'ajax_comment_preview', '/wp-content/plugins/ajax-comment-preview-js.php', array('sack'), Ajax_Comment_Preview::version() . $ver );Works fine other than that. :)
^^ Oops, forgot to write my name down. :)
Hi - as far as I can tell, Ajax Comment Preview stopped working with the WP 2.1 update. Sadly, as it was by far the neatest preview option available.
Are you likely to be updating it for 2.1 or is it time to kiss it goodbye?
Thanks
Hmmmmm… I would love to put this plugin on my blog, but does it work with WP 2.1?
I’ve also noticed on my upgraded to 2.1 WP that the preview no longer works. I share Andy’s wish that you might wish to update it, as I’ve enjoyed having it on my blog.
This plugin is now compatible with WordPress 2.1.
Use the download link at the top of the post to get the most recent version (1.1).
Great news, many thanks! :)
wew, i still don’t get it
why it doesn’t work in opera 7.4
In the room women come and go / NOT talking of Michelangelo.
Thanks for the plugin!
wow, very good
Hello. I would very much like to use this plugin but I’m having the Safari character encoding problem. I’m sure that PsuedoTechnico’s change is what I’m looking for, but the explanation is vague for us who don’t know javascript. Can anyone explain more step-by-step? Sorry I’m a newbie but how to “change declaration”? And maybe his line 85 is different from others?
>
great idea for a plugin
By the way my favourite bands are Counting Crows and Ben Folds (Five).
Thanks for the plugin
Good work
If you want you can find a partial solution for the Safari/KHTML problem at the end of this post.
This is not a definitive solution: the best way would be to determine browser capabilities sending a test word and verifying the response, not to sniff the browser version; unfortunately now this is out of technical possibilities ;-)
Another problem with this plugin is related to non localized date (name of months and days are always in english).
this is really good work that you’ve done with this…
Thanks! Will test it!
excellent work, i have gone through it and i think it works very well, i like what you have done with this
Stephen
Hi i want to use this ajax comments editor.how can i use this editor in my project.
nice work!
I tried it on my blog, which is in Bulgarian and I noticed that you use
dateinstead ofdate_i18n(on line 79), so my weekday appeared in English, instead of in Bulgarian.Just a test to see if this works with ajax tech.
[...] AJAX Comment Preview [...]
The site looks great ! Thanks for all your help ( past, present and future !)
great plugin
Really nice Plugin, Thank you!
But there is a problem, if you really have an empty string ('') as “emptyString”-value. When the emptystring is '', the outputElement.style.display is set to ‘none’, so nothing gets displayed - even after you’ve written something in the comment. (the output is there, but all set to display:none)
There is an easy workaround for that, though. Just set the emptystring to ' ' (just a single “space”-character) and it magically works.
But I think there is no need for setting display:none, because the “ajax-comment-preview”-div is empty when you haven’t typed in anything yet. You can check it out on my blog, if you want to.
What do you think?
But of course you get a poem, too:
This one is from my poem generator. It uses poems from poetry.com :-)
and another funny one
Tanto va la gatta al lardo che ci lascia lo zampone!
Hello
Thanks for this great plugin
However, it appears to generate a javascript error on some pages:
doitElement has no properties
src='http://www.darkmatter101.org/site/wp-content/plugins/ajax-comment-preview-js.php?ver=1.11175896914'>
When I turn off the plugin the error disappears.
I notice your of course running it on your site without any errors. Any idea what it might be?
Below is a extract of the source code with plugin running:
thanks
Sorry, I forgot to add, running WP2.13
Thank!
I wonder does this actually work?
Sweet.
thanks….
thank you
great plugin
great job
[...] any rate, I’ve gone and added a plugin that does this; please let me know if you see any problems (all two of you who read [...]
Excellent job!
thanks.
Interesting, but it would be even better if you could have real-time visualization of the comment rather than having to click on the button
thanks
thanks
[...] AJAX Comment PreviewClick Button Coment Preview which filters content through WordPress filters. Inspired by Bitflux GmbH via Jeff Minard. Requires SACK. By Michael D Adams. [...]
nice script
[...] AJAX Comment Preview - lets your readers click a button, and a preview appears without reloading the page. This one seems to be incompatible with my theme :( [...]
Version 1.2.1 is now available.
New version? I tried a version before, but had problems with safari, lets see what happens now….
But thank you for sharing with us anyway.
Jermaine,
I’m not sure if the Safari bugs have been fixed or not yet
:(I’m going to move it all to a different JavaScript library (jQuery) soon. When I do that, I’ll make sure all the JS works everywhere.
This doesn’t appear to work with WP 2.2.1 in either IE6, IE7 or FX2 under Vista. Server is a local dev box running Apache 2.2 (XAMPP 1.6.2) on Windows Server 2003.
The path for the JS I’m getting is
<script type='text/javascript' src='http://192.168.16.42/ajax-comment-preview-js.php?ver=1.21182423985'>I’ve not had a chance to try it in an online environment yet - just thought I’d mention it.
“Most themes’ code has all the comments inside one big , , or tag. You’ll probably need to put your preview markup inside that “parent” tag too. Make sure it has the same class(es) as the tag in your theme’s code.”
Too bad!! :S I don’t use those tags for my comments, I think tha’s my problem with all Ajax comment plugins :(
I have come to the conclusion - and I am sincere about this - when you first decide to be a writer, usually that means “I’m going to be a novelist,” and you assume that 95 per cent of a great novel is your own genius, 5 per cent is the clay that you’re using to demonstrate it. I would turn it around a bit. I would say it’s 65 per cent content and 35 per cent talent, that really makes the difference. -
Tom Wolfe
I’m getting the same error as Luke in comment number 99.
“doitElement has no properties”
Running:
AJAX Comment Preview 1.2.1 on WordPress 2.2.1
Any suggestions would be much appreciated. Thanks.
I would love to change the world, but I don’t know the source code of the world.
very nice work,
thanks man! you’re perfect :)
Looks perfect to me!
Everything works pritty well, Thanks!
The only question I have is how to place the preview button? It is on top of the comment text box, it doesn’t make much since to me their. Any ideas how to move?
Sorry, I take that back, it isn’t working at all. I think it has something to do with my theme, becuase it worked well with another theme…. I’m not sure how to fix it though…
Iggy pop is one of the best band in the world !!
Here’s a random comment then :
Mutemath is by far the BEST and totally original band that I’ve heard in a very long time. They’re like a modern version of The Police mixed with some up to date electronica styles (They’re rock, but the drummer is influenced by DJ Shadow and has a very interesting but brilliant sound.)
So if you’re wanting to listen to something new, creative, original and brilliant, you should give mutemath a look. Their debut album is brilliant, and it comes with a LIVE CD as well. They really are tight live, and I LOVE the ‘jamming sessions’ both on the recording and on the LIVE CD.
I had to have my say since I saw some people posting stuff about music.
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
Hello
This plugin is very nice, but my blog has an iso-8859-1 charset (my language is portuguese) and then the text is showed with really weird characters. (If you try to write “não” or “à” you will see what I mean.) What I must to do?
Thanks!
[...] Ajax Comment Preview - Permet aux lecteurs d’avoir une preview de leur commentaire [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] , Alexa Rank , Ajax Comment Preview , asTunes , Codebox , Crossroads , FireStats , Google PageRank , Hardened-Trackback , imgViewJX , [...]
how will it be? :P
[...] Ajax Comment Preview - Permite a los usuarios ver sus comentarios antes de mandarlos. [...]
[...] of your WordPress site speeding up the load times.Alexa Rank - Display your Alexa rank with pride.Ajax Comment Preview - Allows readers to preview their comment before submitting.asTunes - Retrieves data from your [...]
[...] Ajax Comment Preview [...]
[...] Ajax Comment Preview. [...]
[...] Ajax Comment Preview - Yorum yapanların, yorumlarını göndermeden önce önizlemesini gösterebilen bir eklenti. [...]
[...] Blogger 的】- AjaxWP- Alexa Rank- Ajax Comment Preview- asTunes- Codebox- Crossroads- FireStats- Google PageRank- Hardened-Trackback- imgViewJX- Live [...]
What a load of shit!
I clicked the preview button and waited for 5 hours before a little black dot appeared on my screen.
This is a test. Please ignore all of the above.
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Alexa Rank -显示你的Alexa排名。. Ajax Comment Preview - 可以让读者在提交留言前进行预览。 asTunes - [...]
Hi,
Trying to use the plugin, but the Preview button is sitting below and to the left of the submit, rather than next to it as it does here on this site.
How can I fix it?
Thanks,
Shane.
[...] Ajax Comment Preview - 可以让读者在提交留言前进行预览。 [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - 一个实时的留言编辑预览 [...]
[...] Ajax Comment Preview - Предварительный просмотр комментариев перед отправкой. [...]
;-) :-) :)
[...] of your WordPress site speeding up the load times. Alexa Rank - Display your Alexa rank with pride. Ajax Comment Preview - Allows readers to preview their comment before submitting. asTunes - Retrieves data from your [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
Testing this out…
Hi i just installed your plugin succesfully and it is working great. But only one concern. I’m getting a validation error after installation.
Can you please help me out how to troubleshoot this validation bug. Thank you in advance.
[...] Ajax Comment Preview - 允许读者在提交留言之前预览留言。 [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
I’m recently using AJAX comments version 2.0. Do I need to uninstall this before installing your version?
I really like this because it works best when moderation is off.
[...] Ajax Comment Preview - 可以讓讀者在提交留言前進行預覽。 asTunes - 從你的Audioscrobbler及last.fm帳戶屬性中接收數據,並可發佈表單到你的Blog上。 [...]
[...] Ajax Comment Preview - 可以讓讀者在提交留言前進行預覽。 asTunes - 從你的Audioscrobbler及last.fm帳戶屬性中接收數據,並可發佈表單到你的Blog上。 [...]
[...] Ajax Comment Preview - 可以让读者在提交留言前进行预览。 asTunes - 从你的Audioscrobbler及last.fm帐户属性中接收数据,并可发布表单到你的Blog上。 [...]
Hey, I’ve just replace this plugin with the other “LIve Preview Commment” plugins.
However, I found out that this plugin is NOT compatible with WP-Ajax Edit Comment (http://www.raproject.com/wordpress/wp-ajax-edit-comments/).
Even though I have read the Ajax Edit Comment author’s instruction on how to make jabs and hooks, I still don’t get it to work nicely with your plugin ‘MDA’.
So, do think you could go over there to throw some hooks into this plugin to make it work with Ajax Edit Commment?
Let me know.
Thanks for the great plugin
Finally a comment preview that actually works on WP 2.2.2. Thanks!!
“In every American there is an air of incorrigible innocence, which seems to conceal a diabolical cunning.”
-A. E. Housman
hi
this may or may not be the same bug mentioned in comment #75 (I haven’t gone looking for “emptystring” in the code) but when I removed the text from the “preview text area” option, the plugin stopped displaying the comment, although I didn’t get any errors, and nothing actually broke. So I just put a “ ” in the field. Worked again.
Heh. Now *your* preview button on this page isn’t working for me! (I’m using Firefox 2/Mac OS X)
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Permite al lector ver cómo aparecerá su comentario, antes de enviarlo. [...]
Everything works pritty well, Thanks!
The only question I have is how to place the preview button? It is on top of the comment text box, it doesn’t make much since to me their. Any ideas how to move?
Just the solution I was looking for :)
Thanks for your hard work… it’s greatly appreciated!
gasmonso
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] kommt die AJAX Comment Preview zum Einsatz. Auf Knopfdruck (direkt unter dem Absendeknopf) erscheint der Kommentar genau so, wie [...]
[...] Ajax comment preview permet aux commentateurs de voir leur commentaire avant de le poster définitivement [...]
[...] Ajax comment preview permet aux commentateurs de voir leur commentaire avant de le poster définitivement [...]
[...] Ajax Comment Preview - ???????????????? [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] AJAX Comment Preview [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
Pudge controls the weather.
Brillaint! I love this, exactly what I’ve been looking for.
[...] Ajax comment preview permet aux commentateurs de voir leur commentaire avant de le poster définitivement [...]
ummm
I wish I could get this to work :(
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] кнопки на самом сайте. Alexa Rank - показывает рейтинг в Alexa. Ajax Comment Preview - позволяет читателю-комментатору сделать [...]
hi everybody,
once i click on preview ,nothing happened ..i put 2 files in plugin directory , i activated ,but no result , need help :(
does this plugin work with wordpress mu?? thx in advance
[...] Ajax Comment Preview - 允许读者在提交留言之前预览留言。 [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
I have a problem using this on my local server. I’m running an Xampp-installed Apache with php 4 and mysql. It works fine on my external webhost, but I need to run it locally as well. Any ideas?
[...] Ajax Comment Preview - Предварительный просмотр комментариев перед отправкой. [...]
Hi…
Thanks for this great plugin. I’ve activated it via Plugin in admin area. But unfortunately, the bottom of “Preview” is disfunction. When every i click the “Preview” there’s NO effect. You can see below:
http://aufklarung.org/?p=131#more-131
Another problem is i want to give a background for the Preview bottom same like the background of bottom of the comment submit, so please tell me how to do that?
sorry, i’m wrong typing, the “bottom” word on my post above is “Button” :-).. once again, sorry :-)
Winter water
Blue and chill
Freeze the heart
Let passion kill.
Hi, I got precisely the same error as @30 Michael Cohen, but it only happens on pages (not articles) that have their own templates, so it might just be that my “own” templates have a problem (which is strange, since I run quite a lot of plugins, and none have problems).
So I have no idea what causes it under WP 2.2.2, however, there is a simple fix: in
function send(), just scroll down until you get the call toget_currentuserinfo();(in my case, it’s line 46) and add the following code before that line:if (!function_exists('get_currentuserinfo'))
return;
I believe that under some circumstances, WP might for some reason be unable to include the proper include files because they’re not necessary (I’m wildly speculating!) and/or the logged-in user data has been lost in a session. Whatever that might be, in my personal case, the page templates in question all have comments disabled, so getting rid of the call to
get_currentuserinfo()works for me.hi comment preview worked well until yesterday, i did some modifications and now it dont work anymore, cant find what ’s wrong , here is the error code :
uncaught exception: Permission refusée (denied) d’appeler (call) la méthode XMLHttpRequest.open
Line 0
thank you
cool! :D
Oh, sorry about that, I just said “test”. A poem, hmm…
I can’t think of any, so I’ll just thank you for your hard work: thanks!
[...] preview. The comment preview plugin creates a live preview of how your comment will look. Very useful for spotting typing errors, [...]
[...] кнопки на самом сайте. Alexa Rank - показывает рейтинг в Alexa. Ajax Comment Preview - позволяет читателю-комментатору сделать [...]
[...] Ajax Comment Preview - Предварительный просмотр комментариев перед отправкой. [...]
Hi, I use the comments already on the main site, but the preview isn´t working.
Could do you say me, how I can fix the problem?
http://easyflair.de/hoppetosse/
[...] Ajax Comment Preview - Permite que os leitores vejam o seu comentário antes de os submeter. [...]
test
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] AJAX Comment Preview — gives instant previews of comments before submitting them. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] que permita rever o comentário antes de o submeter ia ajudar-me bastante nestes casos. Novamente o Ajax Comment Preview é um plugin que se realçou dos outros por não ser necessária uma página exclusiva para rever [...]
perfect plugin!
[...] Alexa Rank -显示你的Alexa排名。. Ajax Comment Preview - 可以让读者在提交留言前进行预览。 asTunes - [...]
You might want to release a 1.2.2! I fixed some JavaScript errors I was getting (on pages without comments turned on) by checking for nulls a bit earlier.
function commentPreviewInit() {
doitElement = document.getElementById('acp-preview');
if ( doitElement == null ) return;
acpFormElement = doitElement.parentNode;
while ( 'form' != acpFormElement.tagName.toLowerCase() )
acpFormElement = acpFormElement.parentNode;
inputElement = acpGetFormInput( 'comment' );
if ( inputElement == null ) return;
outputElement = document.getElementById('ajax-comment-preview');
if ( outputElement == null ) return;
authorElement = acpGetFormInput( 'author' );
urlElement = acpGetFormInput( 'url' );
doitElement.onclick = commentPreviewAJAX;
// set the result field to hidden, or to default string
if ( '' == emptyString ) outputElement.style.display = 'none';
else outputElement.innerHTML = emptyString;
}
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
Three gods A, B, and C are called, in some order, True, False, and Random. True always speaks truly, False always speaks falsely, but whether Random speaks truly or falsely is a completely random matter. Your task is to determine the identities of A, B, and C by asking three yes-no questions; each question must be put to exactly one god. The gods understand English, but will answer all questions in their own language, in which the words for yes and no are ‘da’ and ‘ja’, in some order. You do not know which word means which.
Virker det stadig? Gør det stadig det?
hello, jesus is awesome.
sometimes, over the rainbow.
sometimes,
iuno i just wanna see how it works, niice.. very nice
great plugin! thumbs up!
[...] İşte size ajax ile hazırlanmış 30 wordpress eklentisi :AjaxWp , Alexa Rank , Ajax Comment Preview , asTunes , Codebox , Crossroads , FireStats , Google PageRank , Hardened-Trackback , imgViewJX , [...]
perfect plugin, thanks
[...] Ajax Comment Preview - 允许读者在发表评论前预览。 [...]
it works like a charm
[...] кнопки на самом сайте. Alexa Rank - показывает рейтинг в Alexa. Ajax Comment Preview - позволяет читателю-комментатору сделать [...]
[...] Ajax Comment Preview [...]
Hearing U2 at the moment, I just test the “blockquote”-tag:
Just curious how this works and if it works fine, I’ll install…
[...] denyeceim beendiklerimi burada sizlere anlatacam Eklentiler ; :AjaxWp , Alexa Rank , Ajax Comment Preview , asTunes , Codebox , Crossroads , FireStats , Google PageRank , Hardened-Trackback , imgViewJX , [...]
Works great but I’d like the Preview button to line up similar to your layout. Instead one button ends up directly under the other. How do I go about it? Thanks!
[...] Ajax Comment Preview - Permet à vos lecteurs de voir leurs commentaires avant publications. [...]
I discovered the problem. I’m using the comments.php from Brian’s Threaded Comments. I was able to move a closing div tag to get the Submit and Preview buttons to turn up on the same line. A bit of CSS should handle the rest.
Sample of comments… looks great.
thanks!
*two-thumbs up*
[...] iin ajaxl eklentiler Eklentiler ; :AjaxWp , Alexa Rank , Ajax Comment Preview , asTunes , Codebox , Crossroads , FireStats , Google PageRank , Hardened-Trackback , imgViewJX , [...]
here is good link for AJAX tutorial.
http://gohil.dharmesh.googlepages.com/ajax.html
I love Ajax, I have a feature like this that I coded into my SMF forum for members to preview signatures and I did another one to get the members most recent blog post every time they login and append it in their signature whenever they post. I’ve just grabbed this plugin and am looking forward to testing it on some of my wordpress installs. I’m always on the lookout for cool plugins because I host Wordpress and SMF sites and my clients love any new stuff.
[...] Ajax Comment Preview - 允许读者在发表评论前预览。 [...]
is the plugin installed as i type this?
OMG said the frog
WTF replied the ensemble
Together they wondered while wandering.
Testing
Thanks for the plugin. I installed it with no problems on my blog that I just upgraded to Wordpress 2.3.1 (the newest release). So it works on the newest release. Hope this is helpful.
Teste
Toute la vérité, messieurs, je vous la livre
Si j’ai quitté les rangs des plus de deux cents livres,
C’est la faute à Mimi, à Lisette, à Ninon,
Et bien d’autres, j’ai pas la mémoire des noms.
Recomiendo ver la peli [REC] si quieres pasar miedo
A nice wee addition.
Hi dude your plugin is really cool thanks, can you tell me another plugin that when user submit comments then page should not be reloaded but only show submittd comment by ajax ?
[...] неплохой плагин. Ajax Comment Preview - позволяет читателю-комментатору сделать [...]
Great! Thanks for you hard work!
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
It’s a very nice addition to my blog. Thank you. I think Wordpress should add this to the standard install in the future because it’s a great asset.
[...] Ajax Comment Preview - Allows readers to preview their comment before submitting. [...]
some problems on my blog
My web site how?
[...] Comentários Preview Ajax Um simples plugin que permite os visitantes do teu site verem um preview dos seus comentários antes de submeterem. [...]
Hi dude your plugin is really cool thanks, can you tell me another plugin that when user submit comments then page should not be reloaded but only show submittd comment by ajax ?
[...] Ajax Comment Preview - 允许读者在发表评论前预览。 [...]
[...] кнопки на самом сайте. Alexa Rank - показывает рейтинг в Alexa. Ajax Comment Preview - позволяет читателю-комментатору сделать [...]
[...] AJAX Comment Preview. [...]
[...] Ajax Comment Preview - 允许读者在提交留言之前预览留言。 [...]
[...] Ajax Comment Preview - 允许读者在发表评论前预览。 asTunes - 获取Audioscrobbler或last.fm中的数据并以列表的形式发表到博客上。 [...]
This is great! Im using this! Thanks so much
[...] Ajax Comment Preview - 允许读者在发表评论前预览。 [...]
Thanks a lot this is really cool
Great plugin!
Great plug dude!
Great, but I can’t use it.
How come it doesn’t show up like yours?
I’ve just started redesigning my old Wordpress blog to make itmore modern and this plugin is awesome. I’m eventually going to try to alter it a little bit though and make it so it previews while you type nto after pressing the previre button. Otherwise, great idea !!!
[...] Ajax Comment Preview - Permette agli utenti di vedere l’anteprima dei propri commenti prima di inviarli. [...]
I almost hit submit — and the reason is the tab-order. The Preview button is displayed before the Submit button, so I assumed that tab + enter will hit Preview, but your tab-order is Submit first and Preview next.
[...] Ajax Comment Preview - 可以让读者在提交留言前进行预览。 [...]
I can’t get it to work. I’m not using Kubrick but I don’t know what I’m missing in my template that makes it not show.