YAFLogo

GendrixonEvgeny
6 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: 4.0.0 rc 2
6 years ago

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

Originally Posted by: GendrixonEvgeny 

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
6 years ago

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

Originally Posted by: tha_watcha 

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

Originally Posted by: GendrixonEvgeny 

Excellent, it works). Thank you so much!