ElkArte Community

Extending Elk => Addons => Topic started by: Frenzie on April 05, 2016, 10:13:34 am

Title: [ADDON] Quick Quote
Post by: Frenzie on April 05, 2016, 10:13:34 am
You will love this script, even though it's a hackish port of my SMF quick quote script, which in turn is a never properly dusted off port from a once much better UserJS. The Quick Quote button allows you to select just some text in a reaction for quoting, as opposed to having to bother with editing your quotes later on. Detection of BBC is imperfect, especially at this early stage. Perhaps an entirely different approach is warranted, but carpe diem. Release early, release often, as the kids say.

You can always find the latest version on GitHub.
https://github.com/Frenzie/elk-quick-quote/releases
Title: Re: [ADDON] Quick Quote
Post by: meetdilip on April 06, 2016, 11:33:24 am
Nice add on.
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on April 07, 2016, 09:04:52 am
I fixed it up a bunch this afternoon so that more BB codes are properly detected.
Title: Re: [ADDON] Quick Quote
Post by: WolfGeeN on August 22, 2016, 10:25:33 am
Addon don't work with wysiwyg quick reply. Please help, how can to fix it.
Title: Re: [ADDON] Quick Quote
Post by: emanuele on August 22, 2016, 04:00:43 pm
Download the version at:
https://github.com/Frenzie/elk-quick-quote/archive/master.zip
Maybe, download it to your computer and then change its name to elk-quick-quote-dev.zip and finally upload it.

ETA: and don't forget o uninstall and delete the previous version. ;)
Title: Re: [ADDON] Quick Quote
Post by: WolfGeeN on August 23, 2016, 12:48:22 am
Works! Thank you very much,  for helping me!  ;D
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on August 27, 2016, 12:05:33 pm
I added a v0.3 tag to include that fix. I meant to add more fixes first but I guess I never got around to it. :)

Edit: oh drat, I forgot to update the version in the XML file though. Meh, later. xD
Title: Re: [ADDON] Quick Quote
Post by: emanuele on August 27, 2016, 12:13:27 pm
lol

/me knows the feeling. O:-)
Title: Re: [ADDON] Quick Quote
Post by: meetdilip on August 28, 2016, 03:57:03 pm
How are you @Frenzie ? Not seen much these days. I love you plugin ideas, you know ? :D
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on September 01, 2016, 11:53:59 am
I'm good, @meetdilip thanks. How about you? I'm busy with several things, including Important Life Decisions™ and summer. :) Bought a new mattress and some new curtains today.
Title: Re: [ADDON] Quick Quote
Post by: meetdilip on September 01, 2016, 01:01:19 pm
I am fine @Frenzie . Enjoy life :)
Title: Re: [ADDON] Quick Quote
Post by: radu81 on April 08, 2017, 04:22:49 pm
I forgot to mention I installed this addon a few months ago and I really love it, and also my users have appreciated this addon.

Congrats @Frenzie‍ and thanks for sharing this nice addon!
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on April 09, 2017, 05:40:23 am
You're welcome! :)
Title: Re: [ADDON] Quick Quote
Post by: radu81 on September 14, 2017, 05:18:16 am
I installed this addon version 0.3  using compatibility mode on 1.1 RC2 version, it installs without errors, but there is no Quick quote button.
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on September 14, 2017, 07:03:48 am
I ran into a hiccup while trying to upgrade from 1.1 RC1 to RC2.
QuotePlease be patient - this may take some time on large forums. The time elapsed increments from the server to show progress is being made!
Executing: "" (0 of )

Database Updates Complete! Click Continue to Proceed.
And continue is unclickable. Probably no surprise with the 0 of nothing. It's probably/hopefully just something messed up about my testing install, although I think that except installing beta 4 and upgrading it to rc1 while porting Stop Spammer to Elk I didn't really do much with it.

