How Can We Help?
Hesk Help Desk Upgrade
Make a Copy of the Following Files
Folder: img
header.png headerbgsm.jpg headerleftsm.jpg headerrightsm.jpg header_bottom.png header_bottom_left.png header_bottom_right.png header_left.png header_right.png header_top.png header_up_left.png header_up_right.png
Folder: language\en\emails
new_ticket_staff.txt new_ticket.txt
Follow the Standard Upgrade Process
- Download the latest version from http://www.hesk.com/
- Unzip the newly downloaded file and locate the readme.html file.
- Follow the instructions for ‘Upgrading from old versions’.
Re-creating Customizations
hesk_style.css
Replace the body and table.enclosing element selectors and add the .foot class selector per the following code
body { background-color: #FAEBD7; background:url("./img/Blue_Gradient3.png") no-repeat; color: black; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; margin-left:0; margin-right:0; margin-top:10; margin-bottom:0; } .foot { text-align: center; font-weight: bold; }
Add this code to the file listed above
After
.homepageh3, .section { color: #74804e; font-weight: bold; }
Add
.homepageh4 { color: #74804e; font-weight: normal; }
change_status.php, index.php, knowledgebase.php, submit_ticket.php, ticket.php
Add this code to the files listed above
After
// Get all the required files and functions" section near the top
Add
// // // /* Custom Code to force authentication */ // Start a PHP Session session_start(loggedin); // Is the user logged in? if (!isset($_SESSION['loggedin'])) { header('Location: login.php'); exit; // dont forget the exit here... } /* Custom Code to force authentication */ // // //
Add this code to the file listed above
After
define('HESK_PATH','./');" near the top
Add
define('loggedin',1);
index.php
Add this code to the file listed above
After
<option value="1" <?php if(isset($_SESSION['c_priority']) && $_SESSION['c_priority']==1) {echo 'selected="selected"';} ?>><?php echo $hesklang['high']; ?></option>
Add
</select> *Please adjust priority with discretion</td>
Add this code to the file listed above
After
<input type="text" name="name"
Add
value="<? echo $_SESSION['name'] ?>"
Add this code to the file listed above
After
<input type="text" name="email"
Add
value="<? echo $_SESSION['email'] ?>"
Add this code to the file listed above
After
<input type="text" name="email2"
Add
value="<? echo $_SESSION['email'] ?>"
REM out each of these lines
hesk_kbSearchSmall(); --> //hesk_kbSearchSmall(); hesk_kbSearchLarge(); --> //hesk_kbSearchLarge();
Add this code to the file listed above
Before
<?php if ($hesk_settings['kb_enable'])
Add
<!-- Show My Open Tickets --> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7" height="7"><img src="img/roundcornerslt.jpg" width="7" height="7" alt="" /></td> <td class="roundcornerstop"></td> <td><img src="img/roundcornersrt.jpg" width="7" height="7" alt="" /></td> </tr> <tr> <td class="roundcornersleft"> </td> <td> <!-- <p><span class="homepageh3"><?php echo $hesklang['kb_text']; ?></span></p> --> <p><span class="homepageh3"><?php echo $hesklang['my_open_tickets']; ?></span></p> <?php /* Get list of user's open tickets */ show_my_open_tickets(); ?> </td> <td class="roundcornersright"> </td> </tr> <tr> <td><img src="img/roundcornerslb.jpg" width="7" height="7" alt="" /></td> <td class="roundcornersbottom"></td> <td width="7" height="7"><img src="img/roundcornersrb.jpg" width="7" height="7" alt="" /></td> </tr> </table> <br /> <!-- End Show My Open Tickets --> <!-- Show Knowledgebase Suggestions -->
Add this code to the file listed above
After
// End forgot_tid()
Add
// show_my_open_tickets Function function show_my_open_tickets() { global $hesk_settings, $hesklang; if ( isset($_POST['open_only']) ) { $hesk_settings['open_only'] = $_POST['open_only'] == 1 ? 1 : 0; } /* Prepare ticket statuses */ $my_status = array( 0 => $hesklang['open'], 1 => $hesklang['wait_staff_reply'], 2 => $hesklang['wait_cust_reply'], 3 => $hesklang['closed'], 4 => $hesklang['in_progress'], 5 => $hesklang['on_hold'], ); /* Get ticket(s) from database */ hesk_dbConnect(); // Get tickets from the database $res = hesk_dbQuery( "SELECT * FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "tickets` FORCE KEY (`statuses`) WHERE `status` IN ('0','1','2','4','5') AND `email` = '" . $_SESSION['email'] . "' ORDER BY `status` ASC, `lastchange` DESC"); $tid_list = ''; $name = ''; $num = hesk_dbNumRows($res); echo '<i>'; echo "Number: " . $num . "<br />"; echo '</i>'; while ($my_ticket=hesk_dbFetchAssoc($res)) { $tid_list .= " $hesklang[trackID]: " . $my_ticket['trackid'] . " $hesklang[subject]: " . $my_ticket['subject'] . " $hesklang[status]: " . $my_status[$my_ticket['status']] . " $hesk_settings[hesk_url]/ticket.php?track={$my_ticket['trackid']} "; echo '<p><span class="homepageh4">'; echo "<b>$hesklang[subject]: </b>" . $my_ticket['subject'] . "</i><br />"; echo "<b>$hesklang[status]: </b>" . $my_status[$my_ticket['status']] . "<br />"; echo "<b>$hesklang[trackID]: </b>" . $my_ticket['trackid'] . "<br />"; echo "<b>Link: </b><a href='$hesk_settings[hesk_url]/ticket.php?track={$my_ticket['trackid']}'>$hesk_settings[hesk_url]/ticket.php?track={$my_ticket['trackid']}</a>"; echo "<br /><br />"; echo '</span></p>'; } } // End show_my_open_tickets Function
admin/admin_main.php
Add this code to the file listed above
After
<?php" at the very top
Add
$url1=$_SERVER['REQUEST_URI']; header("Refresh: 300; URL=$url1"); ?> <?php
Add this code to the file listed
After
require_once(HESK_PATH . 'inc/footer.inc.php');" near the bottom.
Add
echo "This page will automatically refresh every 5 minutes";
submit_ticket.php
Add this code to the file listed above
Before
<p><a href="index.php?a=add"><?php echo $hesklang['c2c']; ?></a>.</p>
Add
<p style="text-align:center"><a href="logout.php">Log Out</a></p>
.\language\en\text.php
Add this code to the file listed above
Near the end of the file
Add
// Custom variables $hesklang['my_open_tickets']='My Open tickets';