osTicket Customisation

15 Apr 2019

Contents

  1. Language Packs
  2. Custom Error Pages
  3. Office 365 NoReply Email Settings
  4. Admin Login Button
  5. Custom Graphic
  6. Date and Time Fix
  7. Database Search Min-Characters
  8. HTTP redirect

Language Packs

Additional language packs are available from osticket.com, to install them copy the .phar file into the osticket directory (wwwroot/include/i18n/).

Then from the admin panel goto Settings > System and change the primary or secondary languages to the newly installed language pack.

Custom Error Pages

The stock error pages are ugly, so lets change them to something a little more custom. Firstly we’ll need a custom error page, I have created a simple page for demostration purposes the code is a little large due to a BASE64 image (embedded image) of osTicket’s logo.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>osTicket Error</title>
    <link href="https://fonts.googleapis.com/css?family=Archivo+Black|Roboto" rel="stylesheet">
    <style type="text/css">
    html {
      line-height: 1.15; /* 1 */
      -webkit-text-size-adjust: 100%; /* 2 */
    }
    body{
      margin: 0;
      padding: 0;
    }
    .container{
      text-align: center;
      margin: 20px auto;
      font-family: 'Roboto', sans-serif;
    }
    h1{
      font-family: 'Archivo Black', sans-serif;
      font-size: 2em;
      margin: 0.67em 0;
    }
    img {
      border-style: none;
    }
    a{
      color: #F16B32;
      text-decoration: none;
    }
    a:hover, a:focus, a:active{
      color: #C9470F;
      text-decoration: underline;
    }
    </style>
  </head>
  <body>
    <div class="container">
      <img src=" data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuM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VJH7cCmE0ZIDuS3g82yHOjwuTMmALyT7/8tuKxFfZIdLZAICClgpNjIvirPC7SJk+J3qZkR3eTc6P1gD7XFwHMIQHMoR/OiTXIOVGN5WmRN1E62S2lRX1E/uoHalwzpggI1CGIg8TFXyhAnyDS75Mzo1OU7MgOyuwYgzw7moPxuSoB/D+Q+Wn/E4/khgAAAABJRU5ErkJggg==">
      <h1>OOPS!</h1>
      <p>Seems you have an error, keep calm and return home.</p>
      <br><br>
      <p><a href="../">osTicket Home</a></p>
    </div>
  </body>
</html>

Now lets set this page to be the new error page, starting in IIS Manager goto your osticket site then open ‘Error Pages’. We will be changing the path for each status code so we still have the correct errors logged and displayed to the user as they can be helpful.

Change error page option to ‘Execute a URL on this site’ and select the relative path.

Custom Error Pages

Next from the Error Pages pane select ‘Edit Feature Settings’ and enable ‘Custom error pages’.

This will complete the process, you are probably best to create a set of error pages unique to the reported status code (401, 403, 404, 405, 406, 412, 500, 501, 502) but they can be pretty and less intimidating for the end user.

Edit: After enabling the custom error messages I had issues with the SSO feature, I have had to leave these as default for now

Office 365 NoReply Email Settings

You’ll want to have a noreply email address for sending confirmation emails about tickets to clients, you’ll need an email pre-configured, once you have this you can populate the settings required to get the account to work.

Login to the Admin panel and navigate to Emails > Emails then create a new email

Fill in the required details of:

  1. Email Address: [email protected]
  2. Email Name: NoReply
  3. Auto-Response: Disabled
  4. Username: [email protected]
  5. Password: *
  6. Fetching Email via IMAP or POP: Disabled
  7. Sending Email via SMTP: Enabled
  8. Hostname: smtp.office365.com
  9. Port Number: 587
  10. Authentication Required: Yes
  11. Header Spoofing: Unchecked

Save this configuration then goto the ‘Diagnostic’ page, select [email protected] from the ‘FROM’ list, provide an email to send to with a message and click ‘Send Message’ this will test the account.

Admin Login Button

My setup is using SSO Active Directory with HTTP pass-through so agents did not have the login prompt with the admin login link so I wanted to include a button for them to press to easily get to the agent panel.

I noticed to hijack the powered by osTicket link in the footer. You can find this file in wwwroot > include > client its called ‘footer.inc.php’. - I simply changed the anchor link value.

<a id="poweredBy" href="../scp/login.php" target="_blank"><?php echo __('Helpdesk software - powered by osTicket'); ?></a>

Custom Graphic

You can add customised graphics via the admin panel, settings > company.

I wanted to keep the look and feel of the stock osTicket so I found the original files and modified them to fit the company branding

the original ost-logo.png (agent logo) is located C:\inetpub\wwwroot\scp\images\ost-logo.png and the original print-logo.png (client logo) is located C:\inetpub\wwwroot\include\fpdf\print-logo.png from these you can copy the file.

Dimensions of ost-logo.png are 395px x 132px

Dimensions of the print-logo.png are 817px x 170px

Here is a sample of my modified agent logo

Agent Logo

Here is a sample of my modified client logo

Client Logo

Date and Time Fix

Once you’re at the stage of configuring custom forms, you may wish to use the Date and Time input, I found that the date day was duplicated, for example 1616/Apr/19 was being displayed instead of 16/Apr/19.

To fix this problem I needed to configure an advanced ‘Date and Time Format’ this can be found via the admin panel under Settings > System.

I used the following configuration:

  1. Default Locale: English (United Kingdom)
  2. Default Time Zone: Europe / London (Auto Detected)
  3. Date and Time Format: Advanced
  4. Time Format: HH:mm i
  5. Date Format: d/M/y
  6. Date and Time Format: d/M/y HH:mm i
  7. Day, Date and Time Format: E, d MMM y HH:mm i

This fixed the duplication of the day information.

Database Search Min-Characters

I wanted to be able to quickly search for users when creating a ticket but found that by default it required a minimum of 4 characters before it would query the database, personally I would get happier with minimum length of 3 so the search would be performed on the 3rd character.

I found this article ‘osTicket with MySQL – Search with 4 characters or less’, they describe their problem and steps they took to resolve it.

Firstly query your SQL database for the 'ft_min_word_len' variable, I personally have ‘HeidiSQL’ installed on my osTicket server as part of the MariaDB installation.

We will be issuing the following command from the ‘Query’ tab.

SHOW VARIABLES LIKE 'ft_min_word_len';

The screenshot below shows the query being performed using HeidiSQL, as we can see the returned value is 4.

Querying SQL for ft_min_word_len variable

Next we need to alter the SQL configuration file (my.ini) which can be found C:\Program Files\MariaDB 10.3\data on my installation.

Edit the my.ini file and under the [mysqld] section add the following, once added save the file and restart the server.

[mysqld]
ft_min_word_len=3

Once the server is back up and running we will need to rebuild the table indexes, my table is InnoDB so the repair is not required but if you need to you can be perform this by issuing the following command.

REPAIR TABLE osticket.ost__search QUICK

or we can use the GUI to perform this repair, the screenshot below shows the ‘maintenance’ window for ost_search table.

HeidiSQL table maintenance window

Once compelete, we will be able to search with our new reduced minimum word requirement.

HTTP Redirect

Forcing through HTTPS connection over HTTP using a URL Rewrite rule.

<rule name="HTTPS force" enabled="true" stopProcessing="true">
   <match url="(.*)" />
   <conditions>
     <add input="{HTTPS}" pattern="^OFF$" />
   </conditions>
   <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>

In IIS Manager under the website in SSL Settings, you’ll need to have Require SSL unchecked otherwise IIS will report a Forbidden error.

Back to Top