Quote Comment

Note:

Both versions of this plugin have their issues and so a version 3 is planned. I’m not sure exactly what it’ll do, but it’ll encorporate the best of both versions hopefully (editable quotes, options page, dynamic byline creation, etc.). Stay tuned.

Check out this cool plugin. It’s pretty much exactly like what the next version of my plugin was going to be like and thankfully someone else got to it first (yay, less work for me!).

As a result, I will no longer be developing this plugin and I suggest that you use that plugin instead of mine. :)

And yes, you can run both my plugin and that plugin at the same time. Just remove the function for this plugin from your theme and replace it with the new one. This way my dynamic replacements will keep working.

Description:

This plugin allows commenters to quote other comments in their reply. It is highly cofigurable, all via an admin area options page. The formatting of past quotes can also now be changed as the quote replacements, as of plugin version 2.0, are replaced at the time of diplay rather than the time of quoting.

Try it out below.

Installation / Configuration Instructions:

See included readme. Instructions and such have been moved to there. ;)

Download Latest:

Past Versions:

Don’t like the way the newest version works? You can get the old version of the plugin that inserts the comment right into the reply box (rather than a placeholder) here. Note though that the v1.x series is dead and I doubt I’ll do anything more than minimal support for it. ;)

Plugin Support / Feature Request Forum:

http://www.viper007bond.com/wordpress-plugins/forums/viewforum.php?id=18

Donate

If you enjoy this plugin, please consider sending a few bucks my way. I’ve spent a lotta time on this plugin and all donated money will be put towards paying off my college loans and such. :)

