YAFLogo

Ordinary Nimda
6 years ago
Is there any way to disable message history for general forum posts?

While it is certainly useful for some scenarios, I would not like this in my general forum. One writes this and that, and then changes his or her mind, does some corrections and hopes that no one saw the original text. And then the Google Bot can show it to the whole world through the Messagehistory.ascx page. I will hack this page, if there is no other way to disable this. 🙂
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
The only way would be to disallow editing of postings. But you can not disable the Message History.
Ordinary Nimda
6 years ago
Originally Posted by: tha_watcha 

The only way would be to disallow editing of postings. But you can not disable the Message History.



OK, thanx for this clarification!

And of course there is a way to disable the display - one just has to edit Messagehistory.ascx. Ultimately, a redirect can be done at the top. It is ugly, but it works. One can put up a static page, saying Message History is ... history.


<% this.Page.Response.Redirect ("http://cnn.com"); %>

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
Originally Posted by: Ordinary Nimda 

Originally Posted by: tha_watcha 

The only way would be to disallow editing of postings. But you can not disable the Message History.



OK, thanx for this clarification!

And of course there is a way to disable the display - one just has to edit Messagehistory.ascx. Ultimately, a redirect can be done at the top. It is ugly, but it works. One can put up a static page, saying Message History is ... history.


<% this.Page.Response.Redirect ("http://cnn.com"); %>



Or you simply hide the history button
Ordinary Nimda
6 years ago
Originally Posted by: tha_watcha 

Originally Posted by: Ordinary Nimda 

Originally Posted by: tha_watcha 

The only way would be to disallow editing of postings. But you can not disable the Message History.



OK, thanx for this clarification!

And of course there is a way to disable the display - one just has to edit Messagehistory.ascx. Ultimately, a redirect can be done at the top. It is ugly, but it works. One can put up a static page, saying Message History is ... history.


<% this.Page.Response.Redirect ("http://cnn.com"); %>



Or you simply hide the history button


Yes, I did both:
1) Hid the "MessageDetails" section in CSS.
2) Did a redirect (because the link URL is still visible in the page HTML source, even though it is not rendered)

Let this be understood: the message history functionality is an impressive piece of code, and looks really neat. I just don't want to use it in this forum, which I am building now. But it could definitely come in handy in some forum scenarios, so don't throw it away from the master source!
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button