YAFLogo

vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
6 years ago
How would I prevent the MultiQuote and Quote buttons from displaying?

I do not want to use CSS to make their display:none, but make them not visible from code-behind or through some forums setting.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
6 years ago

How would I prevent the MultiQuote and Quote buttons from displaying?

I do not want to use CSS to make their display:none, but make them not visible from code-behind or through some forums setting.

Originally Posted by: vcsharp 

You only need to change line 546 in DisplayPost.ascx.cs...

this.MultiQuote.Visible = !this.PostData.PostDeleted && this.PostData.CanReply && !this.PostData.IsLocked;

to

this.MultiQuote.Visible = false;