WordPress plugins » Quoter
Overview
Quoter allows users to quote a comment or a post in their comments, in a similar way to forums.
Comments can be quoted by clicking a link which pastes them (real-time with Javascript, or, if it is disabled, refreshing the page) in the comment form. Once the comment is submitted, the quoted part is preceded by customizabile infos (author, date, URI…).
It’s also possible to quote a post or any other part of text in a page, by selecting it and clicking a link.
You can try it out in the comments section in this page. The plugin is totally customizable via Admin Panel. It requires WordPress 2.0 or higher, it’s not guaranteed to work correctly under older versions.
Usage
- download the file, decompress it and copy it into WordPress plugins folder (
wp-content/plugins/). If you have downloaded a localization file, decompress and copy it into the same folder; - activate Quoter from Admin Panel » Manage Plugins;
- optional: customize from Quoter submenu in Admin Panel » Options;
- add Quoter functions in the file comments.php of your theme.
The three functions that you have to add are the following:
-
quoter_comment() -
Generates the link to be clicked to quote a comment. It must be inserted in the comments loop, for example in the
commentmetadatasection.Example:
(already existing code is grayed and is from WordPress default theme; the code to add is in black)<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php if (function_exists('quoter_comment')) { quoter_comment(); } ?> <?php edit_comment_link('e','',''); ?></small>
-
quoter_comment_server() -
Generates quoted text inside the comment textarea for users that don’t have Javascript enabled. It’s dependant from
quoter_comment(). It must be inserted inside the<textarea></textarea>tag in the comment form.Example:
(already existing code is grayed and is from WordPress default theme; the code to add is in black)<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"><?php if (function_exists('quoter_comment_server')) { quoter_comment_server(); } ?></textarea></p>
-
quoter_page() -
Generates a link that allows users to quote any text in a page, not only a comment. It can be inserted in any part of the file (outside the loop), preferably in the comment form, near the textarea. It’s totally independent from the other two functions.
Example:
<?php if (function_exists('quoter_page')) { quoter_page(); } ?>
Localization
The plugin is localized in the following languages:
- English v1.1 included in the plugin
- Italian v1.1 included in the plugin
- Hungarian v.1.1 by Kobak
- Portuguese v.1.0.3 by Nuno Neves
Tutorials
Version history
- 1.1 (3/2/2006)
-
- Comments now can be nested
- Improvements to the javascript code. Now it has perfect cursor positioning thanks to Alex King’s
insertatcursorfunction - Changed quote tag format:
[quote="comment-#"]is now[quote comment="#"], and[quote="post-#"]is now[quote post="#"]. This will allow more attributes to be added in the future - Better nice url handling
- Many code optimizations
- 1.0.3 (2/15/2006)
-
- Fixed a localization issue
- 1.0.2 (2/12/2006)
-
- Added replacement tag:
%id% - Fixed output of quote link title
- Added replacement tag:
- 1.0.1 (2/8/2006)
-
- Added localization: english and italian
- Classes now have more appropriate names
- Added
rel="nofollow"to quote links
- 1.0 (2/6/2006)
-
- Initial release
Known limitations and bugs
Quotes cannot be nested, because of the WordPress automatic tag nesting system. In other words, a quote cannot be quoted.Added in version 1.1.In Internet Explorer, after a comment is quoted, the cursor inside the textarea is positioned before and not after the quote.Fixed in version 1.1.
Support
Use comments to try out the plugin, ask for help, report bugs, or other feedback.













