Remove Email Priority

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Ring-A-Nerd
Posts: 5
Joined: Tue Mar 12, 2013 12:02 pm

Remove Email Priority

Post by Ring-A-Nerd »

Script URL: http://ringanerd.co.za/Helpdesk
Version of script: 2.4.2
Hosting company: Hetzner
What terms did you try when SEARCHING for a solution: Remove Email Priority HESK

Hi there! :) I searched all over the forum and on Google, and even though I find a topic or two, it didn't quite explain what I needed to do or how to achieve it (unless I skipped a topic somehow)?

Basically all I want to do is remove the priority field from the "email" part. I seemed to find an edit, but that was for when clients make a ticket, I want to remove the priority from both the client side and the admin side (when we make tickets for clients).

How would I go about doing this? I did try looking through the script but didn't wanna mess anything up. Any and all help would be greatly appreciated! :)
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Remove Email Priority

Post by Klemen »

Priority selection may be disabled for customers in HESK settings.

Not sure what you mean by removing priority from emails though?
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
Ring-A-Nerd
Posts: 5
Joined: Tue Mar 12, 2013 12:02 pm

Re: Remove Email Priority

Post by Ring-A-Nerd »

Klemen wrote:Priority selection may be disabled for customers in HESK settings.

Not sure what you mean by removing priority from emails though?
Priority selection is to set the status. I apologize if I wasn't clear.

What I meant was;

When creating a new ticket, be it from the client side or staff side, I would like for the "email" field not to be required, so that only the phone number is required. As most of the time when the guys don't know the clients email they put something random in, and it's not how we want it.

That way they can skip the email field if they don't have or know it, and proceed with the rest of the form. :)

Thanks in advance!
Ring-A-Nerd
Posts: 5
Joined: Tue Mar 12, 2013 12:02 pm

Re: Remove Email Priority

Post by Ring-A-Nerd »

Does anyone perhaps have a fix for me? :)
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Remove Email Priority

Post by Klemen »

That would need some editing, but probably the easiest thing to do would be to change this code in submit_ticket.php and admin_submit_ticket.php

Code: Select all

$hesk_error_buffer['email']=$hesklang['enter_valid_email']
to

Code: Select all

$tmpvar['email']='none@given';
Then you would have to check for none@given in the mail sending function, for example in inc/email_functions just below

Code: Select all

$hesk_settings['timeformat'] = DATE_RFC2822;
add

Code: Select all

    if ($to == 'none@given')
    {
    	return true;
    }
It may need other modifications as well, but try this at first.
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
Post Reply