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:
- Version 2.0 — Released on Jan. 2nd, 2006
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. ;)
- Version 1.11 — Released on Nov. 4th, 2005
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. :)



Use this comment to test on. Just click “Quote” to the lower-right.Ozh on October 4th, 2005 at 3:21 AM wrote:
Ah, nice one. I’ve meant to do this for a long time. Cool plugin.
Viper007Bond on October 4th, 2005 at 3:23 AM wrote:
Glad you like it. :)
[edit] D’oh, seems WordPress doesn’t like a
winter on October 4th, 2005 at 2:52 PM wrote:
sweet indeed, thanks viper :)
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. ;)
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
Shocker on October 12th, 2005 at 3:44 AM wrote:
Shocker on October 12th, 2005 at 3:44 AM wrote:
Testing testing.. Looks nice, thanks pal =)
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.
This doesn’t work?
if (function_exists('quote_comment')) {
');quote_comment('
}
I’d think it would.
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 "' . $byline . ':\n\n' . $commentcontent), ENT_QUOTES) . '</blockquote>\n\n\'">
' . $text . "";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. :)
Fix released. Sorry about that. :)
That’s it.. Awesome. :)
Thanks for tackling this and updating your spectacular plugin.
No problem. Thanks for pointing out the problem! :)
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('
Thanks again.
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.
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.
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?
nice idea, thanks!
Viper007Bond on November 14th, 2005 at 1:40 PM wrote:
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:
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:
Viper007Bond on November 14th, 2005 at 1:40 PM wrote:
So, if that option is enabled, any blockquotes that are inside the comment that’s being quoted get replaced with this:
[blockquote removed]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…
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.
Yeah, the only thing I changed is $text.
It only seems to do it if you try to quote a comment that already has a quote in it…
Viper007Bond on November 14th, 2005 at 7:34 PM wrote:
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'); ?>Nope, still not working…
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. :(Ensellitis on November 15th, 2005 at 3:46 AM wrote:
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.
Chess on November 18th, 2005 at 2:08 PM wrote:
This is a test
A new version of this is in the works to try and fix the above bug among other things.
That would be great! Thanks for letting me know, I will keep my ear to the ground.
babe on November 28th, 2005 at 7:46 PM wrote:
testing ur quote?
agados on November 29th, 2005 at 12:39 PM wrote:
probando
agados on November 30th, 2005 at 3:59 AM wrote:
Testing 1
agados on November 30th, 2005 at 3:59 AM wrote:
testing 2
If anyone has any ideas for the next version of this plugin, please reply to this thread in the WordPress support forums.
Testing new version of my plugin on my live blog. :)
Tease. :D
Feel free to grab the release canidate yourself. :)
http://wordpress.org/support/topic/51324
Seems to be working nicely. No live-preview of it though, but I think that’d require some remote-js (ehm, ajax).
I’m thinking about adding this to my site – just testing out the quote feature.
Yeah, I wouldn’t even know where to begin on that. :(
Just testing
mmm, :| is borked :s
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. ;)
Just testing comment quote.
Trying again since it didn’t work before.
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.
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. :/
Zhu8 on December 13th, 2005 at 2:19 AM wrote:
It’s a nicework!Thank U!
nice plugin :)
[Comment ID #438 Will Be Quoted Here]
Should be working now! :D
Yep, it works! :)
Get release canidate #2 right here. :)
[Comment ID #449 Will Be Quoted Here]
Testing RC2, but disabling nested quotes in options doesn’t seem to be working for me.
[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.
[Comment ID #452 Will Be Quoted Here]
Testing to see if my users can break this plug-in
[Comment ID #492 Will Be Quoted Here]
Test 2
[Comment ID #493 Will Be Quoted Here]
test 3
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.
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.
[Comment ID #216 Will Be Quoted Here]
quote
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 ;)
A new version of this plugin is coming out soon, so hang tight for that. It’s a lot better. ;)
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 :/
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.
[Comment ID #505 Will Be Quoted Here]
response :)
Yay! Version 2.0 released! :D
[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. ;)
[Comment ID #217 Will Be Quoted Here]
Test ..
Btw .. Thanks for such a nice plugin .. :)
fantastic! thanks for the nifty plug in – very simple to install and easy to use!
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! :)
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).
[Comment ID #428 Will Be Quoted Here]
Auch von mir nur ein Test, Müller.
Robin on January 17th, 2006 at 3:00 AM wrote:
dus
[Comment ID #580 Will Be Quoted Here]
hahaha
D’oh, that didn’t occur to me (quoting a comment within itself). Coding a bugfix now. Thanks for pointing that out. :)
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”
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.
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.
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:
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
[Comment ID #221 Will Be Quoted Here]
nice!
[Comment ID #218 Will Be Quoted Here]
testing!!!!!!!!!!!!
Oi, that’s not good. Another reason why I need to start working on v3.0.
[Comment ID #217 Will Be Quoted Here]
test
Thanks for the awesome plugin! Should make my visitors’ life a whole lot easier. I do have two questions:
1) I also use Mark Jaquith’s Subscribe To Comments plugin. When I receive an email notification that contains a quote, it shows up like this:
*********************
Comment:
{Comment ID #10 Will Be Quoted Here>}
This is an example of a nested comment!!!
*********************
Would it be possible to display the actual quote not the tag in the email notifications?
2) How do I change the color of the blockquote bar? What style is it?
Thanks – Eran
Mark’s plugin needs to run the comment contents through the plugin filters and not just grab it right from the database.
However, version 3 of my plugin is in the planning stages and it should be a lot better. It’ll operate like most forums do. ;)
[Comment ID #312 Will Be Quoted Here]
Just curious how the quoted block looks like.
[Comment ID #216 Will Be Quoted Here]
xx
Nice! Just what I was looking for!
[Comment ID #824 Will Be Quoted Here]
ahoj Jenom to zkouÅ¡ÃÂÂm jak to bude vypadat
[Comment ID #216 Will Be Quoted Here]
GREAT plugin. Very useful for a thread I have going on a blog entry with over 1700 comments in it. Thx
Wow, that’s quite a few comments! :o
will there be a way to alter quoted comments contents within the comment form in future plugin versions?
Just sometimes comments are long, and you just want to quote a short and relevant section of it.
it would be nice
also an option to make the persons gravatar appear in the quote, if they have one???!
Use v1.x of this plugin. It inserted the comment’s contents right into the comment form. ;)
And I doubt I’ll add in Gravatar support. I think quotes would get way too busy looking if there were inline gravatars. *shrugs*
wao…it’s pretty Good[code]echo"hi";[/code]
[Comment ID #217 Will Be Quoted Here]
just a …
[Comment ID #1054 Will Be Quoted Here]
…tiny test
I’m just curious, how’s 3.0 coming? I’m really looking forward to the forum-like quotes.
I haven’t started on it yet. I’ve been swamped with work and such.
If you’re looking for editable quotes, use version 1.x of this plugin. It has what you’re looking for. ;)
[Comment ID #1108 Will Be Quoted Here]
Ah, no problem. I’ve been busy lately also and have been falling behind on my own coding work. I’ll just keep on using 1.x until you have some free time. Anyway, thanks for creating this great plugin. :-)
No problem. :)
Anyway, any ideas on how should v3 should work? Something like this perhaps?
[code]
Viper007Bond on May 1st, 2006 at 12:47 AM wrote:
[/code]
And then replace that with a blockquote and a dynamic byline at the beginning or what?
Yeah, that would work fine. I can’t think of any downside to it.
The only one I can think of is that if you disable the plugin, you’ll see that code (which could be avoided by doing this:
[code]
Viper007Bond on May 2nd, 2006 at 5:04 PM wrote:
[/code]
Why not actually write the html to database? Make the quotes easy to edit from the comment form, but once they’re posted the actual HTML appears in the comment. That way email notification, etc will display the real code, and disabling the plugin won’t be a problem.
Not a bad idea, but you won’t be able to change the format of past quotes. Dunno if that’s a big deal or not though…
It wouldn’t be to me, but I don’t know how other people feel about that.
[Comment ID #218 Will Be Quoted Here]
Good plugin!
[Comment ID #1148 Will Be Quoted Here]
Testing….
[Comment ID #217 Will Be Quoted Here]
Just for testing purposes :P
[Comment ID #567 Will Be Quoted Here]
testing
[Comment ID #217 Will Be Quoted Here]
Just testing the plugins if it works. Thanks
[Comment ID #216 Will Be Quoted Here]
[Comment ID #1151 Will Be Quoted Here]
Great idea! Thanks for your work, dude.
Best,
Brian McLeod
Miami, Florida
LoudMac Pro Audio, Music & Mac Blog
[Comment ID #724 Will Be Quoted Here]
[Comment ID #1323 Will Be Quoted Here]
manual double quote
edit – doesn’t appear to work :(
[Comment ID #1323 Will Be Quoted Here]
You can’t quote a comment within itself. The quick and dirty hack I did seems to have screwed up quoting the other comments within your comment.
It’ll be much better handled in version 3, if I ever get around to coding it… :/
[Comment ID #1346 Will Be Quoted Here]
[Comment ID #1287 Will Be Quoted Here]
Yeah! That’s cool.
Eye boogie i like it a lot this little thing :D
thumps up M8
[Comment ID #216 Will Be Quoted Here]testing…
[Comment ID #437 Will Be Quoted Here]
Test…
[Comment ID #437 Will Be Quoted Here]
Test
[Comment ID #1488 Will Be Quoted Here]
Test on test! ;)
[Comment ID #217 Will Be Quoted Here]
nice thanks!!!
can someone tell me what goes wrong with my quote comment.
It keep refreshing to my front page. pls help.
[Comment ID #8777 Will Be Quoted Here]
It’s because you have this at the top of your page:
[html] [/html]
This makes all relative links start from that URL rather than the current URL. Either delete that line from your top of your HTML or edit my plugin. On line 295 (or so) is this:
[php] echo $beforelink . “
Replace that bit with this:
[php] echo $beforelink . “
That should make the “Quote” link a full URL rather than a relative one.
Thank you so much
Hi
great plugin! I was trying to find a threaded comments plugin but this is much easier to implement and read.
I have one quick question how do i change the quoteholder to just say ‘Quote will be placed here’ i.e ditch the comment id? On my blog my the comment number is displayed per post (e.g this is comment 166 on this post) – I think if I show the system comment_id which won’t match up ths might confuse people.
Thanks
Everton
[Comment ID #8808 Will Be Quoted Here]
Well, if the ID isn’t there, then how is my plugin supposed to know what comment to put there when the new comment gets displayed? ;)
And if you’re looking for a threaded comments plugin, check out this one. I hear it’s the best.
[Comment ID #8809 Will Be Quoted Here]
I understand that the plugin needs to know the real ID to display the quote- I just don’t wnat to display the ID number in the comment window i.e. I want
ok, after leaving my post I’ve realised that the plugin needs to actually see the text within the window. Oh well
Well, theoritically you could do like “The 116th Comment On This Post Will Be Here”, but that’s a lot less safe method (I mean, what if you delete a comment above it? or mark one as spam?).
Try v1 though – it doesn’t do dynamic replacement, it just inserts the comment’s contents right into the write box.
v3 will be a combination of that and a dynamic byline and such, assuming I ever get around to coding it. :(
Just testing
[Comment ID #8749 Will Be Quoted Here]
More Just testing
[Comment ID #8814 Will Be Quoted Here]
Really cool
Is there any possibility to quote just a snippet of one’s text?
[Comment ID #8865 Will Be Quoted Here]
Use v1.x of this plugin and then v3.x once I get around to making it. :)
[Comment ID #216 Will Be Quoted Here]
test..
[Comment ID #8814 Will Be Quoted Here]
neat
[Comment ID #217 Will Be Quoted Here]cannot use with ajax-comment
[Comment ID #216 Will Be Quoted Here]
Hello – nice thing you have here.
[Comment ID #9048 Will Be Quoted Here]
I’m not surprised. This plugin uses Javascript to insert text into the comment form’s textarea. If there’s other Javascript controlling that textarea, well then my plugin can’t do it’s job. ;)
This plugin is dead as I’ve found a much better plugin that’s very similiar to what version 3 of my plugin was going to be like. As a result, no more versions of my plugin will be released.
If you would like to continue using my plugin but need some help with it, then please use my support forums from now on. Thanks. :)