Deactivate Quick Reply?

Started by Geronimo_CH, March 02, 2022, 05:54:02 AM

Previous topic - Next topic

Geronimo_CH

Since my forum is mostly read only in the sense that the user just read the board entries and only seldom reply, is there in the configuration a way to deactivate the 'Quick Reply' if you click on a board entry?

Thanks for your answers
Geronimo

Illori

I believe if you cannot reply you don't see the quick reply at all.

Geronimo_CH

Hi Illori

Thanks for your answer but that does not solve my problem because the forum user must be (and are) able to anwer to a post but mostly dont because there is no need to do so. It is perfectly acceptable that they have to click 'Reply' to post an answer.

Geronimo

Arantor

There is no option for it, there used to be but it confused enough users that it was removed years ago early in 2.1's dev time.
Holder of controversial views, all of which my own.


Sir Osis of Liver

You can edit out function template_quickreply() in Display.template.php (down at the bottom).  Doesn't appear to break anything.
When in Emor, do as the Snamors.
                              - D. Lister

Arantor

Other than pressing the quote button which may or may not work properly afterwards depending on your browser.
Holder of controversial views, all of which my own.


Sir Osis of Liver

Works in FF, goes to reply editor.  Why is it browser dependent?
When in Emor, do as the Snamors.
                              - D. Lister

marcosbr

Do you feel superior?
Above is a slab and below is darkness. It's fire brother!
https://amigosdaeletronica.com.br

Arantor

Quote from: Sir Osis of Liver on March 02, 2022, 11:25:58 AMWorks in FF, goes to reply editor.  Why is it browser dependent?


Because ripping out the editor the way you propose breaks the JavaScript for the quote button. Different browsers handle that failure state differently.
Holder of controversial views, all of which my own.


Sir Osis of Liver

How about this?


/* Styles for the quick reply area. */
#quickreply {
clear: both;
display: none;
}


When in Emor, do as the Snamors.
                              - D. Lister

Arantor

That just screws up quoting entirely because that way it will always be sent to the quick reply box - even though it's not visible.
Holder of controversial views, all of which my own.


Geronimo_CH

I just commented out 'template_quickreply();' in Display.template.php as Sir Osis of Liver proposed. With this the quick reply is not displayed. Clicking on 'reply' works fine including Quote (at least in my context). So for me the problem is solved.

Thanks for your help anyway
Geronimo

Arantor

I hope no one clicks the quote button on each post though... that won't behave properly (depends on your browser as to how it will misbehave)
Holder of controversial views, all of which my own.


Kindred

and, as we discovered in a different thread, removing the quick reply also seems to break the quick edit
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

#14
Not to be rude ( ;) ), but this is another in the short (but getting longer) list of useful 2.0 features that were removed from 2.1 for no apparent reason.
When in Emor, do as the Snamors.
                              - D. Lister

Illori

just because you may not agree does not mean there is no apparent reason. there are always reasons and they were made and we are not going back.

Mick.


Sir Osis of Liver

Well, no, Arantor objects to that because it screws up quote in some browsers.  Works for me in FF, and apparently also for OP.
When in Emor, do as the Snamors.
                              - D. Lister

Sir Osis of Liver

Quote from: Arantor on March 03, 2022, 07:08:59 AMI hope no one clicks the quote button on each post though... that won't behave properly (depends on your browser as to how it will misbehave)

Quote from: Kindred on March 03, 2022, 07:50:00 AMand, as we discovered in a different thread, removing the quick reply also seems to break the quick edit

Well, since we've been told how not to do it, is there a correct way to remove quick reply?

And I've just noticed that on this forum quote is sent to reply editor, not quick reply.  n/m, that happens only when js is disabled in browser.  (I'm somewhat past multi-tasking. :( )
When in Emor, do as the Snamors.
                              - D. Lister

Wellwisher

Bookmarked for future ref. Thanks.

Advertisement: