04.16.2024

06.01.2006

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)

336 Comments »

  1.  
    Chris Cane 12.06.2009 @ 06:01

    Nice work!

    I will add to my http://www.scorecinci.org blog!

    Thanks

  2.  
    Nolanimrod 12.12.2009 @ 15:54

    I put this in and it works perfectly. WP 2.9. 5 pentagons.

  3.  
    jvdheuvel 01.15.2010 @ 14:27

    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

  4.  
    asd 01.24.2010 @ 10:30

    asdas

  5.  
    Hikari 01.24.2010 @ 19:35

    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?

    •  
      Hikari 01.24.2010 @ 19:56

      I had found a solution ^^’

      I create a $true_page variable, and set it to false during class constructor. Then I add an action to 'wp_head', where it is set to true, and when my main filter runs if it is false I 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 ^-^

  6.  
    Tammy 01.25.2010 @ 14:24

    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!

  7.  
    SMae 02.07.2010 @ 12:55

    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!

  8.  
    Wayne 02.14.2010 @ 18:57

    After installing the preview looks great by default — but how can I change the styling of the “preview” button itself? Thanks!

  9.  
    Quincy 04.03.2010 @ 15:06

    Which comment system is this? not the preview function but the full comment system? can anyone tell it to me?

  10.  
    brun 04.15.2010 @ 18:32

    sadasdasdasdasd
    asd
    asd
    a
    sdasdas

  11.  
    sdsad 04.20.2010 @ 07:21

    nice try

  12.  
    thjuks 05.12.2010 @ 10:21

    Very nice

  13.  
    JT 06.02.2010 @ 08:30

    This could be what I am looking for.

  14.  
    Ed Fisher 06.04.2010 @ 11:13

    Hi,
    When updating using the WP automatic method, the new version of this plugin apparently doesn’t like something with Thesis 1.7 or vice versa, and it killed the loading of the side bar on all post pages. This error appeared at the bottom of the content for each post.
    Fatal error: Undefined class name ‘self’ in /home/content/r/y/m/rymarmor/html/retrohack/_retroh_wp_root/wp-content/plugins/ajax-comment-preview/ajax-comment-preview.php on line 88
    Deactivating the plugin restored the sidebar. I am a complete WP and PHP n00b, but would be happy to provide you anything from my site if you consider this a bug worth chasing, and want more detail. Just drop me a line using the contact provided to comment.
    Thanks
    Ed

  15.  
    ron 06.05.2010 @ 15:32

    When updated it disabled my smilies themer/toolbar plugin.

  16.  
    testname 06.07.2010 @ 15:04

    You know what would be really cool.. that instead of having a preview, it should be a prepost with an option of deletion.

    So that if the surfer leaves the site, it should be saved as a comment unless he/she decides to delete the comment.

    Lets say you can do this for a few minutes. What do you reckon?

  17.  
    readbud 06.13.2010 @ 00:38

    Thanks for sharing such wonderful plugin with this post. I just wanted to say thank you once again.

  18.  
    Bruce 06.13.2010 @ 07:04

    I LOVE this plugin!

  19.  
    Koz 06.21.2010 @ 01:45

    Hi, I have the same problem as someone below, with Twenty Ten :

    Fatal error: Undefined class name ‘self’ in /homez.309/koztoujo/www/wp-content/plugins/ajax-comment-preview/ajax-comment-preview.php on line 74

    •  
      MDA 08.19.2010 @ 21:53

      You need to be running PHP5. I’ve updated the readme.txt to reflect that requirement.

      The plugin really should just refuse to activate without PHP5.

    •  
      netcom 02.21.2011 @ 21:07

      I found same problem like this, had you solve this?

  20.  
    jewelry necklaces 06.21.2010 @ 19:52

    I’m sure they want to keep their customers happy! Good luck!

  21.  
    Goy 06.23.2010 @ 05:25

    Also getting the following:

    Undefined class name ‘self’ in /home/[xxx]/public_html/agoyandhisblog/wp-content/plugins/ajax-comment-preview

    I had to disable this plug-in on this and my other site as well, as it was preventing backgrounds from being rendered.

    This is with WordPress 3.0, the Journalized Blue theme and the Fresh Blue Idea themes.

    •  
      DJ Allyn 08.15.2010 @ 06:29

      yeah, I am getting that also. Apparently there is no answer for that two months later.

  22.  
    Robert 06.23.2010 @ 11:03

    The upgrade to 2.3 is getting LOTS of complaints from users with a wide range of browsers. (WordPress 2.8.2, theme Painter 1.1.)

  23.  
    testo 07.23.2010 @ 03:07

    tset

  24.  
    reza 08.06.2010 @ 04:27

    مچکرم

  25.  
    venson 08.10.2010 @ 04:44

    受打击!!

  26.  
    Anonymous 08.14.2010 @ 12:59

    no this is what I want

  27.  
    László Monda 11.26.2010 @ 03:49

    I’ve got the “Preview error” message upon clicking the Preview button after upgrading to WordPress 3.0.1.

    Fortunately, the Live Comment Preview plugin does work.

  28.  
    ZackFord 02.13.2011 @ 10:02

    Hi! Just found this plug-in and like it! I need your help though…

    Upon installation, the preview button is appearing ABOVE the form box… how can I configure it to appear down with the Submit button? (I don’t know much about php and js stuff, so help is appreciated.)

    Also, I’m getting a weird gap in the preview between a poster’s info and actual comment text. I’d love for my preview box to look a lot like the one I’m using right here right now! :-D

    Thanks for this great plug in and your assistance!

  29.  
    aa 03.06.2012 @ 21:31

    aaaaaaaaaaa

  30.  
    Anonymous 03.09.2012 @ 04:19

    Rewelacyjny wpis oby takich więcej, wiele informacji jest bardzo użytecznych i interesujących z pewnością sukienki wyciągnę z tego artykułu bardzo wiele przydatnych wiadomości , dziękuję autorowi i prosze o wiecej takich artykułó

  31.  
    Anonymous 03.09.2012 @ 04:21

    Dobry wpis oby takich więcej, wiele informacji jest bardzo pomocnych i pomocnych napewno trampki wyciągnę z tego tekstu bardzo dużo przydatnych wiadomości , dziękuję autorowi i prosze o wiecej takich artykułó

  32.  
    Anonymous 03.09.2012 @ 04:47

    interesujący wpis oby takich więcej, wiele informacji jest bardzo użytecznych i interesujących z pewnością Japan style wyciągnę z tego artykułu bardzo wiele przydatnych wiadomości , dziękuję autorowi i prosze o wiecej takich wypowiedzi

  33.  
    Anonymous 03.09.2012 @ 04:50

    Świetny artykuł oby takich więcej, wiele informacji jest bardzo użytecznych i pomocnych napewno Japan style wyciągnę z tego tekstu bardzo wiele przydatnych informacji , bardzo dziękuję autorowi i prosze o wiecej takich artykułó

  34.  
    buty damskie 03.10.2012 @ 16:55

    interesujący artykuł oby takich więcej, wiele informacji jest bardzo pomocnych i pomocnych z pewnością seksowna bielizna wyciągnę z tego tekstu bardzo wiele przydatnych wiadomości , dziękuję autorowi i prosze o wiecej takich artykułó

  35.  
    japan style 03.10.2012 @ 16:57

    Dobry wpis oby takich więcej, wiele informacji jest bardzo pomocnych i pomocnych napewno seksowna bielizna wyciągnę z tego tekstu bardzo wiele przydatnych informacji , dziękuję autorowi i prosze o wiecej takich tekstów

  36.  
    Misiek 03.13.2012 @ 06:11

    Bardzo ciekawy artykuł pozdrawiam i zapraszam do przeczytania mojego artykułu podatek Norwegia

  37.  
    Jan 03.13.2012 @ 07:29

    Interesujący artykuł zapraszam do poczytania mojego skup książek warszawa

  38.  
    Ola 03.13.2012 @ 10:03

    Cześć bardzo mi się spodobał ten wpis poczytajcie też mój rekuperatory

  39.  
    Jola 03.13.2012 @ 21:55

    HEJ, nie wiem o co autorowi chodziło w tym artykule ale polecam malowanie Kraków

  40.  
    Ania 03.14.2012 @ 21:34

    Bardzo fajny artykuł, zajrzyj też na moją stronę : samochód na kredyt

  41.  
    Armen 03.18.2012 @ 04:27

    Testing plugin

  42.  
    Szymon 03.22.2012 @ 11:32

    Bardzo wciągający artykuł. Zachęcam do lektury. Więcej podobnych tekstów możecie znaleźć tutaj: Listonoszki

  43.  
    Zugiy53 03.22.2012 @ 19:30

    These days, Mullbery
    is the well-known manufacturers; and additionally buying mulberry hand bags is usually a image of favor and even direction. Its the most impressive luxurious manufacturers that does not now have huge total price, and even supplies periodic profits now for the prospects have fun with typically the magnificence in this fantastic unit without worried with regard to the amount thing. Mulberry is actually an english trademark, knowning that also has meant it was being proclamation regarding reliability and magnificence. Lots of widely known stars for example Kate Mose seem to be admirers from this believed company.
    fdsa

  44.  
    cherist 03.24.2012 @ 07:48

    fafdafdsa

  45.  
    Jan 03.25.2012 @ 09:21

    Bardzo zainspirowało mnie Twoje podejście do tematu. Chciałbym z Tobą o tym porozmawiać. Zapraszam na moją stronę: Meble młodzieżowe

  46.  
    Szymon 03.27.2012 @ 08:28

    Bardzo interesujący artykuł. Zmienił moje postrzeganie tego tematu na zupełnie inne. Jeżeli jesteś ciekaw co ja o tym sądzę wejdź na moją stronę: Medycyna naturalna Warszawa

  47.  
    buty damskie 04.04.2012 @ 08:12

    Bardzo dobry artykuł oby takich więcej, wiele informacji jest bardzo pomocnych i pomocnych z pewnością balerinki wyciągnę z tego artykułu bardzo dużo przydatnych wiadomości , bardzo dziękuję autorowi i prosze o wiecej takich artykułó

  48.  
    japan style 04.04.2012 @ 08:14

    interesujący artykuł oby takich więcej, bardzo dużo informacji jest bardzo pomocnych i pomocnych z pewnością Japan style wyciągnę z tego tekstu bardzo wiele przydatnych informacji , bardzo dziękuję autorowi i prosze o wiecej takich artykułó

  49.  
    japan style 04.04.2012 @ 08:57

    Rewelacyjny wpis oby takich więcej, bardzo wiele informacji jest bardzo użytecznych i interesujących z pewnością balerinki wyciągnę z tego tekstu bardzo wiele przydatnych wiadomości , dziękuję autorowi i prosze o wiecej takich tekstów

  50.  
    botki 04.04.2012 @ 09:01

    Rewelacyjny wpis oby takich więcej, bardzo wiele informacji jest bardzo użytecznych i interesujących z pewnością sukienki wyciągnę z tego artykułu bardzo wiele przydatnych informacji , dziękuję autorowi i prosze o wiecej takich artykułó

Leave a Reply to testname

Comment Moderation is on; comments with spammy words or a few links might be delayed. Don't worry, they'll get posted soon. If you think something has gone terribly wrong, contact me.

Line and paragraph breaks are inserted automatically and e-mail addresses are never displayed. You may use the following HTML tags in your comments.

<a abbr acronym b blockquote cite code del em i q s strike strong>

© mdawaffe (Michael D Adams) - Powered by WordPress - Full Credits