Page 1 of 1

Change error output (tracking id)

Posted: Fri Feb 03, 2012 8:23 pm
by paragrafo
Hi there! am just learning the basics of PHP, i find this system very nice.

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.
/* 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();
}
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!

TIA

Re: Change error output (tracking id)

Posted: Tue Feb 14, 2012 7:27 pm
by Klemen
Sorry, but we don't provide help with customizations of such extent here!