GendrixonEvgeny
  • Posts: 25
  • Joined: 05/11/2017
A maximum of 15 characters and "..." How? prntscr . com/h8qi7t
tha_watcha
  • Posts: 4035
  • Joined: 06/03/2010
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);





UserPostedImage
GendrixonEvgeny
  • Posts: 25
  • Joined: 05/11/2017
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!
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    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

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved