"Fast Quote" Plugin

What it does

Simply: it changes the behaviour of the Post Reply buttons (not Topic reply) to quote a Post automatically in a single click.

There are several settings to refine what is quoted and when. You can even specify nesting of quotes for that ‘old skool’ feel.

Because the automated quote is delivered to the Composer, you can refine it manually from there if you so wish (but that kind of defeats the ‘fast’ part :snail:).

It doesn’t change the behaviour of the bottom Topic Reply button, nor the Quoting tool.

Why

  • Some have felt the act of quoting takes too many clicks in the base install. This is more of an issue on touch devices.

  • “Auto-quoting” is particularly useful when the reply is to a post quite a way back. This plugin counts how far back the referenced post was and will automatically enter a quote if far enough back. This helps people understand context a bit quicker.

The plugin may be particularly attractive to those who are used to some of the ‘old skool’ forum platforms and is a matter of taste - if you like to see nested quotes you now can, but be aware of the consequences to space!

You don’t need it if

You are 100% happy with out-of-the-box Topic Post Reply behaviour. I am, but it’s great to have options, right?

Settings

fast_quote_enabled: “Enable the Fast Quote plugin.”

takes your forum back to party like it’s 1999 :partying_face: :musical_note: :wink:

fast_quote_post_location_threshold: “Number of posts back before fast quote enabled.”

Control how far back a post needs to be before the auto-quoting is actioned. Avoids unnecessary quotation of recent posts.

fast_quote_remove_links: “Remove all links (inc. pictures) from quotes”

Cleans things up and improves use of space

fast_quote_remove_prior_quotes: “Remove all prior (nested) quotes”

Enabled by default. Clear this setting for the ultimate nested old-skool experience. (Sorry Jeff! :wink: )

fast_quote_remove_contiguous_new_lines: “Remove unnecessary new lines”

New lines are over-rated.

fast_quote_character_limit: “Quote character limit (uses last x chars if total length is greater)”

Excerpts are pretty basic :slight_smile: Revert to Quote tool if you need a more targeted quote (which is not overridden by the plugin)

Known Limitations

The plugin is fairly simple in the way it handles the preparation of a quote. Some settings work better together than others and it’s up to the admin to determine what works for them. Some complexity is avoided, e.g. there is an excerpt character limit which can break words in half. Formatting is simplified as tags are removed to avoid the risk of truncating a tag and causing corruption - again this is to achieve simplicity. Quote processing relies heavily on regular expressions, not all of which are completely foolproof, but work ‘well enough’. These may be refined over the life of the plugin.

Repo here

My sponsor and the inspiration for this plugin

Please thank @Merlls_Rizzini for sponsoring this work. The functionality is a brain dump from both of us and is partially inspired by this post by @eesty.

All feedback welcome.

18 Likes

This is a thoughtful touch, would be better if it limited to first paragraph or (x) chars rather than full quoting a very long post.

5 Likes

Thanks, yes, I’ve implemented that in one of the settings (just updated the post to list those settings).

5 Likes

Thanks merefield for your work on this one!

@ChrisBeach check it out too.

3 Likes

Hello @merefield!

Thanks for working on this. Solves a problem I’ve been meaning to solve on my Discourse instance.

I’m having some trouble installing the plugin via git repository:


Wondering if you have any insight on how I might solve this.

Thanks again!

-CW

Hi Craig,

Great to hear,

Fast Quote is a Plugin not a Theme Component so you will need to install it by adding the plugin git clone to your app.yml in the usual place and then ./launcher rebuild app from the command prompt.

More info about installing plugins here: Install Plugins in Discourse

Is there any specific reason this is the case? Seems like it is making no changes at the API level?

2 Likes

Out of habit, partially, and insuring myself against any future functional changes that required plugin levels of override.

But fair point, it could be repackaged.

5 Likes

Any way you could restrict this to a category? This would be amazing to have for an AMA category, but otherwise I don’t see using it. Thanks merefield!

1 Like

Not currently David, I’m afraid.

1 Like