Home : Products : Gossamer Forum : Discussion :

Products: Gossamer Forum: Discussion: Re: [Wil] Truncate message subject: Edit Log

Here is the list of edits for this post
Re: [Wil] Truncate message subject
This is just an easy template change. If you add a global, say short_post_subject, which has the following code:
sub {
my $vars = shift;
(my $subject = $vars->{post_subject}) =~ s/^(.{25}).+$/$1 .../;
Where 25 is the maximum length of the subject. Of course, you could always make that regex a little more intelligent (eg. don't truncate words).

In forum_view.html, around line 170, replace
and you'll acheive that.


Last edited by:

brewt: Jan 14, 2002, 2:06 AM

Edit Log: