News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How can I disable Quick Reply

Started by cpf, February 13, 2020, 07:01:00 AM

Previous topic - Next topic

cpf

I'm having a hard time figuring out where to disable Quick Reply.  Where is this option?
Don't email me, PM me, IM me, contact me, look at me, breath on me, or even attempt to think about thinking of contacting me.  If you do, I will send you to the correct forum to post, where I will promptly tell you that you posted in the wrong forum.

live627

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();

Sir Osis of Liver

Why was it removed?  Some of my guys want to show quick reply, some don't.  It's a useful option.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

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.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

live627


Shambles

Quote from: Illori
a good few options that are in 2.0 were removed ...

You mean "a few good options"

marcosbr

Nothing in life is absolute. We are always learning... Did you know that?
https://amigosdaeletronica.com.br

landyvlad

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.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Illori

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.

landyvlad

OK mate I'll take your word for it.  :)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

SulevFan

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

Illori

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.

SulevFan

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

User2

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?

Sir Osis of Liver

Three slashes just makes it easier to find the edit if you have to get back to it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Diego Andrés

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

SMF Tricks - Free & Premium Responsive Themes for SMF.

User2

Diego Andrés, does this mod work correctly or does it also break something?
https://custom.simplemachines.org/index.php?mod=4351

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: