WordPress plugins » Quoter

Questa pagina in italiano

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

  1. 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;
  2. activate Quoter from Admin Panel » Manage Plugins;
  3. optional: customize from Quoter submenu in Admin Panel » Options;
  4. 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 commentmetadata section.

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:

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 insertatcursor function
  • 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
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.

Share and enjoy

del.icio.us:Quoter digg:Quoter spurl:Quoter wists:Quoter simpy:Quoter newsvine:Quoter blinklist:Quoter furl:Quoter reddit:Quoter fark:Quoter blogmarks:Quoter Y!:Quoter smarking:Quoter

452 commenti per "Quoter"

Scrivi un commento | Trackback

  1. Test: quote me!

  2. ror wrote:

    Test: quote me!

    ok

  3. Gravatar
    OldGeezer

    Test: quote me!

    Quote of a quote?

  4. […]   Quoter,用于恢复中引用他人留言。 quoter 引用 […]

  5. Blogging Pro China » Blog Archive » WordPress Plugin: Quoter wrote:

    […]   Quoter,用于恢复中引用他人留言。 quoter 引用 […]

    Inoltre è possibile quotare qualsiasi porzione di testo di una pagina, anche non un commento, selezionandola con il mouse e cliccando sul link “Quota testo selezionato”. Questa caratteristica funziona solo con Javascript.

    Just a test

  6. Gravatar
    Alcatraz

    Quoter allows site users to quote one or more comments, in a similar way to forums. The quoted comment is pasted inside the comment form textarea, wrapped in tags that, once submitted, are replaced by preceded by quoted comment information (author, date…).

    It’s also possible to quote any part of a page’s text, not only a comment, by selecting it and clicking the “Quote selected text” link. This feature only works if Javascript is enabled.

    This plugin is totally configurable via Admin Panel, no particular PHP knowledge required. It requires WordPress 2.0 or higher, it’s not guaranteed to work correctly under older versions.

    more details and a readme should be given with download file.
    also if we can use regular bb codes

    does this work ??it was working for me ..huh ! i had installed BB codes plugin also .

    Regards,
    Alcatraz

  7. Quote of a quote?

    Looks like it. :)

  8. Will wrote:

    Looks like it. :)

    um

  9. Alcatraz wrote:

    more details and a readme should be given with download file.

    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:

    also if we can use regular bb codes

    I think there are no conflicts with bbcode plugins, but i’m not sure, i’ll investigate on that.

  10. Sparanoid wrote:

    .

    test, i hope it works well

  11. […] 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. […]

  12. couldn’t see comments

  13. garconcn wrote:

    couldn’t see comments

    What do you mean exactly?

  14. Gravatar
    tes

    garconcn wrote:

    couldn’t see comments

    prova quote

  15. […] Aggiunto il plugin Quoter. […]

  16. 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 tag in the comment form.

    Cool.

  17. Gravatar
    Johannes

    SteveAgl wrote:

    Just a test

  18. Gravatar
    Johannes
  19. Gravatar
    text browser

    Sparanoid wrote:

    test, i hope it works well

    testing with Lynx… works :)

  20. 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?

  21. chasmyn wrote:

    When I try to activate the plugin, I get this error message:

    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.

  22. 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.

    Test

  23. chasmyn wrote:

    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?

    Test

  24. […] - La possibilità di quotare i commenti precedenti […]

  25. Gravatar
    Zenovan

    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.

  26. Zenovan wrote:

    Can you help me to integrate Quoter with Brians Threaded Comments 1.5.

    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 :)

  27. Gravatar
    Laarni

    neat but i could not quote a lot of comments in one post.

  28. Laarni wrote:

    neat but i could not quote a lot of comments in one post.

    This kind of messages is totally useless. Please provide more info so i can understand the problem.

  29. really great plugin, but can i manage quote style?

  30. jurc wrote:

    can i manage quote style?

    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.

  31. ror wrote:

    Absolutely. Add your desired style to .commentlist blockquote.

    Perfect! Thanks for great plugin! :thumbup:

  32. 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.

  33. 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.

  34. Gravatar
    tester

    Andreas wrote:

    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.

    this is a blockquote between quotes

    ror wrote:

    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.

    this is a blockquote between quotes

    Andreas wrote:

    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.

    ror wrote:

    That would be great, Andreas!

    Andreas wrote:

    This is way cool!

    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.

    this is a blockquote after nested quotes

  35. Working on nested quotes… ;)

  36. 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 :)

  37. Gravatar
    Zenovan

    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):

    The Quoter plugin needs to be modified to use the TinyMCE or FCKeditor commands to insert text to the editing area. Due to the way they work, the textarea is replaced with an editable iframe, so making changes to the replaced textarea has no affect.

  38. Thanks for letting me know, Zenovan.

    I’ll make Quoter compatible with WYSIWYG soon (shouldn’t be difficult).

  39. Gravatar
    Bob

    ror wrote:

    Thanks for letting me know, Zenovan.

    I’ll make Quoter compatible with WYSIWYG soon (shouldn’t be difficult).

    Nice

  40. Gravatar
    Bob

    Bob wrote:

    ror wrote:

    Thanks for letting me know, Zenovan.

    I’ll make Quoter compatible with WYSIWYG soon (shouldn’t be difficult).

    Nice

    ror wrote:

    Thanks for letting me know, Zenovan.

    I’ll make Quoter compatible with WYSIWYG soon (shouldn’t be difficult).

  41. Gravatar
    Laura

    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.

  42. Laura wrote:

    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?

    That solution was for a different problem, solved in 1.0.3.

    Laura wrote:

    By the way, I’m using Wordpress 1.5.x.

    Quoter requires WP 2.0+ to work. Newer WP versions also fix several security issues, so it is highly recommended to upgrade.

  43. Gravatar
    Laura

    ror wrote:

    Laura wrote:

    By the way, I’m using Wordpress 1.5.x.

    Quoter requires WP 2.0+ to work. Newer WP versions also fix several security issues, so it is highly recommended to upgrade.

    OK, thank you. I was planning on upgrading soon anyways.

  44. Gravatar
    fdsaff

    Laura wrote:

    ror wrote:

    Laura wrote:

    By the way, I’m using Wordpress 1.5.x.

    Quoter requires WP 2.0+ to work. Newer WP versions also fix several security issues, so it is highly recommended to upgrade.

    OK, thank you. I was planning on upgrading soon anyways.

    testw
    :eek:

  45. Gravatar
    test

    planning on upgrading soon anywa

    By the way, I’m using Wordpress 1.5.x.

  46. Gravatar
    bob

    ror wrote:

    Test: quote me!

    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 su

    very cool!

  47. 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

    and then the quote. this is exactly what i’ve told my recent comments to do, however, with this plug, it ends up showing the quote of the other person before cutting off, instead of the actual response to the quote.

    i know very little about coding, but do ok deciphering somewhat… (writing code would be WAY over my head). i was wondering if you had any suggestions as to how i can fix this without having to change the way my recent comments display (such as yours on your sidebar). i enjoy the excerpt.

    hey, i just noticed your comment preview. how cool is that? is that in plug form? awesome.

    many thanks.

  48. 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.

  49. 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:

    hey, i just noticed your comment preview. how cool is that? is that in plug form?

    Yes: Live Comment Preview (I should modify it to make it display the quotes correctly, I know… ;) ).

  50. 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, preferably in the comment form, near the textarea. It’s totally independent from the other two functions.

    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.

  51. 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_excerpt

    hopefully, this is what you need? let me know if you need anything else. thanks!!

  52. dang. i put it inside tags, but it didn’t work. ugh. i’ll try again.

  53. 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. :-P

  54. you have GOT to be kidding me. it previewed correctly and everything! ok trying email now. :wallbash:

  55. neuromancer wrote:

    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, preferably in the comment form, near the textarea. It’s totally independent from the other two functions.

    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.

    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

  56. 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.

  57. Pink: I didn’t need the code since it is a plugin :-D

    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 :)

  58. 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?

  59. neuromancer wrote:

    Thanks rar!

    :wacko:

    neuromancer wrote:

    ummm what editor should I set it to use for comments for the time being?

    what is this editor that you are using here?

    I don’t use an editor - the one you see here is just the HTML textarea that WP uses by default.

  60. OldGeezer wrote:

    Test: quote me!

    Quote of a quote?

    And then some!

  61. And then some!

    yipes

  62. 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.