How to increase character length of Subject Line?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
farrukh
Posts: 5
Joined: Tue Apr 05, 2016 7:58 am

How to increase character length of Subject Line?

Post by farrukh »

Script URL:
Version of script: 2.7.3
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

The character length for Subject (Title of ticket) is about 40 characters. In some cases, this length is too short. How can I increase the length and to how many character?

Farrukh.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to increase character length of Subject Line?

Post by Klemen »

You can increase it up to 70 quite easily:

1. backup existing index.php and admin/new_ticket.php files
2. open them in a powerful text editor that can properly encode files, such as Notepad++
3. change all instances of

Code: Select all

maxlength="40"
to

Code: Select all

maxlength="70"
4. save, upload and test

To increase the length beyond 70 chars, you would also need to modify the database structure of table hesk_tickets row "subject" from varchar(70) to for example varchar(255). I don't recommend messing with the database though unless you are fairly familiar with MySQL.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply