Removing/Changing Subject and Priority fields

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
humpda
Posts: 17
Joined: Wed Feb 22, 2006 3:47 am

Removing/Changing Subject and Priority fields

Post 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:
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
humpda
Posts: 17
Joined: Wed Feb 22, 2006 3:47 am

Post 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 :)
3cwired_com
Posts: 20
Joined: Wed Jul 04, 2007 9:49 am

Post 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
Behind every great fortune lies a crime.
[url]http://www.3cwired.com[/url] - Web Design/SEO/Repair/Sales/Upgrades
[url]http://www.galants.org[/url] - The Home for Galant Enthusiasts
[url]http://www.locatemyip.com[/url] - More than just free IP displays
humpda
Posts: 17
Joined: Wed Feb 22, 2006 3:47 am

Post by humpda »

Thanks...will give it a go
humpda
Posts: 17
Joined: Wed Feb 22, 2006 3:47 am

Post by humpda »

Thanks worked a treat :)
3cwired_com
Posts: 20
Joined: Wed Jul 04, 2007 9:49 am

Post by 3cwired_com »

No problem, anytime! anything I can do to help make an already great product better, or atleast work better for you.
Behind every great fortune lies a crime.
[url]http://www.3cwired.com[/url] - Web Design/SEO/Repair/Sales/Upgrades
[url]http://www.galants.org[/url] - The Home for Galant Enthusiasts
[url]http://www.locatemyip.com[/url] - More than just free IP displays
Post Reply