226 Comments On This Page

  1. Use this comment to test on. Just click “Quote” to the lower-right.

  2. Ozh on October 4th, 2005 at 3:21 AM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    Ah, nice one. I’ve meant to do this for a long time. Cool plugin.

  3. Viper007Bond on October 4th, 2005 at 3:23 AM wrote:

    Ozh on October 4th, 2005 at 3:21 AM said:

    Viper007Bond on October 4th, 2005 at 3:23 AM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    Ah, nice one. I’ve meant to do this for a long time. Cool plugin.

    Glad you like it. :)

    [edit] D’oh, seems WordPress doesn’t like a

    within a

    Viper007Bond on October 4th, 2005 at 3:23 AM wrote:

    and attempts to fix it by moving the

    to before where the 2nd one starts. I’ll have to look into perhaps getting my plugin to ignore all blockquotes in the the comment being quoted or something… [/edit]

  4. winter on October 4th, 2005 at 2:52 PM wrote:

    Ozh on October 4th, 2005 at 3:21 AM said:

    winter on October 4th, 2005 at 2:52 PM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    Ah, nice one. I’ve meant to do this for a long time. Cool plugin.

    sweet indeed, thanks viper :)

  5. Version 1.1 released. It fixes the issue with nested blockquotes issue wehn you have “WordPress should correct invalidly nested XHTML automatically” enabled plus a few code simplifications and such.

    No need to update unless you have that enabled on your blog though as otherwise there’s no noticable difference. ;)

  6. Dude, this rocks. And it was so easy to implement too. I’ve now added this to the bag of tricks that my new template will be able to do.

    -tg

  7. Shocker on October 12th, 2005 at 3:44 AM wrote:

    Ozh on October 4th, 2005 at 3:21 AM said:

    Shocker on October 12th, 2005 at 3:44 AM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    Ah, nice one. I’ve meant to do this for a long time. Cool plugin.

    Shocker on October 12th, 2005 at 3:44 AM wrote:

    Ozh on October 4th, 2005 at 3:21 AM said:

    Shocker on October 12th, 2005 at 3:44 AM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    Ah, nice one. I’ve meant to do this for a long time. Cool plugin.

    Testing testing.. Looks nice, thanks pal =)

  8. Great plugin and very useful.

    One question. Instead of displaying text, what would need to be changed to display an image?

    I tried replacing the line that says $text=’Quote’ with the img src line, and it just displays that text instead of the image.

  9. This doesn’t work?

    if (function_exists('quote_comment')) {
    quote_comment('Quote Comment‘);
    }

    I’d think it would.

  10. I had tried that before, and it just displays that as text.

    I did get it to work, but its probably not a correct solution.

    What I ended up doing was

    Changed this line to remove Quote from the $text=’Quote’ part

    function quote_comment($text = '', $aftername = ' said', $displaywhen = TRUE, $beforedate = ' on ', $beforetime = ' at ', $commentformanchor = 'commentform', $commentareaid = 'comment')

    And then this to get the image to display.

    echo "‘ . $text . ““;

     Posted by S Paul 2 years, 9 months ago, using Mozilla Firefox Mozilla Firefox 1.0.6 on Windows Windows XP
  11. Problem confirmed and fixed. It was doing that because I stupidly made my script replace quotes and such in the entered strings so that invalid code wouldn’t happen. It didn’t occur to me that people might want to enter HTML into the function’s values. Anyway, I’ll have a release out in a few minutes. :)

  12. Fix released. Sorry about that. :)

  13. That’s it.. Awesome. :)

    Thanks for tackling this and updating your spectacular plugin.

  14. No problem. Thanks for pointing out the problem! :)

  15. One more problem that I noticed with a site I write at using the Quote Comment plugin.

    When someone quotes a comment, it shows up like this.

    Todd on Tuesday, November 8, 2005 at November 8, 2005 - 02:50 PM said:

    Instead of Todd on Tuesday, November 8, 2005 at 02:50 PM said:

    This is how I call the plugin.


    < ?php if (function_exists('quote_comment')) { quote_comment('Quote Comment‘); } ?>

    Thanks again.

  16. Okay.. I did a quick test. On that site, in the line that uses get_comment_time, I changed it to comment_time and it displayed the text November 8, 2005 7:38 -

    On another site using the same plugin, it works properly. I guess its something in the theme? The incorrect site is hosted at the same hosting company the properly working site is at. Both sites use wordpress 1.5.2

    I will have to look into the site more.

  17. The plugin should pull what date and time formats to use from your WordPress admin area options. “Default date format” and “Default time format” on the main options page.

    For the first site, your time value has date output in it. Change it to just a time format and it’ll work properly.

  18. I am having a problem with quoting something that has been quoted before, it just doesn’t show up in the textarea.

    Here is the page I am testing it on.

    Any ideas?

  19. nice idea, thanks!

  20. Viper007Bond on November 14th, 2005 at 1:40 PM wrote:

    Ensellitis on November 13th, 2005 at 9:48 PM said:

    I am having a problem with quoting something that has been quoted before, it just doesn’t show up in the textarea.

    Here is the page I am testing it on.

    Any ideas?

    Seems you have my plugin currently disabled, but I’m pretty sure I know what you’re talking about. Scroll to the top of this page and read “Known Issue”.

    Basically, if you have this:

    Viper007Bond on November 14th, 2005 at 1:40 PM wrote:

    This is a cool quote:

    Viper007Bond on November 14th, 2005 at 1:40 PM wrote:

    Quote!!!

    and if you have “WordPress should correct invalidly nested XHTML automatically” enabled in the WordPress admin area, WordPress will turn the comment into this:

    Viper007Bond on November 14th, 2005 at 1:40 PM wrote:

    This is a cool quote:

    Viper007Bond on November 14th, 2005 at 1:40 PM wrote:

    Quote!!!

    So, if that option is enabled, any blockquotes that are inside the comment that’s being quoted get replaced with this:

    [blockquote removed]

  21. Sorry about that… I got frustrated. I just activated it again, so check out that last link I posted, and try to quote that last comment there that already has a quote in it. I found that if there is text not inside of a blockquote, it just plain refuses to quote it. I have had the correct XHTML turned off since day one, so I don’t think that is the problem, I have ben playing around with it for most of the day with no luck…

  22. For some reason, line breaks in the Javascript contents of your “Quote This” links are not being replaced with “\n”. Have you modified the plugin at all? ‘Cause it should do it automatically, as it does here.

  23. Yeah, the only thing I changed is $text.

  24. It only seems to do it if you try to quote a comment that already has a quote in it…

  25. Viper007Bond on November 14th, 2005 at 7:34 PM wrote:

    Ensellitis on November 14th, 2005 at 7:10 PM said:

    Yeah, the only thing I changed is $text.

    Well there’s the problem right there probably. You didn’t say you went and modified the source of the plugin… :|

    Redownload the plugin and don’t modify it’s code this time. The plugin is setup to handle inputs on it own. ;) You’ll want to use this in your theme:

    < ?php quote_comment('Quote This'); ?>

  26. Nope, still not working…

  27. I dunno what to tell ‘ya then. You either have another plugin that’s interfereing or your PHP version doesn’t like str_replace() or something. Sorry. :(

  28. Ensellitis on November 15th, 2005 at 3:46 AM wrote:

    Viper007Bond on November 14th, 2005 at 10:47 PM said:

    I dunno what to tell ‘ya then. You either have another plugin that’s interfereing or your PHP version doesn’t like str_replace() or something. Sorry. :(

    Oh well, from time to time, things just don’t work. :) Thanks for the plugin, though… I will play around with it, and if I get it to work, I will let you know.

  29. Chess on November 18th, 2005 at 2:08 PM wrote:

    Ozh on October 4th, 2005 at 3:21 AM said:

    Chess on November 18th, 2005 at 2:08 PM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    Ah, nice one. I’ve meant to do this for a long time. Cool plugin.

    This is a test

  30. A new version of this is in the works to try and fix the above bug among other things.

  31. That would be great! Thanks for letting me know, I will keep my ear to the ground.

  32. babe on November 28th, 2005 at 7:46 PM wrote:

    Ensellitis on November 28th, 2005 at 6:44 PM said:

    That would be great! Thanks for letting me know, I will keep my ear to the ground.

    testing ur quote?

  33. agados on November 29th, 2005 at 12:39 PM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    probando

  34. agados on November 30th, 2005 at 3:59 AM wrote:

    agados on November 29th, 2005 at 12:39 PM said:

    agados on November 30th, 2005 at 3:59 AM wrote:

    Viper007Bond on October 4th, 2005 at 1:25 AM said:

    Use this comment to test on. Just click “Quote” to the lower-right.

    probando

    Testing 1

    agados on November 30th, 2005 at 3:59 AM wrote:

    babe on November 28th, 2005 at 7:46 PM said:

    agados on November 30th, 2005 at 3:59 AM wrote:

    Ensellitis on November 28th, 2005 at 6:44 PM said:

    That would be great! Thanks for letting me know, I will keep my ear to the ground.

    testing ur quote?

    testing 2

  35. If anyone has any ideas for the next version of this plugin, please reply to this thread in the WordPress support forums.

  36. Testing new version of my plugin on my live blog. :)

  37. Tease. :D

  38. Feel free to grab the release canidate yourself. :)

    http://wordpress.org/support/topic/51324

  39. Seems to be working nicely. No live-preview of it though, but I think that’d require some remote-js (ehm, ajax).

  40. I’m thinking about adding this to my site - just testing out the quote feature.

  41. Yeah, I wouldn’t even know where to begin on that. :(

  42. Just testing

  43. mmm, :| is borked :s

  44. Looking at the source of your previous comment, you didn’t have the code to quote a comment there, i.e something like this:

    That’s why it didn’t work. You gotta tell my blog you wanna quote a comment. ;)

  45. Just testing comment quote.

  46. Trying again since it didn’t work before.

  47. Just double checking that there’s no problem with it not working if you’re not logged in or something and testing IE while I’m at it.

  48. Well crap. I just realized that I bet the script that makes sure that commenters don’t use non-allowed tags is stripping out the because technically it’s an HTML tag. :|

    Going back to the previous version for here on my site and off to fix that issue. :/

  49. Zhu8 on December 13th, 2005 at 2:19 AM wrote:

    Viper007Bond on December 12th, 2005 at 4:35 PM said:

    Well crap. I just realized that I bet the script that makes sure that commenters don’t use non-allowed tags is stripping out the because technically it’s an HTML tag. :|

    Going back to the previous version for here on my site and off to fix that issue. :/

    It’s a nicework!Thank U!

  50. nice plugin :)

  51. [Comment ID #438 Will Be Quoted Here]

    Should be working now! :D

  52. Yep, it works! :)

    Get release canidate #2 right here. :)

  53. [Comment ID #449 Will Be Quoted Here]

    Testing RC2, but disabling nested quotes in options doesn’t seem to be working for me.

  54. [Comment ID #451 Will Be Quoted Here]

    Toggling it a few times seems to have fixed it. No idea what happened. Maybe it was a fluke.

  55. [Comment ID #452 Will Be Quoted Here]

    Testing to see if my users can break this plug-in

  56. [Comment ID #492 Will Be Quoted Here]

    Test 2

  57. [Comment ID #493 Will Be Quoted Here]
    test 3

  58. This plugin should either only qoute the contents of the post qouted (minus any qoutes in the post), or have a limit on how deep the qouting can go. I am not a developer so I don’t know if this is possible.

  59. Already an option. You can toggle either doing what it’s doing here on my site (which is how I like it) or you can make it only go 1 deep, i.e. if someone quotes a comment and then you quote them, it won’t show the comment they quoted.

    And this reminds me, I should release this plugin as I haven’t heard or encountered any problems with the latest build.

  60. [Comment ID #216 Will Be Quoted Here]

    quote

  61. I don’t get it to work. My Theme looks like this:
    click here!
    ( in this code, i already tried it, but so, there is nothing to see in comment section)
    I want it to be displayed like here on this page, on each comment a little link with “quote it” …
    please help, thank you very much for this great plugin ;)

  62. A new version of this plugin is coming out soon, so hang tight for that. It’s a lot better. ;)

  63. when do you think, it’s coming? :) but plz look at my code, perhaps you find my fault … i thought, i have done all the right way :/

  64. Hard to tell without a link to your blog, but as it should say below, these comments are not the place for plugin support. I have forums for a reason.

    Anyway, within the week hopefully, please just be patient.

  65. [Comment ID #505 Will Be Quoted Here]

    response :)

  66. Yay! Version 2.0 released! :D

  67. [Comment ID #529 Will Be Quoted Here]

    Nested quotes is a configuration option, one which I currently have enabled, if you were wondering that is. ;)

  68. [Comment ID #217 Will Be Quoted Here]

    Test ..
    Btw .. Thanks for such a nice plugin .. :)

  69. fantastic! thanks for the nifty plug in - very simple to install and easy to use!

  70. Hrm…this was looking like what I wanted for WP 2.0 until I saw that users can’t edit quoted comments. I know I like to quote specific parts of long comments and I imagine there are people like me out there. Sure would like to see that as an option. Now that would just rock! :)

  71. Use version 1.11. It’ll do what you want - it does direct quoting and just inserts the contents of the comment to be quoted into the reply box.

    The disadvantage of that is that you can’t change the byline later on, editing comments is not always a good thing, and some people were having issues with it working right (dunno why).

  72. [Comment ID #428 Will Be Quoted Here]
    Auch von mir nur ein Test, Müller.

  73. Robin on January 17th, 2006 at 3:00 AM wrote:

    Test

    dus

  74. [Comment ID #580 Will Be Quoted Here]

    hahaha

  75. D’oh, that didn’t occur to me (quoting a comment within itself). Coding a bugfix now. Thanks for pointing that out. :)

  76. Thanks for fixing it, you know i like it

    and now another bug is that this plugin is not getting on well with the plugin Recent Comments. It shows “Comment ID #[number] Will Be Quoted Here”

  77. Well, I’m not actually done fixing it. I want it to display an error message, but I can’t get it quite working how I want it to, so I’ve put it off for a few days and worked on other stuff instead.

    As for the Recent Comments plugin, it sounds like that plugin just pulls the comments directly from the database and then displays them without applying the needed filters.

    My plugin works by creating a WordPress filter for the comment contents. When the comments get displayed, WordPress gives the comment content to my plugin and my plugin returns some modified content.

    So, it’s an issue with their plugin, not mine. Contact the author of it and make sure that they are applying the comment filter to their output.

  78. hmmm… I know how your plugin works now, and have you try another way? it’s just quoting in a forum, such as IPB. the original texts are quoted directly. I think this way is better than creating filters for the comment contents, but i don’t know if it could realize.

  79. Yeah, that’s how version 1 worked. You can download it above.

    However, combining the two is a really good idea. Something like this:

    Viper007Bond on January 23rd, 2006 at 3:24 PM wrote:

    [quote id="352"]Some text here that will be displayed. Obviously can be editable. The ID is for creating the byline and a link back to the old comment.[/quote]

  80. yes, I think both are good, but I prefer the older one, and one of my friend thought that the older way is better, and I think you can just combine them in your way, or just add a switch to chang methods in opition page :D