post-page

Coment Preview for WordPress 1.2

37
responses
by
 
on
May 20th, 2004
in
WordPress Hack

I wrote a very small addition to WordPress 1.2 which lets you have comment previews. The install is very simple and it helps in a couple of ways:

– Lets your commenters know what their final comment is going to look like
– Might prevent comment spammers

Example here: http://proc.homeip.net/testwp

Download here: http://weblogtoolscollection.com/b2-img/wp-comment-preview.zip

Please post bugs/suggestions.

heading
heading
37
Responses

 

Comments

  1. codeman38 (1 comments.) says:

    I’ve made some of the changes that mikelu suggests above, fixed the problems where slashes weren’t stripped from usernames/URLs, made it so that the comment is ‘texturized’ (smart quotes, etc.) during preview, and fixed a couple of the layout issues. My hack of the source code is available through my name link on this post.

  2. mikelu (1 comments.) says:

    The above trackback is from me.
    I had some suggestions for this hack:
    1. use htmlspecialchars() so that double-byte characters can be correctly showed up in the preview page.
    2. apply_filters() to $author_new could be $author_new = apply_filters('comment_author', $author); and to $comment_new could be $comment_new = apply_filters('comment_text', $comment_new);

  3. Mark (58 comments.) says:

    Good ideas, maybe in a newer release.

  4. Ajay says:

    Is this the latest version as posted here?

  5. xZx says:

    ZX

  6. Tim (1 comments.) says:

    The example link no longer works.

  7. c fxfhn says:

    wtehwreth

  8. bull says:

    Why cant I preview *this* comment?

  9. Robert Basic (1 comments.) says:

    nice tool, i have just one question: i’m having probs to display the german “ae” (ä), “ue” (ü), “oe” (ö). What do i have to change?
    Rob

  10. qqqqqqqqqqqqq says:

    qqqqqqqqqqqq

  11. test (1 comments.) says:

    test comment

  12. Nome (1 comments.) says:

    comment

  13. Steve (1 comments.) says:

    I’m currently using Laughing Lizard’s Three Strikes plug in, and it seems to do a pretty good job, but this Comment Preview plugin might filter out some more.

  14. Susan Kitchens (1 comments.) says:

    Greets! I just upgraded to 1.5, and would like to know how to make wp-comment-preview work in the new setup. Any tips, or is that the end of the line for comment preview?

    Thanks!

  15. Brian (1 comments.) says:

    Very nifty, and easily implemented. Thanks!

  16. Kathy K (2 comments.) says:

    I note the preview isn’t running here… :???:

    Had to add a stripslashes to your preview output as follows:
    ?php echo stripslashes($comment_new); ?

    and in the hidden values, as follows:
    ?php echo stripslashes (htmlentities($comment)); ?

    It keptputting backslashes in things like “don’t” otherwise (and passed them to the post, too).

  17. Kathy K (2 comments.) says:

    :oops: Forgot to say:
    Thank you for writing it. Adding a few stripslashes is nothing to the trouble I’d have had trying to do it myself!

  18. Mark (58 comments.) says:

    Fixed :)

  19. pita (1 comments.) says:

    I have just one question: i’m having probs to display the german “ae” (ä), “ue” (ü), “oe” (ö). What do i have to change?

  20. kReEsTaL (1 comments.) says:

    Is there a way to test this plugin somewhere?



Trackbacks/Pingbacks

  1. […] ichier qui s’occupe des commentaires. Pour en savoir plus, je vous renvoie au billet Coment Pre […]

  2. […] om now has a comment preview feature. It’s a modification of LaughingLizard’s Comment Preview for Wo […]

  3. […] #8212; nikkiana @ 23:58:29

    In attempt to foil the spammers, I’ve installed comment preview. Sorry to add one more click to your comme […]

  4. […] rt/3/15663 and tried hack-authimage but it didn’t work for me. Using another hack Coment Preview. Let’s see if this helps. texas-holdem […]

  5. […] ent Tackling Comment Spam. Some solutions are more drastic than others. I elected to use Laughing Lizard’s Comment Preview hack and Chris Davi […]

  6. […] ent Tackling Comment Spam. Some solutions are more drastic than others. I elected to use Laughing Lizard’s Comment Preview hack and Chris Davi […]

  7. […] m the increasing amounts of comment spam I’ve been receiving, I’ve implemented this comment previewer. From now on when you leave a comme […]

  8. […] t their “advertisement.”” However, all things considered I think I’ll try the preview plugin (easy) and have a think about this alter […]

  9. […] h automatically adds the email address, URL, and IP address to your Spam Words File. Laughing Lizard’s Comment Preview, just requires the […]

  10. […] led under: general blogosphere — adrian @ 10:55 pm

    I’ve installed this hack for WordPress to do comment preview. Let’s […]

  11. […] s hack for WordPress to do comment preview. Mark Ghosh (LaughingLizard) has writen a small WordPress plugin that inserts an intermediary step where a […]

  12. […] ew Filed under: Change Log — Gunther @ 7:29 pm vl=3 I added a plugin from LaughingLizzard that allows for comment previews. It is m […]

  13. […] al Blacklist. For WP 1.2.2, I have a lot of plugins and hacks enabled. For one I use the Comment Preview hack for comments which blo […]

  14. WordPress Comment Hacking
    As you may have noticed, I have made improvements to the “commenting experience” at this blog. The first is the “Recent Comments” section, which can currently be seen on the sidebar at your right. This was simple copy and pasting from the WordPress…

  15. […] al Blacklist. For WP 1.2.2, I have a lot of plugins and hacks enabled. For one I use the Comment Preview hack for comments which blo […]

  16. […] u preview or post on the first page. Instead, WordPress hackers seemed to be split between LaughingLizard’s Comment Preview (which requires that […]

  17. […] one I use the Comment Preview hack for comments which blocked my comment […]

Obviously Powered by WordPress. © 2003-2013

page counter
css.php