I need to change the error outputs when people fail to track an id, either when they don't place any characters or they fail to find a ticket. What I want to do is insert a jQuery statement to show a div for a few seconds, then hide it.
I guess this is the code that has to be changed, just don't know how! tried with echo, with no success! If anyone can help, I'd appreciate!/* Any errors? Show the form */
if ($is_form)
{
if (empty($trackingID))
{
$hesk_error_buffer[] = $hesklang['eytid'];
}
if ($hesk_settings['email_view_ticket'] && empty($my_email))
{
$hesk_error_buffer[] = $hesklang['enter_valid_email'];
}
$tmp = count($hesk_error_buffer);
if ($tmp == 1)
{
$hesk_error_buffer = implode('',$hesk_error_buffer);
hesk_process_messages($hesk_error_buffer,'NOREDIRECT');
print_form();
}
elseif ($tmp == 2)
{
$hesk_error_buffer = $hesklang['pcer'].'<ul><li>'.$hesk_error_buffer[0].'</li><li>'.$hesk_error_buffer[1].'</li></ul>';
hesk_process_messages($hesk_error_buffer,'NOREDIRECT');
print_form();
}
}
elseif ( empty($trackingID) || ($hesk_settings['email_view_ticket'] && empty($my_email)) )
{
print_form();
}
TIA