Upgrades - Template Changes v4.0
Information
Template changes are shown below for v4.0. If you aren`t sure, view the current file in the latest zip.
New Files / Folders
content/**theme**/html/pagination/
Header Template Updates
None
Footer Template Updates
1 After:
<div class="overlaySpinner" style="display:none"></div>
Add:
<?php
// Tawk.to live support
echo $this->TAWK_TO;
?>
2 Before the closing </body> tag add the following code:
<?php
if (defined('TICKET_CREATION') && $this->SETTINGS->defdept > 0) {
?>
<script>
jQuery(document).ready(function() {
mswDeptLoader('<?php echo $this->SETTINGS->defdept; ?>');
});
</script>
<?php
}
?>
<div class="overlaySpinner" style="display:none"></div>
Add:
<?php
// Tawk.to live support
echo $this->TAWK_TO;
?>
2 Before the closing </body> tag add the following code:
<?php
if (defined('TICKET_CREATION') && $this->SETTINGS->defdept > 0) {
?>
<script>
jQuery(document).ready(function() {
mswDeptLoader('<?php echo $this->SETTINGS->defdept; ?>');
});
</script>
<?php
}
?>
Other Template Updates
1 content/**/html/ticket-attachment.htm
Find:
href="?attachment={id}"
Change to:
href="#" onclick="mswDL('{id}','dla');return false"
2 content/**/html/faq-attachment-link.htm
Find:
href="{url}"
Change to:
href="#" onclick="mswDL('{id}','dl');return false"
3 From the content/**/account-create.tpl.php & content/**/account-create-ticket.tpl.php templates remove:
<?php
// SPAM PREVENTION IF RECAPTCHA ENABLED
// html/recaptcha.htm
echo $this->RECAPTCHA;
?>
and
if ($this->RECAPTCHA) {
define('LOAD_RECAPTCHA', 1);
}
4 Add 'content/_default_set/custom-templates' folder from latest zip to all your theme folders if it is missing.
Find:
href="?attachment={id}"
Change to:
href="#" onclick="mswDL('{id}','dla');return false"
2 content/**/html/faq-attachment-link.htm
Find:
href="{url}"
Change to:
href="#" onclick="mswDL('{id}','dl');return false"
3 From the content/**/account-create.tpl.php & content/**/account-create-ticket.tpl.php templates remove:
<?php
// SPAM PREVENTION IF RECAPTCHA ENABLED
// html/recaptcha.htm
echo $this->RECAPTCHA;
?>
and
if ($this->RECAPTCHA) {
define('LOAD_RECAPTCHA', 1);
}
4 Add 'content/_default_set/custom-templates' folder from latest zip to all your theme folders if it is missing.
CSS Updates
None
Javascript Updates
1 In the js/msops.js file in the mswProcessMultiPart function find:
jQuery('#mswform').submit(function() {
Before that add:
var d = new Date();
jQuery('#mswform').append('<input type="hidden" name="js_ts" value="' + d.getFullYear() + '">');
2 Open the latest content/**/js/msops.js file in a text editor.
Copy and paste the mswDeptLoader function to overwrite the one currently in your setup.
3 Open the latest content/**/js/msops.js file in a text editor.
Add the mswDL(id, parm) function to your existing msops.js file
4 Update content/**/js/plugins/jquery.uploader.js file.
jQuery('#mswform').submit(function() {
Before that add:
var d = new Date();
jQuery('#mswform').append('<input type="hidden" name="js_ts" value="' + d.getFullYear() + '">');
2 Open the latest content/**/js/msops.js file in a text editor.
Copy and paste the mswDeptLoader function to overwrite the one currently in your setup.
3 Open the latest content/**/js/msops.js file in a text editor.
Add the mswDL(id, parm) function to your existing msops.js file
4 Update content/**/js/plugins/jquery.uploader.js file.
Function Names
This lists PHP function name changes. If you have them in your template, they must be renamed:
Old Name -> New Name
mswCleanData -> mswCD
mswSafeDisplay -> mswSH
mswIPAddresses -> mswIP
mswFileSizeConversion -> mswFSC
mswGetTableData -> mswSQL_table
mswRowCount -> mswSQL_rows
mswSQL -> mswSQL
mswMultiDimensionalArrayMap -> mswMDAM
mswDetectSSLConnection -> mswSSL
Old Name -> New Name
mswCleanData -> mswCD
mswSafeDisplay -> mswSH
mswIPAddresses -> mswIP
mswFileSizeConversion -> mswFSC
mswGetTableData -> mswSQL_table
mswRowCount -> mswSQL_rows
mswSQL -> mswSQL
mswMultiDimensionalArrayMap -> mswMDAM
mswDetectSSLConnection -> mswSSL
Return to Upgrade Instructions