Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: cpf on February 13, 2020, 07:01:00 AM

Title: How can I disable Quick Reply
Post by: cpf on February 13, 2020, 07:01:00 AM
I'm having a hard time figuring out where to disable Quick Reply.  Where is this option?
Title: Re: How can I disable Quick Reply
Post by: live627 on February 13, 2020, 02:51:37 PM
That option has been removed, so you'll need to edit code

Find  in ./Themes/default/Display.template.php

// Show quickreply
if ($context['can_reply'])
template_quickreply();


To hide it from everyone

// Show quickreply
//if ($context['can_reply'])
///template_quickreply();


To hide it from a specific user

// Show quickreply
if ($context['can_reply'] && $context['user']['id'] == 1)
template_quickreply();
Title: Re: How can I disable Quick Reply
Post by: Sir Osis of Liver on February 13, 2020, 03:58:19 PM
Why was it removed?  Some of my guys want to show quick reply, some don't.  It's a useful option.
Title: Re: How can I disable Quick Reply
Post by: Illori on February 13, 2020, 04:03:27 PM
a good few options that are in 2.0 were removed in 2.1 to make it easier to support. this was one of them.
Title: Re: How can I disable Quick Reply
Post by: Sir Osis of Liver on February 13, 2020, 04:26:13 PM
Like sidebar menus. :(
Title: Re: How can I disable Quick Reply
Post by: live627 on February 13, 2020, 04:53:09 PM
[clicks like]
Title: Re: How can I disable Quick Reply
Post by: Shambles on February 13, 2020, 06:09:13 PM
Quote from: Illori
a good few options that are in 2.0 were removed ...

You mean "a few good options"
Title: Re: How can I disable Quick Reply
Post by: marcosbr on February 13, 2020, 06:25:50 PM
 "You mean "a few good options"








Title: Re: How can I disable Quick Reply
Post by: landyvlad on February 18, 2020, 08:10:47 PM
Quote from: Sir Osis of Liver on February 13, 2020, 04:26:13 PM
Like sidebar menus. :(
TinyPortal is a much better way of doing that anyway, in my opinion.



re Ability to disable quick reply

Quote from: Sir Osis of Liver on February 13, 2020, 03:58:19 PM
Why was it removed?  Some of my guys want to show quick reply, some don't.  It's a useful option.

Absolutely I've just found out about this today and it makes no sense.
Nor does
Quote from: Illori on February 13, 2020, 04:03:27 PM
a good few options that are in 2.0 were removed in 2.1 to make it easier to support. this was one of them.

How can the lack of that feature make 2.1 "easier to support". It seems it was able to be supported in 2.0 easily enough.
By that argument they should take another 30 features out of 2.1 to make it even easier to support. 

Nope that's a dumb move and dumber reason IMHO.
Title: Re: How can I disable Quick Reply
Post by: Illori on February 19, 2020, 04:42:39 AM
easier to support by our developers and themers. some of the features that were removed have made it easier to make responsive. also if you want the features back then see if you can get a mod created to put them back.
Title: Re: How can I disable Quick Reply
Post by: landyvlad on February 20, 2020, 02:05:22 AM
OK mate I'll take your word for it.  :)
Title: Re: How can I disable Quick Reply
Post by: SulevFan on September 13, 2022, 09:33:12 AM
I wonder if this page in the manual should indicate the fact that the option is not user-selectable anymore?

https://wiki.simplemachines.org/smf/Quick_reply
Title: Re: How can I disable Quick Reply
Post by: Illori on September 13, 2022, 09:49:55 AM
We are still working on updating the wiki. Please keep in mind that due to the nature of it being a wiki you are more than welcome to edit it.
Title: Re: How can I disable Quick Reply
Post by: SulevFan on September 17, 2022, 07:46:40 AM
Quote from: Illori on September 13, 2022, 09:49:55 AMWe are still working on updating the wiki. Please keep in mind that due to the nature of it being a wiki you are more than welcome to edit it.

Good answer! One I often give to folks critiquing our wiki :) However, I'm sure you don't want ham-handed edits from someone that has less than the full picture of how things are structured and put together.

I did go back and it would seem that the new page would read something like
QuoteThere is no method to turn off "Quick Reply" either from User preferences or Admin panel
Title: Re: How can I disable Quick Reply
Post by: User2 on January 18, 2023, 07:10:47 AM
Quote from: live627 on February 13, 2020, 02:51:37 PM// Show quickreply
    //if ($context['can_reply'])
        ///template_quickreply();
Why in this line:
///template_quickreply();three slashes?
Title: Re: How can I disable Quick Reply
Post by: Sir Osis of Liver on January 18, 2023, 11:39:40 AM
Three slashes just makes it easier to find the edit if you have to get back to it.
Title: Re: How can I disable Quick Reply
Post by: Diego Andrés on March 23, 2024, 05:03:16 PM
Quote from: live627 on February 13, 2020, 02:51:37 PMThat option has been removed, so you'll need to edit code

Find  in ./Themes/default/Display.template.php

    // Show quickreply
    if ($context['can_reply'])
        template_quickreply();

To hide it from everyone

    // Show quickreply
    //if ($context['can_reply'])
        ///template_quickreply();

To hide it from a specific user

    // Show quickreply
    if ($context['can_reply'] && $context['user']['id'] == 1)
        template_quickreply();

I'm obligated to do some necromancy on this topic.
This edit will break various things in the javascript because it loads some essential things in the quick_reply() function.

I came across this issue here (https://www.simplemachines.org/community/index.php?topic=588323.0)
Title: Re: How can I disable Quick Reply
Post by: User2 on March 24, 2024, 11:05:41 AM
Diego Andrés, does this mod work correctly or does it also break something?
https://custom.simplemachines.org/index.php?mod=4351
Title: Re: How can I disable Quick Reply
Post by: Diego Andrés on March 24, 2024, 12:18:24 PM
It works fine afaik.