adrian is rad


comment preview

Filed under: — adrian @ 10:55 pm

I’ve installed this hack for WordPress to do comment preview.

Let’s see if it works.

[Update] It seems like it’s working. It’d be cool if it said Preview and Say It! (or Post) on the initial page, for people who don’t have the patience to preview. Anyone with some php knowledge want to check out my wp-comments.php to see if it’s an easy fix? I’ve commented the old code. It starts withform action=” etc. It’s not as simple as just copying the input name=”submit” from the old code. I tried that. It seems non-trivial because the two codes has separate form sections referencing the two php scripts for commenting [new and old].

[Double Update] I now have it working with both Preview and Post, thanks to Jesse.

10 Responses to “comment preview”

  1. Adrian Says:

    It’d be good if this comment worked. I am going to test URLs and apostrophes and “quotes” and italics and what the heck, bold too.

    Let me know if you notice anything funky about it.

  2. andy (not andyl) Says:

    That’s some service! I mean, it would be good to have both “preview” and “say it!@!@” (with the @!@!!@) buttons on the page, but for formatting nerds like myself, preview is the best thing ever.

  3. penguin Says:

    I made it so there is both a preview and post button on the same page. here is the source for the updated version. I changed 2 lines and added 3 new lines. yipee!

  4. Adrian Says:

    hey thanks, jesse!

  5. penguin Says:

    you’re velcro!

  6. andy (not andyl) Says:

    okay. I don’t mean to pee in everyone’s soup, here – but there’s a point to the preview button:
    to see the special formatting tricks, just like they would appear, once posted as addendums to the blog itself.
    While this preview is nice, and allows me to double-check spelling and the like, it’s not very informative regarding the actual appearance of the entry itself.

    It’s a good first start – it could be better. (I’m not being a jerk! Really! I don’t know PHP, or I’d do it myself!)

  7. Adrian Says:

    I know that the line breaks don’t show up right and the font is slightly different, but for the most part mostly the formatting comes through, no?

    I’ll have to check out what stylesheet the wp-comment-review is referencing for the font.

  8. andy (not andyl) Says:

    It’s more the column size. In the preview, the entry runs the width of the browser, but once it’s posted, it’s all tucked nicely into the table that delineates comments from the rest of the crowd. I hate to reference MT, but the way it’s set up on handcoding is pretty much what I’m thinking about.

  9. Adrian Says:

    I’ll see what I can do…

  10. Dennis Says:

    Thanks for the hack, I’m was all searching for this hack :)

Powered by WordPress