Page 1 of 8

[CDB] Modern quote - multiquote and quote highlighted text

Posted: Tue Apr 10, 2018 9:32 am
by Ger
Extension Name: Modern quote
Author: Ger

Extension Description:
This extension enables you to highlight (select) parts of posts and quote only that highlighted part. It works similar to the quoting function in the topic review when you are on the posting page.
Once you have selected a part of a post, a floating quote button appears near your cursor. Clicking that new button does the magic. When quick reply is enabled, the quote BBcode is inserted in the QR textarea. Otherwise, you'll be taken to the posting.php page just like with hitting the regular quote button but with only the highlighted part of the post.

A second feature is multi-quoting. You can tick a new multiquote button on each post. When you have selected one or more posts to quote, a floating quote button appears in the bottom right corner. Clicking that button takes you to the posting screen as with regular quoting but now you have multiple posts quoted in your message textarea.

Extension Version: 1.0.0

Extension Download: https://github.com/GerB/modernquote

Requirements:
No special requirements

Translations:
Dutch and English included.

Screenshots:
(note: these may change later on)

Image
Quote highlighted text


Image
Multiquote option

Re: [3.2][ALPHA] Modern quote - quote highlighted text

Posted: Tue Apr 10, 2018 9:31 pm
by John connor
I'll give this version a shot and let you know how it goes.

Re: [3.2][ALPHA] Modern quote - quote highlighted text

Posted: Tue Apr 10, 2018 9:45 pm
by John connor
Okay, so this time the quote bottom is way at the bottom. If you can discover some type of code the places the quote button near the quoted text it would be a very good thing to do. I haven't tried this with a smartphone yet.

Re: [3.2][ALPHA] Modern quote - quote highlighted text

Posted: Wed Apr 11, 2018 3:40 am
by potku
*Subscribed*

Re: [3.2][ALPHA] Modern quote - quote highlighted text

Posted: Wed Apr 11, 2018 7:01 am
by Ger
John connor wrote:
Tue Apr 10, 2018 9:45 pm
Okay, so this time the quote bottom is way at the bottom. If you can discover some type of code the places the quote button near the quoted text it would be a very good thing to do. I haven't tried this with a smartphone yet.
Seems it wasn't possible with CSS only, so I've implemented a JS solution. How's this for you?

PS: I've noticed a limitation of ±2000 characters when quoting selected text without the QR function. I need to look into this.

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Wed Apr 11, 2018 9:33 am
by Ger
A new feature has landed: multiquote. See TS for details. :)

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Wed Apr 11, 2018 9:50 am
by potku
So, it gets better and better. I am closely following the development of this EXT. :)

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Wed Apr 11, 2018 12:17 pm
by John connor
I'm in the middle of changing domains. So once I get that all sorted out I'll try this new version.

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Wed Apr 11, 2018 1:12 pm
by eunaumtenhoid
NICE WORK ty, have screenshots??

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Wed Apr 11, 2018 1:47 pm
by Ger
eunaumtenhoid wrote:
Wed Apr 11, 2018 1:12 pm
NICE WORK ty, have screenshots??
I've added some to the TS, but these will probably change during development

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Wed Apr 11, 2018 3:29 pm
by </Solidjeuh>
This ext is very nice! definitely gonna use it when it's out of the "Alpha" status. :geek:

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Thu Apr 12, 2018 2:18 pm
by remoss
Very nice, Ger!

A thing: when quoting a part of a post, the username is empty!

Is there something planned for permissions? So only admins or moderators can use it? I use a extension "No quote last post" to stop users to quote the last post (i hate that :) ) but with your extension it's possible again.

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Thu Apr 12, 2018 3:01 pm
by Ger
remoss wrote:
Thu Apr 12, 2018 2:18 pm
A thing: when quoting a part of a post, the username is empty!
Is it? Haven't noticed that. Is that with de quick reply enabled, or with the full editor?
remoss wrote:
Thu Apr 12, 2018 2:18 pm
Is there something planned for permissions? So only admins or moderators can use it? I use a extension "No quote last post" to stop users to quote the last post (i hate that :) ) but with your extension it's possible again.
It simply follows the quoting enabled/disabled from the template.

I assume you use this version? Seems unvalidated and after taking a quick glance at the code it doesn't surprise me.

That extension doesn't force anything, just hassles the template a bit. Since I'm adding code to the same event in my extension those might conflict.

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Thu Apr 12, 2018 3:15 pm
by remoss
Ger wrote:
Thu Apr 12, 2018 3:01 pm
Is it? Haven't noticed that. Is that with de quick reply enabled, or with the full editor?
On both:No only on quick reply
Image
Ger wrote:
Thu Apr 12, 2018 3:01 pm
It simply follows the quoting enabled/disabled from the template.

I assume you use this version? Seems unvalidated and after taking a quick glance at the code it doesn't surprise me.

That extension doesn't force anything, just hassles the template a bit. Since I'm adding code to the same event in my extension those might conflict.
Yep, that's the one. Well it's not really a conflict, i just have to find another way to disable quoting of the last post.

Re: [3.2][ALPHA] Modern quote - multiquote and quote highlighted text

Posted: Thu Apr 12, 2018 3:24 pm
by remoss
Sorry Ger, my mistake, it's only on quick reply. If that's switched of the author is in the quote.