Help Desk Software & Beyond
May 21, 2012, 11:07:53 PM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [MOD] Subject column character limit  (Read 1151 times)
bcamelkio
Newbie
*

Karma: -3
Posts: 37


View Profile
« on: August 18, 2007, 03:40:06 PM »

Hi Alex,
Can you direct me to the spot in the code where we can increase the number of characters that displays in the subject column of the ticket list?  We would like to increase the number of characters that display before the ...
Thanks
Logged
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #1 on: August 20, 2007, 08:31:52 AM »

TTXDesk.pm

        } elsif ($col eq 'subject') {
          $align = 'left';
          my $dots = '...';
          $val =~ s/\b([^\s]{15,15})([^\s])*/$1.$dots/ge;
          $val =~ /^(.{1,30})(.*)/;
          $val = $1;
          $val .= '...' if $2 ne undef;
          $val =~ s/</&lt;/g;
Logged

Follow me on: LinkedIn
bcamelkio
Newbie
*

Karma: -3
Posts: 37


View Profile
« Reply #2 on: August 20, 2007, 10:39:13 AM »

Perfect!  Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.019 seconds with 17 queries.