Remove Email Field & Modify Name Field

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Austin
Posts: 5
Joined: Tue Feb 24, 2009 9:14 pm

Remove Email Field & Modify Name Field

Post by Austin »

I'm interested in deleting the email field from the new ticket page. Is this possible :?: I would prefer no email be sent to the customer and therefore do not need this field.

The other thing is I would like to modify the "Name" Field to say "Client", and also the "Message" field to an alternate title. Can someone please direct me :?:

Thanks,
Austin :D
austone@comcast.net
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It's quite some work to remove e-mail functionality completely, but you can make the e-mail optional by making these changes:

1. in index.php change

Code: Select all

<?php echo $hesklang['email']; ?>: <font class="important">*</font>
to

Code: Select all

<?php echo $hesklang['email']; ?>:
2. in submit_ticket.php delete

Code: Select all

 or $hesk_error_buffer[]=$hesklang['enter_valid_email']
(no other chars, just this code!!!)

3. in submit_ticket.php delete

Code: Select all

@mail($email,$hesklang['ticket_received'],$message,$headers);
4. in admin/admin_reply_ticket.php delete

Code: Select all

@mail($orig_email,$hesklang['new_reply_staff'],$message,$headers);
That should do it.


You can modify all the text used you wish in the "language/english.inc.php" file.
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
Austin
Posts: 5
Joined: Tue Feb 24, 2009 9:14 pm

Post by Austin »

Thank you Klemen, that did the trick.

Now my other problem I am now experiencing is now that I changed the 'name' field to say "Client" it looks great on the ticket until you post a reply. Because next to the staff's name who posted the reply it also says "Client". Do you know what I mean?

Is it possible to add or modify that field to list "Client" next to the original person who submitted the ticket, but say "Staff" next to the replying staff member?

Thanks!
Austin
austone@comcast.net
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

That happens because now everywhere "name" was used it now says "client" if you changed it to client.

To solve this you would have to create a new variable in the language file, set it to "name" and have that displayed instead of the "name" variable in the ticket.php and admin_ticket.php only for staff replies. I'm afraid this takes more work and is out of the scope of my support here.
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
Austin
Posts: 5
Joined: Tue Feb 24, 2009 9:14 pm

Post by Austin »

Got it to work, and it looks great. THANK YOU VERY MUCH! :D
Post Reply