Page 1 of 1
Remove Email Field & Modify Name Field
Posted: Wed Feb 25, 2009 6:29 pm
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
austone@comcast.net
Posted: Fri Feb 27, 2009 5:39 pm
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.
Posted: Fri Feb 27, 2009 5:50 pm
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
Posted: Fri Feb 27, 2009 6:03 pm
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.
Posted: Fri Feb 27, 2009 7:00 pm
by Austin
Got it to work, and it looks great. THANK YOU VERY MUCH!
