YAFLogo

GendrixonEvgeny
4 years ago
A maximum of 15 characters and "..." How? prntscr . com/h8qi7t
Sponsor

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

A maximum of 15 characters and "..." How? prntscr . com/h8qi7t

For that you would need to modify the file ..\controls\ForumActiveDiscussion.ascx.cs

and change line..

var topicSubject = this.Get<IBadWordReplace>().Replace(this.HtmlEncode(currentRow["Topic"]));

to

var topicSubject = this.Get<IBadWordReplace>().Replace(this.HtmlEncode(currentRow["Topic"])).Truncate(15);

GendrixonEvgeny
4 years ago
Originally Posted by: tha_watcha 

Originally Posted by: GendrixonEvgeny 

A maximum of 15 characters and "..." How? prntscr . com/h8qi7t

For that you would need to modify the file ..\controls\ForumActiveDiscussion.ascx.cs

and change line..

var topicSubject = this.Get<IBadWordReplace>().Replace(this.HtmlEncode(currentRow["Topic"]));

to

var topicSubject = this.Get<IBadWordReplace>().Replace(this.HtmlEncode(currentRow["Topic"])).Truncate(15);

Excellent, it works). Thank you so much!