#1
A maximum of 15 characters and "..." How? prntscr . com/h8qi7t
Topic Starter
  • GendrixonEvgeny
  • Rank: YAF Camper
  • Reputation:
    Friendly
    65%
  • Joined: 05/11/2017
  • Posts: 25
#2
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);





test
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 3,976
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1199 time(s) in 1027 post(s)
#3
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!
Topic Starter
  • GendrixonEvgeny
  • Rank: YAF Camper
  • Reputation:
    Friendly
    65%
  • Joined: 05/11/2017
  • Posts: 25
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