Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline GendrixonEvgeny  
#1 Posted : Friday, November 10, 2017 9:34:34 AM(UTC)
GendrixonEvgeny


Rank: YAF Camper

Reputation:

Joined: 11/5/2017(UTC)
Posts: 17

A maximum of 15 characters and "..." How? prntscr . com/h8qi7t
Sponsor
Offline tha_watcha  
#2 Posted : Saturday, November 11, 2017 10:22:20 AM(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

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: 3/6/2010(UTC)
Posts: 3,736
Germany

Thanks: 70 times
Was thanked: 1149 time(s) in 979 post(s)
Originally Posted by: GendrixonEvgeny Go to Quoted Post
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..

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


to

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




Offline GendrixonEvgeny  
#3 Posted : Saturday, November 11, 2017 11:15:54 AM(UTC)
GendrixonEvgeny


Rank: YAF Camper

Reputation:

Joined: 11/5/2017(UTC)
Posts: 17

Originally Posted by: tha_watcha Go to Quoted Post
Originally Posted by: GendrixonEvgeny Go to Quoted Post
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..

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


to

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






Excellent, it works). Thank you so much!
Rss Feed  Atom Feed
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.

Notification

Icon
Error