Add more Priority categories

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
JMRamsey
Posts: 1
Joined: Mon Mar 03, 2008 12:20 pm

Add more Priority categories

Post by JMRamsey »

I am looking for a way to add another priority ('Critical').
Does anyone know how I would go about this?

Any help is greatly appreciated!

Thanks!
A12Alex
Posts: 3
Joined: Mon Oct 06, 2008 5:43 am

Post by A12Alex »

Hey, this isn't really an easy task for most people, so I'll help you out and tell you how

Index.php
Find:

Code: Select all

<option value="3" <?php if($_SESSION['c_priority']==3) {echo 'selected';} ?>><?php echo $hesklang['low']; ?></option>
<option value="2" <?php if($_SESSION['c_priority']==2) {echo 'selected';} ?>><?php echo $hesklang['medium']; ?></option>
<option value="1" <?php if($_SESSION['c_priority']==1) {echo 'selected';} ?>><?php echo $hesklang['high']; ?></option>
Place below

Code: Select all

<option value="0" <?php if($_SESSION['c_priority']==0) {echo 'selected';} ?>><?php echo $hesklang['critical']; ?></option>
english.inc.php(In the language folder)
Find

Code: Select all

$hesklang['high']='High';
Add above

Code: Select all

$hesklang['critical']='Critical';
print_tickets.inc.php(in the inc folder)
Find

Code: Select all

    case 2:
        $ticket['priority']='<font class="medium">'.$hesklang['medium'].'</font>';
        break;
Add below:

Code: Select all

    case 4: //Doesn't work unless case 4...
        $ticket['priority']='<font class="critical">'.$hesklang['critical'].'</font>';
        break;
ticket.php

Code: Select all

        elseif ($ticket['priority']==2) {echo '<font class="medium">'.$hesklang['medium'].'</font>';}
Add below:

Code: Select all

        elseif ($ticket['priority']==4) {echo '<font class="critical">'.$hesklang['critical'].'</font>';} 
Now run this sql query on the database(that hesk is connected to...):

Code: Select all

 ALTER TABLE `hesk_tickets` CHANGE `priority` `priority` ENUM( '1', '2', '3', '4' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '3' 
hesk_style.css
Add right at the end

Code: Select all

.critical {
	color: #FF0000;
	text-decoration: underline;
}
If there is anywhere I've missed just say and I'll tell you how to add it there too.
coeugh
Posts: 13
Joined: Thu Dec 24, 2009 1:59 am

Re: Add more Priority categories

Post by coeugh »

Hello, iv folwed you step per step and its not working.

Can you explain exactly ?

Thank you.
Post Reply