comment preview
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.
December 14th, 2004 at 11:02 pm
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.
December 15th, 2004 at 7:06 am
dude.
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.
December 15th, 2004 at 8:11 am
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!
December 15th, 2004 at 9:31 am
hey thanks, jesse!
December 15th, 2004 at 9:38 am
you’re velcro!
December 15th, 2004 at 10:03 am
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!)
December 15th, 2004 at 10:27 am
I know that the line breaks don’t show up right and the font is slightly different, but
for the most partmostly the formatting comes through, no?I’ll have to check out what stylesheet the wp-comment-review is referencing for the font.
December 15th, 2004 at 1:13 pm
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.
December 15th, 2004 at 1:45 pm
I’ll see what I can do…
December 17th, 2004 at 12:12 pm
Thanks for the hack, I’m was all searching for this hack :)