Change error output (tracking id)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
paragrafo
Posts: 1
Joined: Fri Feb 03, 2012 8:16 pm

Change error output (tracking id)

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Change error output (tracking id)

Post by Klemen »

Sorry, but we don't provide help with customizations of such extent 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
Post Reply