Manual Edit Instructions

With this addon module, a couple of template edits are necessary. This isn’t hard, and we’ll walk you through it. There are two options for this here.

  1. Copy the admin/templates/blend/viewticket.modified.tpl file to your admin/templates/blend/viewticket.tpl file. This is the easiest, and will likely be the safest. Just replace the entire contents of the file on your server, with the one in the distributed list.
  2. Make the following edits manually to admin/templates/blend/viewticket.tpl . This should also be done in any other templates you use.

Look for the following:

[html]
<li><a href="#tab2" role="tab" data-toggle="tab" onclick="loadTab(2, ‘customfields’, 0)">{$_ADMINLANG.setup.customfields}</a></li>
[/html]

And replace it with this

[html]
<li><a href="#tab2" role="tab" data-toggle="tab">{$_ADMINLANG.setup.customfields}</a></li>
[/html]

Then , further down the file, look for the following:

[html]
<div class="tab-pane" id="tab2">
<img src="images/loading.gif" align="top" /> {$_ADMINLANG.global.loading}
</div>
[/html]

and replace that with this:

[html]
<div class="tab-pane" id="tab2">
{include file="$template/viewticketcustomfields.tpl"}
</div>[/html]

The view custom tickets template already exists in the directory, you’re just telling this file to be loaded instead of doing things how WHMCS originally did.

This change is only necessary if you would like ticket fields to be encrypted. If not, you can skip this change

Was this article helpful to you? No Yes