Page 1 of 1

Removing/Changing Subject and Priority fields

Posted: Sun Jun 17, 2007 10:03 am
by humpda
Script URL:
Version of script: .94
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: "removing fields" ; "removing subject line"

Write your message below:

Hi
I have just upgraded to the .94 version and all is good. However, I would like to remove the priority" field...I work for a school and all staff believe that their requests are high priority :D I wish to also force the Subject to be "ICT Support Request" and make it non-editable by users. I would appreciate any info that will assist me in doing this. Thanks again. :lol:

Posted: Mon Jun 18, 2007 10:45 pm
by Klemen
Hi!

For priority open index.php in a plain text editor (like Notepad) and delete lines 121-128:

Code: Select all

<tr>
<td align="right" width="150"><?php echo $hesklang['priority']; ?>: <font class="important">*</font></td>
<td align="left" width="600"><select name="priority">
<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>
</select></td>
</tr>
Also change line 255 from

Code: Select all

<p align="center"><input type="submit" value="<?php echo $hesklang['sub_ticket']; ?>" class="button"></p>
to

Code: Select all

<p align="center"><input type="hidden" name="priority" value="3"><input type="submit" value="<?php echo $hesklang['sub_ticket']; ?>" class="button"></p>
As for the subject - you want all tickets to have the same subject?? Or just the subject of e-mail that notifies you of a new ticket?

Posted: Mon Jun 18, 2007 10:51 pm
by humpda
Hi
Thanks heaps for your response...will try it out today. Regarding subject...I would just like the subject to be set by default to "ICT Support request" or something along those lines...am I making sense. BTW great program...I am using it for ICT support at my school it is used regularly. Thanks gain :)

Posted: Wed Jul 04, 2007 10:38 am
by 3cwired_com
<!-- ticket info -->
<table border="0">
<tr>
<td align="right" width="150"></td>
<td align="left" width="600"><input type="hidden" name="subject" size="40" maxlength="40" value="ICT Support Request"></td>
</tr>

You would need to make the necessary changes above under the ticket info heading in index.php

Posted: Wed Jul 04, 2007 11:47 pm
by humpda
Thanks...will give it a go

Posted: Thu Jul 05, 2007 1:36 am
by humpda
Thanks worked a treat :)

Posted: Fri Jul 06, 2007 8:08 pm
by 3cwired_com
No problem, anytime! anything I can do to help make an already great product better, or atleast work better for you.