2006-02-06 7.47 am | Quote
Test: quote me!
2006-02-06 7.48 am | Quote
ror wrote:
ok
2006-02-06 8.53 pm | Quote
Quote of a quote?
2006-02-07 6.22 am | Quote
[…] Quoter,用于恢复中引用他人留言。 quoter 引用 […]
2006-02-07 7.04 pm | Quote
Blogging Pro China » Blog Archive » WordPress Plugin: Quoter wrote:
Just a test
2006-02-07 10.27 pm | Quote
more details and a readme should be given with download file.
also if we can use regular bb codes
Regards,
Alcatraz
2006-02-07 11.57 pm | Quote
Looks like it.
2006-02-07 11.58 pm | Quote
Will wrote:
um
2006-02-08 3.28 am | Quote
Alcatraz wrote:
More detailed infos are planned, though i believe that the Options are already pretty self-explanatory.
A readme? Hmm, maybe that would be a bit renundant, since there’s already this page for instructions and such.
Alcatraz wrote:
I think there are no conflicts with bbcode plugins, but i’m not sure, i’ll investigate on that.
2006-02-08 11.08 am | Quote
Sparanoid wrote:
test, i hope it works well
2006-02-08 1.10 pm | Quote
[…] Quoter è un plugin per WordPress sviluppato da un italiano e aggiunge un link ai commenti che permette agli utenti di quotarli, in modo simile ad un forum. Le citazioni vengono precedute da informazioni sul commento originale (autore, data, URI…). È anche possibile quotare altre parti di testo (dell’articolo, ad esempio) attraverso una funzione aggiuntiva. […]
2006-02-08 6.12 pm | Quote
[…] http://www.damagedgoods.it/wp-plugins/quoter/ […]
2006-02-08 9.18 pm | Quote
couldn’t see comments
2006-02-08 10.54 pm | Quote
garconcn wrote:
What do you mean exactly?
2006-02-09 2.20 am | Quote
garconcn wrote:
prova quote
2006-02-09 8.24 pm | Quote
[…] Aggiunto il plugin Quoter. […]
2006-02-10 1.35 am | Quote
Cool.
2006-02-11 1.41 am | Quote
SteveAgl wrote:
2006-02-11 1.42 am | Quote
RyeBrye wrote:
2006-02-13 5.15 pm | Quote
Sparanoid wrote:
testing with Lynx… works
2006-02-13 7.57 pm | Quote
When I try to activate the plugin, I get this error message: Fatal error: Cannot instantiate non-existent class: cachedfilereader in /home/.wackywasherkiln/jkv_spt/purplegoddessinfrogpyjamas.net/kierquin/wp-includes/wp-l10n.php on line 67
Did I edit the comments.php incorrectly?
2006-02-13 9.26 pm | Quote
chasmyn wrote:
There seems to be an issue with localization. Try one of these operations:
1) delete “lang” folder in wp-plugins/quoter/
or (preferred)
2) make sure you have set your blog’s default language in wp-config.php. EG:
define ('WPLANG', 'en_US');I tried the second one and it did the trick. Please let me know if the error stops appearing, and thanks for the feedback. I’ll fix this in the next release.
2006-02-13 10.56 pm | Quote
Test
2006-02-13 10.57 pm | Quote
chasmyn wrote:
Test
2006-02-14 12.06 am | Quote
[…] - La possibilità di quotare i commenti precedenti […]
2006-02-15 9.07 pm | Quote
Can you help me to integrate Quoter with Brians Threaded Comments 1.5. It supplys own comments.php that’s too different from the original WP theme, and I’m not so familiar with PHP, so can’t figure out where to put your functions.
2006-02-16 3.56 am | Quote
Zenovan wrote:
I looked at the code of BTC (nice plugin, by the way) and I decided to write a detailed explaination on how to make it work together with Quoter. You can find it in the newborn tutorials section
2006-02-18 10.15 am | Quote
neat but i could not quote a lot of comments in one post.
2006-02-18 10.33 am | Quote
Laarni wrote:
This kind of messages is totally useless. Please provide more info so i can understand the problem.
2006-02-18 5.39 pm | Quote
really great plugin, but can i manage quote style?
2006-02-18 6.11 pm | Quote
jurc wrote:
Absolutely. Add your desired style to
.commentlist blockquote. For example, here’s how i styled mine:.commentlist blockquote {background: #fff url("images/blockquote.gif") no-repeat left top;
border: 1px solid #ebebeb;
margin: 5px;
padding: 5px;
display: block;
font-size: .9em;
}
There’s no specific class for quotes, what has to be styled (as in the example above) are all blockquotes in the comment list.
2006-02-20 11.09 am | Quote
ror wrote:
Perfect! Thanks for great plugin!
2006-02-22 9.36 pm | Quote
This is way cool!
Let me know if you’re interested in a German localization, cause I’ll write one for my site anyways - I’ll send it to you - if you like.
2006-02-23 2.51 pm | Quote
That would be great, Andreas!
If you can wait a little while so that the german traslation is up to date, I’m about to release version 1.1 which will feature some changes and additions to the localization strings.
2006-02-24 9.34 pm | Quote
Andreas wrote:
ror wrote:
Andreas wrote:
ror wrote:
2006-02-25 11.41 am | Quote
Working on nested quotes…
2006-03-02 2.39 pm | Quote
Today I’ve released Quoter 1.1, with many new features as described in the version history. Feel free to test them here before downloading
2006-03-03 4.56 pm | Quote
Another integration problem:
Quoter didn’t work with EditorMonkey WYSIWYG plugin, which
replaces textarea with TinyMCE or FCKeditor.
That’s what says Jar Dasarp (author of EditorMonkey):
2006-03-06 3.32 pm | Quote
Thanks for letting me know, Zenovan.
I’ll make Quoter compatible with WYSIWYG soon (shouldn’t be difficult).
2006-03-14 4.34 am | Quote
ror wrote:
Nice
2006-03-14 4.36 am | Quote
Bob wrote:
ror wrote:
2006-03-21 1.22 pm | Quote
Hi, I’m trying to use your plugin for my weblog, and I keep getting the following error:
Fatal error: Call to undefined function: get_comment() in /home/lusty/public_html/log/wp-content/plugins/quoter/quoter.php on line 246
I’ve edited wp-config.php like you said to above, but that didn’t help; I also tried the other possible solution you posted about–didn’t work. Help?
By the way, I’m using Wordpress 1.5.x.
2006-03-21 2.40 pm | Quote
Laura wrote:
That solution was for a different problem, solved in 1.0.3.
Laura wrote:
Quoter requires WP 2.0+ to work. Newer WP versions also fix several security issues, so it is highly recommended to upgrade.
2006-03-21 4.42 pm | Quote
ror wrote:
OK, thank you. I was planning on upgrading soon anyways.
2006-03-25 10.27 am | Quote
Laura wrote:
testw
2006-03-25 1.19 pm | Quote
2006-03-29 10.55 pm | Quote
ror wrote:
very cool!
2006-04-06 8.38 pm | Quote
i’ve been testing your plug today and it is a really cool feature. i have a question. currently on my site, i have an excerpt of the actual comment on my sidebar under “peanut gallery” (recent comments). quoter puts
2006-04-06 8.41 pm | Quote
well, it is obvious my limitation on code… ha. in my above comment…
“quote puts…”
this is what i had [ quote comment = ” # ” ]
duh. i put actual code in there. ugh. thanks.
2006-04-07 1.46 am | Quote
pink: I can fix it for you, i only need to know either 1) what plugin you use to display recent comments, if any; or 2) the code used to display the comment excerpts (you can email it to me, or post it here - just remember to write it inside the <code></code> tags
), so i can tell you where to put one (or few) line(s) of code which’ll remove the quote stuff from the excerpts.
pink wrote:
Yes: Live Comment Preview (I should modify it to make it display the quotes correctly, I know…
).
2006-04-07 2.18 am | Quote
This plugin is great!! is there some sort of Javascript I need to include on my site to make this “quoter page” part work??
I am new to wordpress but learning quickly.
2006-04-07 4.32 am | Quote
ror, i’m using the Get Recent Comments Plug… here is the code:
peanut gallery
getExpander().add(’comments’);
*note that i use “peanut gallery” instead of “comments”. additionally, here is the Recent Comment Template Options (thru the admin panel):
%comment_author: %comment_excerpthopefully, this is what you need? let me know if you need anything else. thanks!!
2006-04-07 4.34 am | Quote
dang. i put it inside
tags, but it didn’t work. ugh. i’ll try again.2006-04-07 4.41 am | Quote
get recent comments plug:
peanut gallery
getExpander().add(’comments’);
admin panel options/template:
%comment_author: %comment_excerpt
ha! i added a few spaces in front of the codes. gotcha.
2006-04-07 4.42 am | Quote
you have GOT to be kidding me. it previewed correctly and everything! ok trying email now.
2006-04-07 1.30 pm | Quote
neuromancer wrote:
please take a look at one of the entries on my site and try the “quote selected text” button and tell me what I can do to get that part working.
thanks
2006-04-07 3.25 pm | Quote
Neuromancer: you’re using a WYSIWYG editor for comments, which isn’t compatible with Quoter at the moment. Hopefully it’ll be soon, I’m working on it.
2006-04-07 4.33 pm | Quote
Pink: I didn’t need the code since it is a plugin
Anyway, I wrote a new tutorial which explains all you need to do. It should be quite easy, but if you have any further problems don’t hesitate to let me know
2006-04-07 6.49 pm | Quote
Thanks rar!
ummm what editor should I set it to use for comments for the time being?
what is this editor that you are using here?
2006-04-09 7.25 pm | Quote
neuromancer wrote:
neuromancer wrote:
I don’t use an editor - the one you see here is just the HTML textarea that WP uses by default.
2006-04-12 2.39 pm | Quote
OldGeezer wrote:
And then some!
2006-04-12 8.32 pm | Quote
yipes
2006-04-23 4.43 pm | Quote
Is it possible to add an option to style the actual quoted text?
I’m trying to add a before/after blockquote tag to the quoted text itself, as that doesn’t appear to happen automatically.