Anyway, the problem is about the hackish way the username is detected atm, which might also break across themes. I suppose I could patch that up quickly and say the new version is only compatible with 1.1.
Title: Re: [ADDON] Quick Quote
Post by: radu81 on September 14, 2017, 08:57:41 am
Quote from: Frenzie – I suppose I could patch that up quickly and say the new version is only compatible with 1.1.
No problem having two versions, one of 1.0 and one for 1.1 
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on September 14, 2017, 11:03:18 am
I think only two changes should suffice (and they might still work on 1.0, too):
Code: [Select]
var username = (quotebuttons[i].parentNode.parentNode.parentNode.parentNode.previousElementSibling.querySelector('.name').textContent).trim();

var time_unix = quotebutton.parentNode.parentNode.parentNode.parentNode.querySelector('time').getAttribute('data-timestamp');
(That is, an extra .parentNode.)

Could you give it a go?
Title: Re: [ADDON] Quick Quote
Post by: radu81 on September 15, 2017, 02:35:28 am
Thank you @Frenzie‍ , that seems to work fine. (only needs a CTRL+F5) 8)
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on September 15, 2017, 05:26:34 am
@radu81
Alright, I've pushed the update to GitHub (v0.4 download (https://github.com/Frenzie/elk-quick-quote/releases/tag/v0.4), changes (https://github.com/Frenzie/elk-quick-quote/commit/7ee8ded26dd0dc235e0865194d83e34d4f06a4a8)).
Title: Re: [ADDON] Quick Quote
Post by: forumovod on September 14, 2020, 01:35:23 am
Quote from: Frenzie – Alright, I've pushed the update to GitHub (v0.4 download (https://github.com/Frenzie/elk-quick-quote/releases/tag/v0.4), changes (https://github.com/Frenzie/elk-quick-quote/commit/7ee8ded26dd0dc235e0865194d83e34d4f06a4a8)).

Thank you for the addon.
Added Russian localization.
Title: Re: [ADDON] Quick Quote
Post by: forumovod on September 27, 2020, 10:27:36 pm
If the "Quick Reply" form is disabled, Quick Quote does not work.
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on January 29, 2021, 02:53:39 pm
Quote from: forumovod –
Quote from: Frenzie – Alright, I've pushed the update to GitHub (v0.4 download (https://github.com/Frenzie/elk-quick-quote/releases/tag/v0.4), changes (https://github.com/Frenzie/elk-quick-quote/commit/7ee8ded26dd0dc235e0865194d83e34d4f06a4a8)).

Thank you for the addon.
Added Russian localization.
Thanks! Sorry, I've been busy. :)
Title: Re: [ADDON] Quick Quote
Post by: forumovod on April 26, 2021, 11:43:40 am
Will there be an update of this addon for the version ElkArte 1.1.7
Title: Re: [ADDON] Quick Quote
Post by: radu81 on January 14, 2022, 02:39:12 am

Quote from: forumovod – Will there be an update of this addon for the version ElkArte 1.1.7
A bit late to reply, but the version 0.4 works fine with Elkarte 1.1.7 and 1.1.8
Title: Re: [ADDON] Quick Quote
Post by: augras on January 14, 2022, 01:24:41 pm
It works fine on Elkarte 1.1.8 : thank you for this addon, and thank you @radu81 to have made me know this addon.
The french translation for the button : Citer la sélection that means Quote selection (i find it's more understandable than Quick quote).
Title: Re: [ADDON] Quick Quote
Post by: ahrasis on March 19, 2022, 09:32:04 pm
Hope this will be added in 2.0 as a new feature.
Title: Re: [ADDON] Quick Quote
Post by: Spuds on March 20, 2022, 09:26:05 pm
/me makes a note
Title: Re: [ADDON] Quick Quote
Post by: Frenzie on March 21, 2022, 04:56:12 pm
I added the French and Russian translations and tagged a v0.5.0 (download (https://github.com/Frenzie/elk-quick-quote/releases/tag/v0.5.0)).