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!
Add more Priority categories
Moderator: mkoch227
Hey, this isn't really an easy task for most people, so I'll help you out and tell you how
Index.php
Find:
Place below
english.inc.php(In the language folder)
Find
Add above
print_tickets.inc.php(in the inc folder)
Find
Add below:
ticket.php
Add below:
Now run this sql query on the database(that hesk is connected to...):
hesk_style.css
Add right at the end
If there is anywhere I've missed just say and I'll tell you how to add it there too.
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>
Code: Select all
<option value="0" <?php if($_SESSION['c_priority']==0) {echo 'selected';} ?>><?php echo $hesklang['critical']; ?></option>
Find
Code: Select all
$hesklang['high']='High';
Code: Select all
$hesklang['critical']='Critical';
Find
Code: Select all
case 2:
$ticket['priority']='<font class="medium">'.$hesklang['medium'].'</font>';
break;
Code: Select all
case 4: //Doesn't work unless case 4...
$ticket['priority']='<font class="critical">'.$hesklang['critical'].'</font>';
break;
Code: Select all
elseif ($ticket['priority']==2) {echo '<font class="medium">'.$hesklang['medium'].'</font>';}
Code: Select all
elseif ($ticket['priority']==4) {echo '<font class="critical">'.$hesklang['critical'].'</font>';}
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'
Add right at the end
Code: Select all
.critical {
color: #FF0000;
text-decoration: underline;
}
Re: Add more Priority categories
Hello, iv folwed you step per step and its not working.
Can you explain exactly ?
Thank you.
Can you explain exactly ?
Thank you.