Page 1 of 1
Add more Priority categories
Posted: Mon Mar 03, 2008 12:24 pm
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!
Posted: Mon Oct 06, 2008 7:40 am
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
Add above
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.
Re: Add more Priority categories
Posted: Sat Aug 13, 2011 1:50 pm
by coeugh
Hello, iv folwed you step per step and its not working.
Can you explain exactly ?
Thank you.