Page 1 of 1

How to increase character length of Subject Line?

Posted: Fri Jul 21, 2017 5:20 am
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.

Re: How to increase character length of Subject Line?

Posted: Fri Jul 21, 2017 6:51 am
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.